1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-08 02:29:38 +02: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 = [];
$company = Company::where('plan', 'free')
->where('is_migrated', false)
->with('accounts')
->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()
{
//
}
}