hosts_app/alters.txt

26 lines
806 B
Plaintext

ALTER TABLE user_settings ADD COLUMN deploy_cron VARCHAR(100) DEFAULT '12 12 * * *';
ALTER TABLE user_settings ADD COLUMN backup_cron VARCHAR(100) DEFAULT '12 12 * * *';
ALTER TABLE host ADD COLUMN auto_deploy_enabled BOOLEAN DEFAULT 1;
ALTER TABLE host ADD COLUMN auto_backup_enabled BOOLEAN DEFAULT 1;
ALTER TABLE user_settings DROP COLUMN deploy_interval;
ALTER TABLE user_settings DROP COLUMN backup_interval;
ALTER TABLE host
ADD COLUMN use_daemon BOOLEAN NOT NULL DEFAULT 0;
ALTER TABLE host
ALTER COLUMN use_daemon DROP DEFAULT;
ALTER TABLE host
ADD COLUMN daemon_url VARCHAR(255);
ALTER TABLE host
ADD COLUMN daemon_token VARCHAR(255);
ALTER TABLE Host ADD COLUMN preferred_hostfile_id INTEGER;
ALTER TABLE Host
ADD COLUMN preferred_hostfile_id INTEGER
REFERENCES host_file(id);