Skip to content

Commit 32dab02

Browse files
author
lizhuangzhuang
committed
Add unique on two columns
1 parent ce6dca8 commit 32dab02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2017_03_03_100000_create_options_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function up()
2121
$table->string('comment')->nullable();
2222
$table->timestamps();
2323
$table->softDeletes();
24-
$table->index(['module', 'key']);
24+
$table->unique(['module', 'key']);
2525
});
2626
}
2727

0 commit comments

Comments
 (0)