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:
parent
dbc0ba02fc
commit
5ad41db0ce
@ -58,6 +58,7 @@ class ForceMigration extends Command
|
||||
$data = [];
|
||||
|
||||
$company = Company::where('plan', 'free')
|
||||
->where('is_migrated', false)
|
||||
->with('accounts')
|
||||
->first();
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user