migrations

This commit is contained in:
denisdulici 2020-01-03 15:08:41 +03:00
parent 3c4a07ccae
commit d47b11e495
2 changed files with 0 additions and 33 deletions

View File

@ -23,7 +23,6 @@ class CreateReportsTable extends Migration
$table->string('period'); $table->string('period');
$table->string('basis'); $table->string('basis');
$table->string('chart'); $table->string('chart');
$table->boolean('enabled');
$table->timestamps(); $table->timestamps();
$table->softDeletes(); $table->softDeletes();

View File

@ -1,32 +0,0 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
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')->default(1);
});
}
}