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:
parent
dbc0ba02fc
commit
5ad41db0ce
@ -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();
|
||||||
|
|
||||||
|
@ -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