You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15554_not_replicated.down

16 lines
568 B

set sql_log_bin=0;
set autocommit=0;
use kamailio;
ALTER TABLE location CHANGE expires expires_old datetime;
ALTER TABLE location CHANGE last_modified last_modified_old datetime;
ALTER TABLE location ADD expires datetime NOT NULL DEFAULT '2030-05-28 21:32:15';
ALTER TABLE location ADD last_modified datetime NOT NULL DEFAULT '1900-01-01 00:00:01';
UPDATE location SET expires=FROM_UNIXTIME(expires_old);
UPDATE location SET last_modified=FROM_UNIXTIME(last_modified_old);
ALTER TABLE location DROP expires_old;
ALTER TABLE location DROP last_modified_old;
commit;