From d04198e08a254c1119317f0bbd78d85ec2c4a991 Mon Sep 17 00:00:00 2001 From: Samuel Tariku Date: Mon, 26 May 2025 12:48:51 +0300 Subject: [PATCH] fix: remove redundant unique constraint from customer_wallets table --- db/migrations/000001_fortune.up.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/migrations/000001_fortune.up.sql b/db/migrations/000001_fortune.up.sql index 64f3c2d..17b5e49 100644 --- a/db/migrations/000001_fortune.up.sql +++ b/db/migrations/000001_fortune.up.sql @@ -117,8 +117,7 @@ CREATE TABLE IF NOT EXISTS customer_wallets ( regular_wallet_id BIGINT NOT NULL, static_wallet_id BIGINT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UNIQUE (customer_id, company_id) + updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE IF NOT EXISTS wallet_transfer ( id BIGSERIAL PRIMARY KEY,