Skip to content
This repository was archived by the owner on May 21, 2021. It is now read-only.

Commit 57c4a2d

Browse files
committed
add index to url name row
1 parent 6d285be commit 57c4a2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

database/migrations/2016_02_19_080933_create_urls_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public function up()
1414
{
1515
Schema::create('urls', function (Blueprint $table) {
1616
$table->increments('id');
17-
$table->string('name', 1000);
18-
$table->boolean('crawled')->default(null);
17+
$table->string('name', 255)->index();
18+
$table->boolean('crawled')->default(false);
1919
$table->integer('user_id')->unsigned()->index();
2020
$table->integer('search_id')->unsigned()->index();
2121
});

0 commit comments

Comments
 (0)