From 3a49876e31807735d1bbd4e2c5df9aed4a1de942 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 7 Aug 2024 22:28:21 -0600 Subject: [PATCH] Fix migrations --- .../2019_03_12_043935_add_snowflakeids_to_users_table.php | 2 +- ...19_04_25_200411_add_snowflake_ids_to_collections_table.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database/migrations/2019_03_12_043935_add_snowflakeids_to_users_table.php b/database/migrations/2019_03_12_043935_add_snowflakeids_to_users_table.php index e5d32f2d..8c5dfad9 100644 --- a/database/migrations/2019_03_12_043935_add_snowflakeids_to_users_table.php +++ b/database/migrations/2019_03_12_043935_add_snowflakeids_to_users_table.php @@ -14,8 +14,8 @@ class AddSnowflakeidsToUsersTable extends Migration public function up() { Schema::table('statuses', function (Blueprint $table) { - $table->dropPrimary('id'); $table->bigInteger('id')->unsigned()->primary()->change(); + $table->dropPrimary('id'); }); } diff --git a/database/migrations/2019_04_25_200411_add_snowflake_ids_to_collections_table.php b/database/migrations/2019_04_25_200411_add_snowflake_ids_to_collections_table.php index c7cab9c5..a0e88ce7 100644 --- a/database/migrations/2019_04_25_200411_add_snowflake_ids_to_collections_table.php +++ b/database/migrations/2019_04_25_200411_add_snowflake_ids_to_collections_table.php @@ -14,13 +14,13 @@ class AddSnowflakeIdsToCollectionsTable extends Migration public function up() { Schema::table('collections', function (Blueprint $table) { - $table->dropPrimary('id'); $table->bigInteger('id')->unsigned()->primary()->change(); + $table->dropPrimary('id'); }); Schema::table('collection_items', function (Blueprint $table) { - $table->dropPrimary('id'); $table->bigInteger('id')->unsigned()->primary()->change(); + $table->dropPrimary('id'); }); }