Skip to content

Commit 82e4c37

Browse files
committed
Hot fix: enabled some parts of migrations
1 parent 3f3fe59 commit 82e4c37

2 files changed

+4
-5
lines changed

database/migrations/2015_10_09_153005_create_global_flag_for_role_table.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ public function down()
2828
{
2929
Schema::table('roles', function (Blueprint $table) {
3030
//DB::table('roles')->whereNotNull('is_global')->delete();
31-
//DB::table('roles')->delete(1);
3231
DB::table('roles')->delete();
33-
//$table->dropUnique('roles_title_is_global_unique');
34-
//$table->dropColumn('is_global');
32+
$table->dropUnique('roles_title_is_global_unique');
33+
$table->dropColumn('is_global');
3534
$table->unique('title');
3635
});
3736
}

database/migrations/2015_10_12_064907_rename_is_global_column_in_roles_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class RenameIsGlobalColumnInRolesTable extends Migration
1313
public function up()
1414
{
1515
Schema::table('roles', function (Blueprint $table) {
16-
//$table->dropUnique('roles_title_is_global_unique');
16+
$table->dropUnique('roles_title_is_global_unique');
1717
$table->dropColumn('is_global');
1818

1919
$table->integer('local_id')->unsigned()->nullable();
@@ -35,7 +35,7 @@ public function down()
3535
$table->dropForeign('roles_local_id_foreign');
3636
$table->dropColumn('local_id');
3737

38-
//$table->boolean('is_global')->nullable();
38+
$table->boolean('is_global')->nullable();
3939
//$table->unique(array('title', 'is_global'));
4040
});
4141
}

0 commit comments

Comments
 (0)