style(media): add void return on migration closures, drop noop ->after

This commit is contained in:
Paulo Castellano 2026-05-15 16:06:54 -03:00
parent 99f1f7ed84
commit 5408ca7e27

View file

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