modified enabled column

This commit is contained in:
denisdulici
2018-06-30 12:37:19 +03:00
parent 375718b5d0
commit 0c579d02b0
3 changed files with 91 additions and 1 deletions

View File

@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class ModifyEnabledColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change();
});
Schema::table('categories', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change();
});
Schema::table('currencies', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change();
});
Schema::table('items', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change();
});
Schema::table('customers', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change();
});
Schema::table('vendors', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}