Improvements: fix duplicate seeder, add missing seeders, remove redundant $with, add migration down(), optimize queries

This commit is contained in:
root
2026-06-08 18:33:24 +02:00
parent 9bb2e4246b
commit 6eeb85fcf2
9 changed files with 35 additions and 15 deletions
@@ -13,4 +13,12 @@ return new class extends Migration
$table->foreign('user_id')->references('id')->on('users')->cascadeOnDelete();
});
}
public function down(): void
{
Schema::table('website_articles', function (Blueprint $table) {
$table->dropForeign(['user_id']);
$table->string('user_id')->change();
});
}
};
@@ -12,4 +12,11 @@ return new class extends Migration
$table->text('value')->change();
});
}
public function down(): void
{
Schema::table('website_settings', function (Blueprint $table) {
$table->string('value')->change();
});
}
};