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

Commit

Permalink
add index to url name row
Browse files Browse the repository at this point in the history
  • Loading branch information
hedii committed Mar 12, 2016
1 parent 6d285be commit 57c4a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/migrations/2016_02_19_080933_create_urls_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function up()
{
Schema::create('urls', function (Blueprint $table) {
$table->increments('id');
$table->string('name', 1000);
$table->boolean('crawled')->default(null);
$table->string('name', 255)->index();
$table->boolean('crawled')->default(false);
$table->integer('user_id')->unsigned()->index();
$table->integer('search_id')->unsigned()->index();
});
Expand Down

0 comments on commit 57c4a2d

Please sign in to comment.