diff --git a/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php b/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php index 925b4e5e..220565a9 100644 --- a/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php +++ b/database/migrations/2026_05_15_190137_add_upload_token_to_media_table.php @@ -10,14 +10,14 @@ { public function up(): void { - Schema::table('medias', function (Blueprint $table) { - $table->uuid('upload_token')->nullable()->unique()->after('id'); + Schema::table('medias', function (Blueprint $table): void { + $table->uuid('upload_token')->nullable()->unique(); }); } public function down(): void { - Schema::table('medias', function (Blueprint $table) { + Schema::table('medias', function (Blueprint $table): void { $table->dropUnique(['upload_token']); $table->dropColumn('upload_token'); });