mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
filling up missing sync rows
This commit is contained in:
parent
f3f453bdbf
commit
2e11494cac
8
migrations/0052__fill_sync_table.sql
Normal file
8
migrations/0052__fill_sync_table.sql
Normal file
@ -0,0 +1,8 @@
|
||||
INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id)
|
||||
SELECT 'notes', note_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes;
|
||||
|
||||
INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id)
|
||||
SELECT 'notes_tree', note_tree_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes_tree;
|
||||
|
||||
INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id)
|
||||
SELECT 'notes_history', note_history_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes_history;
|
@ -3,7 +3,7 @@
|
||||
const build = require('./build');
|
||||
const packageJson = require('../package');
|
||||
|
||||
const APP_DB_VERSION = 51;
|
||||
const APP_DB_VERSION = 52;
|
||||
|
||||
module.exports = {
|
||||
app_version: packageJson.version,
|
||||
|
Loading…
x
Reference in New Issue
Block a user