From 9feee592e3a3ca513f3886898054c8e863dad406 Mon Sep 17 00:00:00 2001 From: NiceAesth Date: Wed, 16 Aug 2023 03:42:14 +0300 Subject: [PATCH] Add missing `nullable()` --- database/migrations/2020_05_15_083037_sync_structure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2020_05_15_083037_sync_structure.php b/database/migrations/2020_05_15_083037_sync_structure.php index 3649bbb1b64..e3c2e8397fb 100644 --- a/database/migrations/2020_05_15_083037_sync_structure.php +++ b/database/migrations/2020_05_15_083037_sync_structure.php @@ -93,7 +93,7 @@ public function up() $table->integer('user_id')->unsigned()->default(0)->change(); }); Schema::table('changelog_entries', function (Blueprint $table) { - $table->integer('github_user_id')->unsigned()->change(); + $table->integer('github_user_id')->unsigned()->nullable()->change(); }); Schema::table('comment_votes', function (Blueprint $table) { $table->integer('user_id')->unsigned()->default(0)->change(); @@ -102,7 +102,7 @@ public function up() DB::statement('ALTER TABLE comments CHANGE edited_by_id edited_by_id int unsigned DEFAULT NULL'); DB::statement('ALTER TABLE comments CHANGE deleted_by_id deleted_by_id int unsigned DEFAULT NULL'); Schema::table('contest_entries', function (Blueprint $table) { - $table->integer('user_id')->unsigned()->change(); + $table->integer('user_id')->unsigned()->nullable()->change(); $table->dropForeign('contest_entries_contest_id_foreign'); $table->foreign('contest_id') ->references('id')