Expand changelog, fix migration.

This commit is contained in:
James Cole
2025-02-05 06:46:27 +01:00
parent 90bfdc7573
commit fd79f9df44
2 changed files with 3 additions and 3 deletions

View File

@@ -46,9 +46,7 @@ return new class () extends Migration {
}
Schema::table('piggy_banks', static function (Blueprint $table): void {
// 2. make column nullable.
if (!Schema::hasColumn('piggy_banks', 'account_id')) {
$table->unsignedInteger('account_id')->nullable()->change();
}
$table->unsignedInteger('account_id')->nullable()->change();
});
Schema::table('piggy_banks', static function (Blueprint $table): void {
// 3. add currency