From 7be6c31179d68ac11e4bdd435eed5a532f341030 Mon Sep 17 00:00:00 2001 From: Curtis Delicata Date: Mon, 9 Oct 2023 08:44:35 +0000 Subject: [PATCH] Fix migrations --- .../migrations/2021_10_06_085623_create_user_social_table.php | 2 +- database/migrations/2021_10_09_153823_create_dnas_table.php | 2 +- .../migrations/2021_10_09_172842_create_dna_matchings_table.php | 2 +- .../migrations/2022_09_02_141504_create_categories_table.php | 2 +- database/migrations/2022_09_02_142026_create_topics_table.php | 2 +- .../2023_02_04_094500_add_columns_for_dna_matchings_table.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/database/migrations/2021_10_06_085623_create_user_social_table.php b/database/migrations/2021_10_06_085623_create_user_social_table.php index c8f144d52..986f359ba 100644 --- a/database/migrations/2021_10_06_085623_create_user_social_table.php +++ b/database/migrations/2021_10_06_085623_create_user_social_table.php @@ -15,7 +15,7 @@ public function up() { Schema::create('user_social', function (Blueprint $table) { $table->increments('id'); - $table->unsignedInteger('user_id'); + $table->unsignedBigInteger('user_id'); $table->string('social_id')->nullable(); $table->string('service'); $table->timestamps(); diff --git a/database/migrations/2021_10_09_153823_create_dnas_table.php b/database/migrations/2021_10_09_153823_create_dnas_table.php index aa4417e5c..d1fa0711e 100644 --- a/database/migrations/2021_10_09_153823_create_dnas_table.php +++ b/database/migrations/2021_10_09_153823_create_dnas_table.php @@ -16,7 +16,7 @@ public function up() Schema::create('dnas', function (Blueprint $table) { $table->id(); $table->string('name'); - $table->unsignedInteger('user_id'); + $table->unsignedBigInteger('user_id'); $table->string('variable_name'); $table->string('file_name'); $table->timestamps(); diff --git a/database/migrations/2021_10_09_172842_create_dna_matchings_table.php b/database/migrations/2021_10_09_172842_create_dna_matchings_table.php index c27c77a16..b49f02d93 100644 --- a/database/migrations/2021_10_09_172842_create_dna_matchings_table.php +++ b/database/migrations/2021_10_09_172842_create_dna_matchings_table.php @@ -15,7 +15,7 @@ public function up() { Schema::create('dna_matchings', function (Blueprint $table) { $table->id(); - $table->unsignedInteger('user_id'); + $table->unsignedBigInteger('user_id'); $table->string('image'); $table->string('file1'); $table->string('file2'); diff --git a/database/migrations/2022_09_02_141504_create_categories_table.php b/database/migrations/2022_09_02_141504_create_categories_table.php index 82cd94436..4d13a5917 100644 --- a/database/migrations/2022_09_02_141504_create_categories_table.php +++ b/database/migrations/2022_09_02_141504_create_categories_table.php @@ -21,7 +21,7 @@ public function up() $table->text('description'); $table->string('slug', 20); $table->unsignedInteger('order')->default(0); - $table->unsignedInteger('user_id'); + $table->unsignedBigInteger('user_id'); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users') diff --git a/database/migrations/2022_09_02_142026_create_topics_table.php b/database/migrations/2022_09_02_142026_create_topics_table.php index 1461e94a1..ed6ec8de6 100644 --- a/database/migrations/2022_09_02_142026_create_topics_table.php +++ b/database/migrations/2022_09_02_142026_create_topics_table.php @@ -19,7 +19,7 @@ public function up() $table->id(); $table->string('title'); $table->unsignedBigInteger('category_id'); - $table->unsignedInteger('user_id'); + $table->unsignedBigInteger('user_id'); $table->timestamps(); $table->foreign('category_id')->references('id')->on('categories') diff --git a/database/migrations/2023_02_04_094500_add_columns_for_dna_matchings_table.php b/database/migrations/2023_02_04_094500_add_columns_for_dna_matchings_table.php index fba5e7de3..b44b61b17 100644 --- a/database/migrations/2023_02_04_094500_add_columns_for_dna_matchings_table.php +++ b/database/migrations/2023_02_04_094500_add_columns_for_dna_matchings_table.php @@ -14,7 +14,7 @@ public function up() { Schema::table('dna_matchings', function (Blueprint $table) { - $table->unsignedInteger('match_id')->nullable(); + $table->unsignedBigInteger('match_id')->nullable(); }); }