Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fa9635d

Browse files
2bjanlutro
authored andcommittedMar 29, 2019
Fixed bug in AddUniqueToKeyColumnInSettingsTable (#111)
1 parent 4428641 commit fa9635d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/migrations/2019_03_16_141016_add_unique_to_key_column_in_settings_table.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct()
2929
public function up()
3030
{
3131
Schema::table($this->tablename, function (Blueprint $table) {
32-
$table->dropIndex(Config::get('settings.table') . '_' . Config::get('settings.keyColumn') . '_index');
32+
$table->dropIndex($this->tablename . '_' . $this->keyColumn . '_index');
3333
$table->unique($this->keyColumn, 'settings_key_unique');
3434
});
3535
}
@@ -43,8 +43,7 @@ public function down()
4343
{
4444
Schema::table($this->tablename, function (Blueprint $table) {
4545
$table->dropUnique('settings_key_unique');
46-
$table->Index(Config::get('settings.keyColumn'));
46+
$table->Index($this->keyColumn);
4747
});
4848
}
4949
}
50-

0 commit comments

Comments
 (0)
Please sign in to comment.