From ebe8982b0064e783cca985b687b7be971989bb9a Mon Sep 17 00:00:00 2001 From: Pinga Date: Tue, 29 Apr 2025 11:23:19 +0300 Subject: [PATCH] Escrow fix --- database/registry.mariadb.sql | 2 +- database/registry.sqlite.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/registry.mariadb.sql b/database/registry.mariadb.sql index 381b91a..38807f5 100644 --- a/database/registry.mariadb.sql +++ b/database/registry.mariadb.sql @@ -716,7 +716,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`rde_escrow_deposits` ( `notes` TEXT DEFAULT NULL, `verification_status` ENUM('Verified', 'Failed', 'Pending') DEFAULT 'Pending', -- Status after the escrow agent verifies the deposit `verification_notes` TEXT DEFAULT NULL, -- Notes or remarks from the verification process - UNIQUE KEY `deposit_id_deposit_type` (`deposit_id`,`deposit_type`) + UNIQUE KEY `deposit_id_deposit_type` (`deposit_id`,`deposit_type`,`file_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Escrow Deposits'; CREATE TABLE IF NOT EXISTS `registry`.`icann_reports` ( diff --git a/database/registry.sqlite.sql b/database/registry.sqlite.sql index 331745e..7c26571 100644 --- a/database/registry.sqlite.sql +++ b/database/registry.sqlite.sql @@ -744,7 +744,7 @@ CREATE TABLE IF NOT EXISTS rde_escrow_deposits ( notes TEXT DEFAULT NULL, verification_status VARCHAR(20) DEFAULT 'Pending' CHECK(verification_status IN ('Verified','Failed','Pending')), verification_notes TEXT DEFAULT NULL, - UNIQUE (deposit_id, deposit_type) + UNIQUE (deposit_id, deposit_type, file_name) ); -- icann_reports