Skip to content

Commit

Permalink
Add missing nullable()
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceAesth committed Aug 16, 2023
1 parent 63b8ad3 commit 9feee59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/migrations/2020_05_15_083037_sync_structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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')
Expand Down

0 comments on commit 9feee59

Please sign in to comment.