Skip to content

Commit

Permalink
Revert "✨ Update migration, ensure increment"
Browse files Browse the repository at this point in the history
This reverts commit d8fd59b.
  • Loading branch information
dweissengruber committed Mar 4, 2021
1 parent d8fd59b commit df85954
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions database/migrations/2021_03_04_095453_add_foreign_keys.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,42 @@ class AddForeignKeys extends Migration
public function up()
{
Schema::table('open_graph_scans', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});

Schema::table('robot_scans', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});

Schema::table('dns_scans', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});

Schema::table('visual_diffs', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});

Schema::table('cron_pings', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});

Schema::table('uptime_scans', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});

Schema::table('certificate_scans', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});

Schema::table('crawled_pages', function (Blueprint $table) {
$table->bigIncrements('website_id')->unsigned()->index()->change();
$table->bigInteger('website_id')->unsigned()->index()->change();
$table->foreign('website_id')->references('id')->on('websites')->onDelete('cascade');
});
}
Expand Down

0 comments on commit df85954

Please sign in to comment.