Skip to content

Commit

Permalink
index over unique in migration schema
Browse files Browse the repository at this point in the history
  • Loading branch information
railken committed Sep 9, 2019
1 parent f966e8b commit 0993092
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function up()
{
Schema::create(Config::get('amethyst.token.data.token-type.table'), function (Blueprint $table) {
$table->increments('id');
$table->string('name')->unique();
$table->string('name')->index();
$table->text('description')->nullable();
$table->boolean('public')->default(0);
$table->timestamps();
Expand Down

0 comments on commit 0993092

Please sign in to comment.