1
0
Daniel Supernault 11 сар өмнө
parent
commit
3a49876e31

+ 1 - 1
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');
         });
     }
 

+ 2 - 2
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');
         });
     }