summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
479d165)
for the 'change_policy', 'change_policy_timeout'. UPDATE added for the
'change_policy', 'change_policy_timeout'.
CHECK (VALUE IN ('allow', 'to_cheap', 'to_expensive', 'deny'));
ALTER TABLE tb_tariffs ADD change_policy DM_TARIFF_CHANGE_POLICY DEFAULT 'allow';
CHECK (VALUE IN ('allow', 'to_cheap', 'to_expensive', 'deny'));
ALTER TABLE tb_tariffs ADD change_policy DM_TARIFF_CHANGE_POLICY DEFAULT 'allow';
+ALTER TABLE tb_tariffs ADD change_policy_timeout DM_MOMENT DEFAULT '1970-01-01 00:00:00';
+
+ALTER TABLE tb_tariffs ALTER COLUMN change_policy DROP DEFAULT;
+ALTER TABLE tb_tariffs ALTER COLUMN change_policy_timeout DROP DEFAULT;
+
+UPDATE tb_tariffs SET change_policy = 'allow', change_policy_timeout = '1970-01-01 00:00:00';
UPDATE tb_info SET version = 2;
UPDATE tb_info SET version = 2;