|
|
|
@@ -33,7 +33,10 @@ return new class extends Migration |
|
|
|
->parkinManagementCode() |
|
|
|
->shopNo(); |
|
|
|
$table->string("qr_service_useage")->comment("QRサービス券利用方法"); |
|
|
|
$helper->index(1, [ColumnName::PARKING_MANAGEMENT_CODE]); |
|
|
|
$helper->index(1, [ |
|
|
|
ColumnName::PARKING_MANAGEMENT_CODE, |
|
|
|
ColumnName::SHOP_NO |
|
|
|
]); |
|
|
|
}; |
|
|
|
MigrationHelper::createTable("tbl3_mst_shop_no_relations", $schema, "HTD 店舗コード紐づけ"); |
|
|
|
MigrationHelper::createTable("tbl3_mst_shop_no_relation_histories", $schema, "HTD 店舗コード紐づけ履歴"); |
|
|
|
@@ -49,8 +52,8 @@ return new class extends Migration |
|
|
|
foreach ($backup as $data) { |
|
|
|
DB::connection($this->connection)->table("tbl3_mst_shop_no_relations")->insert( |
|
|
|
[ |
|
|
|
...json_decode(json_encode($data), true), |
|
|
|
"qr_service_useage" => QRServiceUsage::認証方式->value, |
|
|
|
...json_decode(json_encode($data), true), |
|
|
|
] |
|
|
|
); |
|
|
|
} |
|
|
|
|