加字段

This commit is contained in:
邓皓元 2019-06-03 14:36:16 +08:00
parent 191796ed78
commit 578ff82c3e
2 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,8 @@ class CreateCkbOrderCardsView extends Migration
DB::unprepared(File::get(__DIR__ . '/create_ckb_order_cards.pgsql'));
Schema::table('ckb_order_cards', function (Blueprint $table) {
$table->index(['id', 'sim', 'updated_at']);
$table->index(['id']);
$table->index(['updated_at']);
});
}

View File

@ -11,6 +11,8 @@ SELECT
COALESCE (n.package_id, v.package_id) AS package_id,
p.NAME AS package_name,
p.sn AS package_sn,
p.carrier_operator,
p.flows,
t.service_start_at,
t.service_end_at,
v.created_at AS order_at,