From 87307c2ee852831a11b4dae8432ecb08a488f956 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Fri, 1 Jul 2016 12:30:03 +0300 Subject: [PATCH] Ticket 37. The 02-alter-03.sql new file added. --- projects/stargazer/inst/var/02-alter-03.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 projects/stargazer/inst/var/02-alter-03.sql diff --git a/projects/stargazer/inst/var/02-alter-03.sql b/projects/stargazer/inst/var/02-alter-03.sql new file mode 100644 index 00000000..a0199173 --- /dev/null +++ b/projects/stargazer/inst/var/02-alter-03.sql @@ -0,0 +1,10 @@ +/* + * DB migration from v02 to v03 (firebird) + */ + +CREATE DOMAIN DM_TARIFF_CHANGE_POLICY AS VARCHAR(32) NOT NULL + CHECK (VALUE IN ('allow', 'to_cheap', 'to_expensive', 'deny')); + +ALTER TABLE tb_tariffs ADD change_policy DM_TARIFF_CHANGE_POLICY DEFAULT 'allow'; + +UPDATE tb_info SET version = 2; -- 2.44.2