From 84da7086f63e789ea78f1d669af5557760d2c581 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sat, 24 Aug 2024 18:42:17 +0800 Subject: [PATCH] voucher_campaigns table update for development environment only --- ..._183417_update_voucher_campaigns_table.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2024_08_24_183417_update_voucher_campaigns_table.php diff --git a/database/migrations/2024_08_24_183417_update_voucher_campaigns_table.php b/database/migrations/2024_08_24_183417_update_voucher_campaigns_table.php new file mode 100644 index 00000000..45bf8584 --- /dev/null +++ b/database/migrations/2024_08_24_183417_update_voucher_campaigns_table.php @@ -0,0 +1,35 @@ +where('id', 1)->update(['campaign_id' => 'camp_snxv2JQlh5v9LEDBbIBOnibD']); + DB::table('voucher_campaigns')->where('id', 2)->update(['campaign_id' => 'camp_lEM7WhLHFlhcRKRR0C4bXH0F']); + DB::table('voucher_campaigns')->where('id', 3)->update(['campaign_id' => 'camp_JP9qBGBYEinVjzAE1vjynMe0']); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + if (env('APP_ENV') !== 'production') { + DB::table('voucher_campaigns')->where('id', 1)->update(['campaign_id' => 'camp_0pXJ11fNxzLjNNVIJ1DCeTW1']); + DB::table('voucher_campaigns')->where('id', 2)->update(['campaign_id' => 'camp_pkLMhccKn0r74L61Fc36wYum']); + DB::table('voucher_campaigns')->where('id', 3)->update(['campaign_id' => 'camp_ZK6VwLHI9Ij8lBz5kAxcVy15']); + } + } +}