1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Add is_migrated flag to companies table

This commit is contained in:
David Bomba 2021-07-24 10:30:41 +10:00
parent dbc0ba02fc
commit 5ad41db0ce
2 changed files with 31 additions and 0 deletions

View File

@ -58,6 +58,7 @@ class ForceMigration extends Command
$data = []; $data = [];
$company = Company::where('plan', 'free') $company = Company::where('plan', 'free')
->where('is_migrated', false)
->with('accounts') ->with('accounts')
->first(); ->first();

View File

@ -0,0 +1,30 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddMigrationFlagForCompaniesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('companies', function ($table) {
$table->boolean('is_migrated')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}