From b52e2de9870294e0aa5a8da5f047a51930d52167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Mon, 29 Dec 2025 08:32:31 +0100 Subject: [PATCH] fix: migration history --- .../migrations/2025_11_15_195739_convert_all_ids_to_uuid.php | 1 + ...025_11_29_170955_fix_account_balances_unique_constraint.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/database/migrations/2025_11_15_195739_convert_all_ids_to_uuid.php b/database/migrations/2025_11_15_195739_convert_all_ids_to_uuid.php index a393602f..145c73af 100644 --- a/database/migrations/2025_11_15_195739_convert_all_ids_to_uuid.php +++ b/database/migrations/2025_11_15_195739_convert_all_ids_to_uuid.php @@ -123,6 +123,7 @@ return new class extends Migration }); Schema::table('account_balances', function (Blueprint $table) { + $table->dropUnique('account_balances_account_id_balance_date_unique'); $table->dropColumn('account_id'); }); Schema::table('account_balances', function (Blueprint $table) { diff --git a/database/migrations/2025_11_29_170955_fix_account_balances_unique_constraint.php b/database/migrations/2025_11_29_170955_fix_account_balances_unique_constraint.php index 8763d8d0..bb59590b 100644 --- a/database/migrations/2025_11_29_170955_fix_account_balances_unique_constraint.php +++ b/database/migrations/2025_11_29_170955_fix_account_balances_unique_constraint.php @@ -12,9 +12,6 @@ return new class extends Migration public function up(): void { Schema::table('account_balances', function (Blueprint $table) { - // Drop the broken index - $table->dropUnique('account_balances_account_id_balance_date_unique'); - // Recreate it properly $table->unique(['account_id', 'balance_date'], 'account_balances_account_id_balance_date_unique'); });