1 ALTER TABLE avail_config ADD COLUMN sla_mode TINYINT NOT NULL DEFAULT 0;
2 UPDATE avail_config SET sla_mode = 2 WHERE cluster_mode = 1;
3 UPDATE avail_config SET sla_mode = 1 WHERE use_average = 1;
4 ALTER TABLE avail_config DROP COLUMN cluster_mode;
5 ALTER TABLE avail_config DROP COLUMN use_average;