加字段
This commit is contained in:
parent
191796ed78
commit
578ff82c3e
@ -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']);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user