removed enabled column from reports

This commit is contained in:
denisdulici
2019-11-19 14:06:20 +03:00
parent 3e5b5b183d
commit dbb57eb86b
13 changed files with 66 additions and 80 deletions

View File

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

View File

@ -36,7 +36,6 @@ class Reports extends Seeder
'period' => 'monthly',
'basis' => 'accrual',
'chart' => 'line',
'enabled' => 1,
],
[
'company_id' => $company_id,
@ -47,7 +46,6 @@ class Reports extends Seeder
'period' => 'monthly',
'basis' => 'accrual',
'chart' => 'line',
'enabled' => 1,
],
[
'company_id' => $company_id,
@ -58,7 +56,6 @@ class Reports extends Seeder
'period' => 'monthly',
'basis' => 'accrual',
'chart' => 'line',
'enabled' => 1,
],
[
'company_id' => $company_id,
@ -69,7 +66,6 @@ class Reports extends Seeder
'period' => 'quarterly',
'basis' => 'accrual',
'chart' => '0',
'enabled' => 1,
],
[
'company_id' => $company_id,
@ -80,7 +76,6 @@ class Reports extends Seeder
'period' => 'quarterly',
'basis' => 'accrual',
'chart' => '0',
'enabled' => 1,
],
];