status-go/appdatabase/migrationsprevnodecfg/sql/1635942154_add_backup_setting.up.sql

6 lines
287 B
MySQL
Raw Normal View History

2021-10-27 11:59:43 +01: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 11:59:43 +01:00
ALTER TABLE settings ADD COLUMN backup_fetched BOOLEAN DEFAULT FALSE;
UPDATE settings SET backup_enabled = 1;
2021-10-27 11:59:43 +01:00
UPDATE settings SET backup_fetched = 0;