Skip to content

Commit d7d275e

Browse files
authored
Merge pull request #2 from reallyli/update-options-migration
Updated option migration
2 parents b40b5ba + ce6dca8 commit d7d275e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

database/migrations/2017_03_03_100000_create_options_table.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ public function up()
1515
{
1616
Schema::create('options', function (Blueprint $table) {
1717
$table->increments('id');
18-
$table->string('module', 40)->index()->nullable();
19-
$table->string('key')->unique();
18+
$table->string('module', 40);
19+
$table->string('key');
2020
$table->text('value');
2121
$table->string('comment')->nullable();
2222
$table->timestamps();
2323
$table->softDeletes();
24+
$table->index(['module', 'key']);
2425
});
2526
}
2627

0 commit comments

Comments
 (0)