mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
changed backup to simple scheme with one daily, one weekly and one monthly backup, fixes #15
This commit is contained in:
9
db/migrations/0108__new_backup_options.sql
Normal file
9
db/migrations/0108__new_backup_options.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
UPDATE options SET name = 'lastDailyBackupDate' WHERE name = 'lastBackupDate';
|
||||
|
||||
INSERT INTO options (name, value, dateCreated, dateModified, isSynced)
|
||||
VALUES ('lastWeeklyBackupDate', '2018-07-29T18:31:00.874Z', '2018-07-29T18:31:00.874Z', '2018-07-29T18:31:00.874Z', 0);
|
||||
|
||||
INSERT INTO options (name, value, dateCreated, dateModified, isSynced)
|
||||
VALUES ('lastMonthlyBackupDate', '2018-07-29T18:31:00.874Z', '2018-07-29T18:31:00.874Z', '2018-07-29T18:31:00.874Z', 0);
|
||||
|
||||
-- these options are not synced so no need to fix sync rows
|
||||
Reference in New Issue
Block a user