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() + { + // + } +}