From 66500a49397bcd36f906b3b3efacbb41b8009814 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:21:15 +0200 Subject: [PATCH] Fields now allow correct pricing input; fixed deposit --- .../views/admin/system/createTld.twig | 68 +++++++++---------- .../views/admin/system/manageTld.twig | 68 +++++++++---------- database/registry.mariadb.sql | 16 ++--- database/registry.postgres.sql | 16 ++--- 4 files changed, 84 insertions(+), 84 deletions(-) diff --git a/cp/resources/views/admin/system/createTld.twig b/cp/resources/views/admin/system/createTld.twig index 2719643..485538a 100644 --- a/cp/resources/views/admin/system/createTld.twig +++ b/cp/resources/views/admin/system/createTld.twig @@ -91,45 +91,45 @@ Create - - - - - - - - - - - + + + + + + + + + + + Renew - - - - - - - - - - - + + + + + + + + + + + Transfer - - - - - - - - - - - + + + + + + + + + + + @@ -137,7 +137,7 @@
- + Enter the price for restoring the TLD.
diff --git a/cp/resources/views/admin/system/manageTld.twig b/cp/resources/views/admin/system/manageTld.twig index b450d4e..c5e28a8 100644 --- a/cp/resources/views/admin/system/manageTld.twig +++ b/cp/resources/views/admin/system/manageTld.twig @@ -80,45 +80,45 @@ Create - - - - - - - - - - - + + + + + + + + + + + Renew - - - - - - - - - - - + + + + + + + + + + + Transfer - - - - - - - - - - - + + + + + + + + + + + @@ -126,7 +126,7 @@
- + Enter the price for restoring the TLD.
diff --git a/database/registry.mariadb.sql b/database/registry.mariadb.sql index abcb6aa..1f1e4cf 100644 --- a/database/registry.mariadb.sql +++ b/database/registry.mariadb.sql @@ -76,9 +76,9 @@ CREATE TABLE IF NOT EXISTS `registry`.`registrar` ( `url` varchar(255) NOT NULL, `abuse_email` varchar(255) NOT NULL, `abuse_phone` varchar(255) NOT NULL, - `accountBalance` decimal(8,2) NOT NULL default '0.00', - `creditLimit` decimal(8,2) NOT NULL default '0.00', - `creditThreshold` decimal(8,2) NOT NULL default '0.00', + `accountBalance` decimal(12,2) NOT NULL default '0.00', + `creditLimit` decimal(12,2) NOT NULL default '0.00', + `creditThreshold` decimal(12,2) NOT NULL default '0.00', `thresholdType` enum('fixed','percent') NOT NULL default 'fixed', `currency` varchar(5) NOT NULL default 'USD', `crdate` datetime(3) NOT NULL, @@ -143,10 +143,10 @@ CREATE TABLE IF NOT EXISTS `registry`.`poll` ( `obj_acDate` datetime(3), `obj_exDate` datetime(3) default NULL, `registrarName` varchar(255), - `creditLimit` decimal(8,2) default '0.00', - `creditThreshold` decimal(8,2) default '0.00', + `creditLimit` decimal(12,2) default '0.00', + `creditThreshold` decimal(12,2) default '0.00', `creditThresholdType` enum('FIXED','PERCENT'), - `availableCredit` decimal(8,2) default '0.00', + `availableCredit` decimal(12,2) default '0.00', PRIMARY KEY (`id`), CONSTRAINT `poll_ibfk_1` FOREIGN KEY (`registrar_id`) REFERENCES `registrar` (`id`) ON DELETE RESTRICT ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='poll'; @@ -156,7 +156,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`payment_history` ( `registrar_id` int(10) unsigned NOT NULL, `date` datetime(3) NOT NULL, `description` text NOT NULL, - `amount` decimal(8,2) NOT NULL, + `amount` decimal(12,2) NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `payment_history_ibfk_1` FOREIGN KEY (`registrar_id`) REFERENCES `registrar` (`id`) ON DELETE RESTRICT ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='payment history'; @@ -170,7 +170,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`statement` ( `length_in_months` tinyint(3) unsigned NOT NULL, `from` datetime(3) NOT NULL, `to` datetime(3) NOT NULL, - `amount` decimal(8,2) NOT NULL, + `amount` decimal(12,2) NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `statement_ibfk_1` FOREIGN KEY (`registrar_id`) REFERENCES `registrar` (`id`) ON DELETE RESTRICT ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='financial statement'; diff --git a/database/registry.postgres.sql b/database/registry.postgres.sql index eaa4ee9..ecc658d 100644 --- a/database/registry.postgres.sql +++ b/database/registry.postgres.sql @@ -75,9 +75,9 @@ CREATE TABLE registry.registrar ( "url" varchar(255) NOT NULL, "abuse_email" varchar(255) NOT NULL, "abuse_phone" varchar(255) NOT NULL, - "accountbalance" decimal(8,2) NOT NULL default '0.00', - "creditlimit" decimal(8,2) NOT NULL default '0.00', - "creditthreshold" decimal(8,2) NOT NULL default '0.00', + "accountbalance" decimal(12,2) NOT NULL default '0.00', + "creditlimit" decimal(12,2) NOT NULL default '0.00', + "creditthreshold" decimal(12,2) NOT NULL default '0.00', "thresholdtype" varchar CHECK ("thresholdtype" IN ( 'fixed','percent' )) NOT NULL default 'fixed', "currency" varchar(5) NOT NULL default 'USD', "crdate" timestamp(3) without time zone NOT NULL, @@ -151,10 +151,10 @@ CREATE TABLE registry.poll ( "obj_acdate" timestamp(3) without time zone, "obj_exdate" timestamp(3) without time zone default NULL, "registrarname" varchar(255), - "creditlimit" decimal(8,2) default '0.00', - "creditthreshold" decimal(8,2) default '0.00', + "creditlimit" decimal(12,2) default '0.00', + "creditthreshold" decimal(12,2) default '0.00', "creditthresholdtype" varchar CHECK ("creditthresholdtype" IN ( 'FIXED','PERCENT' )), - "availablecredit" decimal(8,2) default '0.00', + "availablecredit" decimal(12,2) default '0.00', primary key ("id") ); @@ -163,7 +163,7 @@ CREATE TABLE registry.payment_history ( "registrar_id" int CHECK ("registrar_id" >= 0) NOT NULL, "date" timestamp(3) without time zone NOT NULL, "description" text NOT NULL, - "amount" decimal(8,2) NOT NULL, + "amount" decimal(12,2) NOT NULL, primary key ("id") ); @@ -176,7 +176,7 @@ CREATE TABLE registry.statement ( "length_in_months" smallint CHECK ("length_in_months" >= 0) NOT NULL, "from" timestamp(3) without time zone NOT NULL, "to" timestamp(3) without time zone NOT NULL, - "amount" decimal(8,2) NOT NULL, + "amount" decimal(12,2) NOT NULL, primary key ("id") );