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.up

16 lines
535 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 BIGINT NOT NULL DEFAULT 2000000000;
ALTER TABLE location ADD last_modified BIGINT NOT NULL DEFAULT 1;
UPDATE location SET expires=UNIX_TIMESTAMP(expires_old);
UPDATE location SET last_modified=UNIX_TIMESTAMP(last_modified_old);
ALTER TABLE location DROP expires_old;
ALTER TABLE location DROP last_modified_old;
commit;