Add new correction command, will probably fix #10833

This commit is contained in:
James Cole
2025-09-16 20:44:54 +02:00
parent 258dbf4a98
commit b653d63d3d
3 changed files with 100 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ return new class () extends Migration {
$table->dropColumn('transaction_currency_id');
// 2. make column non-nullable.
$table->unsignedInteger('account_id')->change();
$table->unsignedInteger('account_id')->nullable()->change();
// 5. add new index
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');