From 7c6f11f7e21b740eea302f720ad4b8dfe2899cb6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 3 May 2023 12:44:29 +1000 Subject: [PATCH] Update shopify --- .../2023_05_03_023956_add_shopify_user_id.php | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 database/migrations/2023_05_03_023956_add_shopify_user_id.php diff --git a/database/migrations/2023_05_03_023956_add_shopify_user_id.php b/database/migrations/2023_05_03_023956_add_shopify_user_id.php new file mode 100644 index 000000000000..bb56f8e69420 --- /dev/null +++ b/database/migrations/2023_05_03_023956_add_shopify_user_id.php @@ -0,0 +1,48 @@ +cursor()->each(function ($company) { + + $settings = $company->settings; + + if(!property_exists($settings, 'enable_e_invoice')) { + + $company->saveSettings((array)$company->settings, $company); + + } + + }); + + Schema::table('users', function (Blueprint $table) { + $table->unsignedInteger('shopify_user_id')->index()->nullable(); + }); + + + + //902541635 + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +};