refs #401 migration issue solved (not support dbal column type)

This commit is contained in:
cuneytsenturk 2018-07-02 13:43:05 +03:00
parent 6f2c936a73
commit 26ac0acf61

View File

@ -13,27 +13,27 @@ class ModifyEnabledColumn extends Migration
public function up() public function up()
{ {
Schema::table('accounts', function (Blueprint $table) { Schema::table('accounts', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change(); $table->boolean('enabled')->default(1)->change();
}); });
Schema::table('categories', function (Blueprint $table) { Schema::table('categories', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change(); $table->boolean('enabled')->default(1)->change();
}); });
Schema::table('currencies', function (Blueprint $table) { Schema::table('currencies', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change(); $table->boolean('enabled')->default(1)->change();
}); });
Schema::table('items', function (Blueprint $table) { Schema::table('items', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change(); $table->boolean('enabled')->default(1)->change();
}); });
Schema::table('customers', function (Blueprint $table) { Schema::table('customers', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change(); $table->boolean('enabled')->default(1)->change();
}); });
Schema::table('vendors', function (Blueprint $table) { Schema::table('vendors', function (Blueprint $table) {
$table->tinyInteger('enabled')->default(1)->change(); $table->boolean('enabled')->default(1)->change();
}); });
} }