2 * DB migration from v01 to v02 (postgres)
6 CREATE DOMAIN DM_TARIFF_PERIOD AS TEXT NOT NULL
7 CONSTRAINT valid_value CHECK (VALUE = 'month' OR VALUE = 'day');
9 ALTER TABLE tb_tariffs ADD period DM_TARIFF_PERIOD DEFAULT 'month';
11 UPDATE tb_info SET version = 7;