status-go/appdatabase/migrationsprevnodecfg/sql/1635942154_add_backup_setti...

6 lines
287 B
MySQL
Raw Normal View History

2021-10-27 10:59:43 +00:00
ALTER TABLE settings ADD COLUMN backup_enabled BOOLEAN DEFAULT TRUE;
ALTER TABLE settings ADD COLUMN last_backup INT NOT NULL DEFAULT 0;
2021-10-27 10:59:43 +00:00
ALTER TABLE settings ADD COLUMN backup_fetched BOOLEAN DEFAULT FALSE;
UPDATE settings SET backup_enabled = 1;
2021-10-27 10:59:43 +00:00
UPDATE settings SET backup_fetched = 0;