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 0000000000..bb56f8e694 --- /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() + { + // + } +};