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 e5d32f2db..8c5dfad93 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 c7cab9c5b..a0e88ce7e 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'); }); }