From 5ad41db0ce9a671b389746100fe476237c645cae Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 24 Jul 2021 10:30:41 +1000 Subject: [PATCH] Add is_migrated flag to companies table --- app/Console/Commands/ForceMigration.php | 1 + ...add_migration_flag_for_companies_table.php | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 database/migrations/2021_07_24_002820_add_migration_flag_for_companies_table.php diff --git a/app/Console/Commands/ForceMigration.php b/app/Console/Commands/ForceMigration.php index 1c99e08ac8..4b6ca8a24f 100644 --- a/app/Console/Commands/ForceMigration.php +++ b/app/Console/Commands/ForceMigration.php @@ -58,6 +58,7 @@ class ForceMigration extends Command $data = []; $company = Company::where('plan', 'free') + ->where('is_migrated', false) ->with('accounts') ->first(); diff --git a/database/migrations/2021_07_24_002820_add_migration_flag_for_companies_table.php b/database/migrations/2021_07_24_002820_add_migration_flag_for_companies_table.php new file mode 100644 index 0000000000..c7b35f2bb3 --- /dev/null +++ b/database/migrations/2021_07_24_002820_add_migration_flag_for_companies_table.php @@ -0,0 +1,30 @@ +boolean('is_migrated')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}