mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-12 08:54:00 +02:00
13020 lines
886 KiB
Plaintext
13020 lines
886 KiB
Plaintext
2017-07-03 22:55:55: Database was open successfully
|
|
2017-07-03 22:55:55: Checking for database schema update...
|
|
2017-07-03 22:55:55: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:55:55: Database is new - creating the schema...
|
|
2017-07-03 22:55:55: BEGIN TRANSACTION
|
|
2017-07-03 22:55:55: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:55: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:55:55: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:55:55: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:55:55: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:55: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:55:55: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:55:55: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:55:55: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:55:55: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:55:55: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:55:55: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:55:55: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:55: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:55: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:55: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:55:55: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:55:55: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:55:55: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:55:55: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "60a90b85f5744021b1837e65947fa890", "2")
|
|
2017-07-03 22:55:55: COMMIT
|
|
2017-07-03 22:55:55: Database schema created successfully
|
|
2017-07-03 22:55:55: Initializing tables...
|
|
2017-07-03 22:55:55: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:55:55: PRAGMA table_info("folders")
|
|
2017-07-03 22:55:55: PRAGMA table_info("notes")
|
|
2017-07-03 22:55:55: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:55:55: PRAGMA table_info("tags")
|
|
2017-07-03 22:55:55: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:55:55: PRAGMA table_info("resources")
|
|
2017-07-03 22:55:55: PRAGMA table_info("settings")
|
|
2017-07-03 22:55:55: PRAGMA table_info("version")
|
|
2017-07-03 22:55:55: BEGIN TRANSACTION
|
|
2017-07-03 22:55:55: DELETE FROM table_fields
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["folders","id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["folders","parent_id",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["folders","title",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["folders","created_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["folders","updated_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","parent_id",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","title",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","body",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","created_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","updated_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","author",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","source_url",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","source",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","source_application",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","application_data",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["notes","order",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["deleted_items","id",null,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["tags","id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["tags","title",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["tags","created_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["tags","updated_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["note_tags","id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["resources","id",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["resources","title",2,""]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["resources","mime",2,null]
|
|
2017-07-03 22:55:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:55: ["resources","filename",2,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["resources","created_time",1,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["resources","updated_time",1,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["settings","key",2,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["settings","value",2,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["settings","type",1,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["version","version",1,null]
|
|
2017-07-03 22:55:56: COMMIT
|
|
2017-07-03 22:55:56: Checking for database schema update...
|
|
2017-07-03 22:55:56: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:55:56: Current database version
|
|
2017-07-03 22:55:56: SELECT * FROM table_fields
|
|
2017-07-03 22:55:56: BEGIN TRANSACTION
|
|
2017-07-03 22:55:56: DELETE FROM notes
|
|
2017-07-03 22:55:56: DELETE FROM folders
|
|
2017-07-03 22:55:56: DELETE FROM resources
|
|
2017-07-03 22:55:56: DELETE FROM tags
|
|
2017-07-03 22:55:56: DELETE FROM note_tags
|
|
2017-07-03 22:55:56: COMMIT
|
|
2017-07-03 22:55:56: SELECT * FROM settings
|
|
2017-07-03 22:55:56: Database was open successfully
|
|
2017-07-03 22:55:56: Checking for database schema update...
|
|
2017-07-03 22:55:56: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:55:56: Database is new - creating the schema...
|
|
2017-07-03 22:55:56: BEGIN TRANSACTION
|
|
2017-07-03 22:55:56: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:56: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:55:56: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:55:56: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:55:56: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:56: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:55:56: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:55:56: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:55:56: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:55:56: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:55:56: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:55:56: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:55:56: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:56: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:56: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:55:56: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:55:56: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:55:56: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:55:56: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:55:56: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "26a98eff603040a89672de0e5e517f20", "2")
|
|
2017-07-03 22:55:56: COMMIT
|
|
2017-07-03 22:55:56: Database schema created successfully
|
|
2017-07-03 22:55:56: Initializing tables...
|
|
2017-07-03 22:55:56: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:55:56: PRAGMA table_info("folders")
|
|
2017-07-03 22:55:56: PRAGMA table_info("notes")
|
|
2017-07-03 22:55:56: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:55:56: PRAGMA table_info("tags")
|
|
2017-07-03 22:55:56: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:55:56: PRAGMA table_info("resources")
|
|
2017-07-03 22:55:56: PRAGMA table_info("settings")
|
|
2017-07-03 22:55:56: PRAGMA table_info("version")
|
|
2017-07-03 22:55:56: BEGIN TRANSACTION
|
|
2017-07-03 22:55:56: DELETE FROM table_fields
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["folders","id",2,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["folders","parent_id",2,""]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["folders","title",2,""]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["folders","created_time",1,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["folders","updated_time",1,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["notes","id",2,null]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:56: ["notes","parent_id",2,""]
|
|
2017-07-03 22:55:56: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","title",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","body",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","created_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","updated_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","author",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","source_url",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","source",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","source_application",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","application_data",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["notes","order",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["deleted_items","id",null,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["tags","id",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["tags","title",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["tags","created_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["tags","updated_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["note_tags","id",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["resources","id",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["resources","title",2,""]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["resources","mime",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["resources","filename",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["resources","created_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["resources","updated_time",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["settings","key",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["settings","value",2,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["settings","type",1,null]
|
|
2017-07-03 22:55:57: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:57: ["version","version",1,null]
|
|
2017-07-03 22:55:57: COMMIT
|
|
2017-07-03 22:55:57: Checking for database schema update...
|
|
2017-07-03 22:55:57: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:55:57: Current database version
|
|
2017-07-03 22:55:57: SELECT * FROM table_fields
|
|
2017-07-03 22:55:57: BEGIN TRANSACTION
|
|
2017-07-03 22:55:57: DELETE FROM notes
|
|
2017-07-03 22:55:57: DELETE FROM folders
|
|
2017-07-03 22:55:57: DELETE FROM resources
|
|
2017-07-03 22:55:57: DELETE FROM tags
|
|
2017-07-03 22:55:57: DELETE FROM note_tags
|
|
2017-07-03 22:55:57: COMMIT
|
|
2017-07-03 22:55:57: SELECT * FROM settings
|
|
2017-07-03 22:55:58: SELECT * FROM settings
|
|
2017-07-03 22:55:58: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:58: ["folder",1499118958045,"b136e096befe407895fd6eaa939d3b7a",1499118958045]
|
|
2017-07-03 22:55:58: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:55:58: ["mynote","joplin","SET_ME",1499118958269,"e3bd6e2c0bd84394a1836a5585d3e695",1499118958269]
|
|
2017-07-03 22:55:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:55:58: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:55:58: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:55:58: ["mynote2","joplin","SET_ME",1499118958427,"cf987a6c661b4d3687a9870c8709b587",1499118958428]
|
|
2017-07-03 22:55:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:55:58: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:55:58: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:55:58: ["mytag",1499118958646,"9c61cbf7da2b47c3a72718b8a1469341",1499118958646]
|
|
2017-07-03 22:55:58: Starting synchronization... [1499118958812]
|
|
2017-07-03 22:55:58: mkdir /root/.sync
|
|
2017-07-03 22:55:58: mkdir /root/.resource
|
|
2017-07-03 22:55:58: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:58: stat /root/b136e096befe407895fd6eaa939d3b7a.md
|
|
2017-07-03 22:55:58: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local b136e096befe407895fd6eaa939d3b7a, "folder")
|
|
2017-07-03 22:55:58: put /root/.sync/b136e096befe407895fd6eaa939d3b7a.md_1499118958871
|
|
2017-07-03 22:55:58: setTimestamp /root/.sync/b136e096befe407895fd6eaa939d3b7a.md_1499118958871
|
|
2017-07-03 22:55:58: move /root/.sync/b136e096befe407895fd6eaa939d3b7a.md_1499118958871 => /root/b136e096befe407895fd6eaa939d3b7a.md
|
|
2017-07-03 22:55:58: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:55:58: [1499118958896,"b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:55:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:55:59: stat /root/e3bd6e2c0bd84394a1836a5585d3e695.md
|
|
2017-07-03 22:55:59: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e3bd6e2c0bd84394a1836a5585d3e695, "mynote")
|
|
2017-07-03 22:55:59: put /root/.sync/e3bd6e2c0bd84394a1836a5585d3e695.md_1499118959138
|
|
2017-07-03 22:55:59: setTimestamp /root/.sync/e3bd6e2c0bd84394a1836a5585d3e695.md_1499118959138
|
|
2017-07-03 22:55:59: move /root/.sync/e3bd6e2c0bd84394a1836a5585d3e695.md_1499118959138 => /root/e3bd6e2c0bd84394a1836a5585d3e695.md
|
|
2017-07-03 22:55:59: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:55:59: [1499118959156,"e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:55:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:55:59: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:55:59: stat /root/cf987a6c661b4d3687a9870c8709b587.md
|
|
2017-07-03 22:55:59: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local cf987a6c661b4d3687a9870c8709b587, "mynote2")
|
|
2017-07-03 22:55:59: put /root/.sync/cf987a6c661b4d3687a9870c8709b587.md_1499118959323
|
|
2017-07-03 22:55:59: setTimestamp /root/.sync/cf987a6c661b4d3687a9870c8709b587.md_1499118959323
|
|
2017-07-03 22:55:59: move /root/.sync/cf987a6c661b4d3687a9870c8709b587.md_1499118959323 => /root/cf987a6c661b4d3687a9870c8709b587.md
|
|
2017-07-03 22:55:59: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:55:59: [1499118959348,"cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:55:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:55:59: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:55:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: stat /root/9c61cbf7da2b47c3a72718b8a1469341.md
|
|
2017-07-03 22:55:59: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 9c61cbf7da2b47c3a72718b8a1469341, "mytag")
|
|
2017-07-03 22:55:59: put /root/.sync/9c61cbf7da2b47c3a72718b8a1469341.md_1499118959591
|
|
2017-07-03 22:55:59: setTimestamp /root/.sync/9c61cbf7da2b47c3a72718b8a1469341.md_1499118959591
|
|
2017-07-03 22:55:59: move /root/.sync/9c61cbf7da2b47c3a72718b8a1469341.md_1499118959591 => /root/9c61cbf7da2b47c3a72718b8a1469341.md
|
|
2017-07-03 22:55:59: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:55:59: [1499118959615,"9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:55:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:55:59: SELECT * FROM deleted_items
|
|
2017-07-03 22:55:59: list /root
|
|
2017-07-03 22:55:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:55:59: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:55:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:55:59: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:55:59: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:55:59: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:55:59: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:55:59: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:55:59: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:55:59: Synchronization complete [1499118958812]:
|
|
2017-07-03 22:55:59: remotesToUpdate: 4
|
|
2017-07-03 22:55:59: remotesToDelete: -
|
|
2017-07-03 22:55:59: localsToUdpate: -
|
|
2017-07-03 22:55:59: localsToDelete: -
|
|
2017-07-03 22:55:59: createLocal: -
|
|
2017-07-03 22:55:59: updateLocal: -
|
|
2017-07-03 22:55:59: deleteLocal: -
|
|
2017-07-03 22:55:59: createRemote: 4
|
|
2017-07-03 22:55:59: updateRemote: -
|
|
2017-07-03 22:55:59: deleteRemote: -
|
|
2017-07-03 22:55:59: itemConflict: -
|
|
2017-07-03 22:55:59: noteConflict: -
|
|
2017-07-03 22:55:59: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:55:59: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:55:59: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:55:59: Total folders: 1
|
|
2017-07-03 22:55:59: Total notes: 2
|
|
2017-07-03 22:55:59: Total resources: 0
|
|
2017-07-03 22:56:00: SELECT * FROM settings
|
|
2017-07-03 22:56:00: Starting synchronization... [1499118960122]
|
|
2017-07-03 22:56:00: mkdir /root/.sync
|
|
2017-07-03 22:56:00: mkdir /root/.resource
|
|
2017-07-03 22:56:00: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:00: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:00: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:00: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:00: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:00: SELECT * FROM deleted_items
|
|
2017-07-03 22:56:00: list /root
|
|
2017-07-03 22:56:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:00: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:00: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:00: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:00: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:00: get /root/b136e096befe407895fd6eaa939d3b7a.md
|
|
2017-07-03 22:56:00: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:00: ["b136e096befe407895fd6eaa939d3b7a","folder","1499118958045","1499118958045",1499118960200]
|
|
2017-07-03 22:56:00: Sync: createLocal: remote exists but local does not: (Remote b136e096befe407895fd6eaa939d3b7a, "folder")
|
|
2017-07-03 22:56:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:00: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:00: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:00: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:00: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:00: get /root/e3bd6e2c0bd84394a1836a5585d3e695.md
|
|
2017-07-03 22:56:00: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:00: ["e3bd6e2c0bd84394a1836a5585d3e695","","mynote","","1499118958269","1499118958269",1499118960498,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:56:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:00: Sync: createLocal: remote exists but local does not: (Remote e3bd6e2c0bd84394a1836a5585d3e695, "mynote")
|
|
2017-07-03 22:56:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:00: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:00: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:00: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:00: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:00: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:00: get /root/cf987a6c661b4d3687a9870c8709b587.md
|
|
2017-07-03 22:56:00: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:00: ["cf987a6c661b4d3687a9870c8709b587","","mynote2","","1499118958428","1499118958427",1499118960836,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:56:01: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:01: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:01: Sync: createLocal: remote exists but local does not: (Remote cf987a6c661b4d3687a9870c8709b587, "mynote2")
|
|
2017-07-03 22:56:01: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:01: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:01: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:01: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:01: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:01: get /root/9c61cbf7da2b47c3a72718b8a1469341.md
|
|
2017-07-03 22:56:01: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341","mytag","1499118958646","1499118958646",1499118961131]
|
|
2017-07-03 22:56:01: Sync: createLocal: remote exists but local does not: (Remote 9c61cbf7da2b47c3a72718b8a1469341, "mytag")
|
|
2017-07-03 22:56:01: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:56:01: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:56:01: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:56:01: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:56:01: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:56:01: Synchronization complete [1499118960122]:
|
|
2017-07-03 22:56:01: remotesToUpdate: -
|
|
2017-07-03 22:56:01: remotesToDelete: -
|
|
2017-07-03 22:56:01: localsToUdpate: 4
|
|
2017-07-03 22:56:01: localsToDelete: -
|
|
2017-07-03 22:56:01: createLocal: 4
|
|
2017-07-03 22:56:01: updateLocal: -
|
|
2017-07-03 22:56:01: deleteLocal: -
|
|
2017-07-03 22:56:01: createRemote: -
|
|
2017-07-03 22:56:01: updateRemote: -
|
|
2017-07-03 22:56:01: deleteRemote: -
|
|
2017-07-03 22:56:01: itemConflict: -
|
|
2017-07-03 22:56:01: noteConflict: -
|
|
2017-07-03 22:56:01: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:56:01: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:56:01: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:56:01: Total folders: 1
|
|
2017-07-03 22:56:01: Total notes: 2
|
|
2017-07-03 22:56:01: Total resources: 0
|
|
2017-07-03 22:56:01: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 22:56:01: ["mytag"]
|
|
2017-07-03 22:56:01: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341","e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:01: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:01: ["e3bd6e2c0bd84394a1836a5585d3e695","9c61cbf7da2b47c3a72718b8a1469341",1499118961424,"a85c7e1208b840d9bc0ab1ce1c8fd28b",1499118961424]
|
|
2017-07-03 22:56:01: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341","cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:01: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:01: ["cf987a6c661b4d3687a9870c8709b587","9c61cbf7da2b47c3a72718b8a1469341",1499118961616,"2a090446d64d470c97ca9e23f48c40fb",1499118961616]
|
|
2017-07-03 22:56:01: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:56:01: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:01: Starting synchronization... [1499118961819]
|
|
2017-07-03 22:56:01: mkdir /root/.sync
|
|
2017-07-03 22:56:01: mkdir /root/.resource
|
|
2017-07-03 22:56:01: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:01: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:01: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:01: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:01: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:01: stat /root/a85c7e1208b840d9bc0ab1ce1c8fd28b.md
|
|
2017-07-03 22:56:01: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local a85c7e1208b840d9bc0ab1ce1c8fd28b)
|
|
2017-07-03 22:56:01: put /root/.sync/a85c7e1208b840d9bc0ab1ce1c8fd28b.md_1499118961892
|
|
2017-07-03 22:56:01: setTimestamp /root/.sync/a85c7e1208b840d9bc0ab1ce1c8fd28b.md_1499118961892
|
|
2017-07-03 22:56:01: move /root/.sync/a85c7e1208b840d9bc0ab1ce1c8fd28b.md_1499118961892 => /root/a85c7e1208b840d9bc0ab1ce1c8fd28b.md
|
|
2017-07-03 22:56:01: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:01: [1499118961907,"a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: stat /root/2a090446d64d470c97ca9e23f48c40fb.md
|
|
2017-07-03 22:56:02: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 2a090446d64d470c97ca9e23f48c40fb)
|
|
2017-07-03 22:56:02: put /root/.sync/2a090446d64d470c97ca9e23f48c40fb.md_1499118962065
|
|
2017-07-03 22:56:02: setTimestamp /root/.sync/2a090446d64d470c97ca9e23f48c40fb.md_1499118962065
|
|
2017-07-03 22:56:02: move /root/.sync/2a090446d64d470c97ca9e23f48c40fb.md_1499118962065 => /root/2a090446d64d470c97ca9e23f48c40fb.md
|
|
2017-07-03 22:56:02: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:02: [1499118962083,"2a090446d64d470c97ca9e23f48c40fb"]
|
|
2017-07-03 22:56:02: SELECT * FROM deleted_items
|
|
2017-07-03 22:56:02: list /root
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:56:02: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:56:02: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:56:02: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:56:02: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:56:02: Synchronization complete [1499118961819]:
|
|
2017-07-03 22:56:02: remotesToUpdate: 2
|
|
2017-07-03 22:56:02: remotesToDelete: -
|
|
2017-07-03 22:56:02: localsToUdpate: -
|
|
2017-07-03 22:56:02: localsToDelete: -
|
|
2017-07-03 22:56:02: createLocal: -
|
|
2017-07-03 22:56:02: updateLocal: -
|
|
2017-07-03 22:56:02: deleteLocal: -
|
|
2017-07-03 22:56:02: createRemote: 2
|
|
2017-07-03 22:56:02: updateRemote: -
|
|
2017-07-03 22:56:02: deleteRemote: -
|
|
2017-07-03 22:56:02: itemConflict: -
|
|
2017-07-03 22:56:02: noteConflict: -
|
|
2017-07-03 22:56:02: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:56:02: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:56:02: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:56:02: Total folders: 1
|
|
2017-07-03 22:56:02: Total notes: 2
|
|
2017-07-03 22:56:02: Total resources: 0
|
|
2017-07-03 22:56:02: SELECT * FROM settings
|
|
2017-07-03 22:56:02: Starting synchronization... [1499118962670]
|
|
2017-07-03 22:56:02: mkdir /root/.sync
|
|
2017-07-03 22:56:02: mkdir /root/.resource
|
|
2017-07-03 22:56:02: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:02: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:02: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:02: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:02: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:02: SELECT * FROM deleted_items
|
|
2017-07-03 22:56:02: list /root
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["b136e096befe407895fd6eaa939d3b7a"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["cf987a6c661b4d3687a9870c8709b587"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:02: get /root/a85c7e1208b840d9bc0ab1ce1c8fd28b.md
|
|
2017-07-03 22:56:02: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:02: ["a85c7e1208b840d9bc0ab1ce1c8fd28b","e3bd6e2c0bd84394a1836a5585d3e695","9c61cbf7da2b47c3a72718b8a1469341","1499118961424","1499118961424",1499118962828]
|
|
2017-07-03 22:56:02: Sync: createLocal: remote exists but local does not: (Remote a85c7e1208b840d9bc0ab1ce1c8fd28b)
|
|
2017-07-03 22:56:03: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:03: ["2a090446d64d470c97ca9e23f48c40fb"]
|
|
2017-07-03 22:56:03: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:03: ["2a090446d64d470c97ca9e23f48c40fb"]
|
|
2017-07-03 22:56:03: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:03: ["2a090446d64d470c97ca9e23f48c40fb"]
|
|
2017-07-03 22:56:03: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:03: ["2a090446d64d470c97ca9e23f48c40fb"]
|
|
2017-07-03 22:56:03: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:03: ["2a090446d64d470c97ca9e23f48c40fb"]
|
|
2017-07-03 22:56:03: get /root/2a090446d64d470c97ca9e23f48c40fb.md
|
|
2017-07-03 22:56:03: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:03: ["2a090446d64d470c97ca9e23f48c40fb","cf987a6c661b4d3687a9870c8709b587","9c61cbf7da2b47c3a72718b8a1469341","1499118961616","1499118961616",1499118963070]
|
|
2017-07-03 22:56:03: Sync: createLocal: remote exists but local does not: (Remote 2a090446d64d470c97ca9e23f48c40fb)
|
|
2017-07-03 22:56:03: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:56:03: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:56:03: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:56:03: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:56:03: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:56:03: Synchronization complete [1499118962670]:
|
|
2017-07-03 22:56:03: remotesToUpdate: -
|
|
2017-07-03 22:56:03: remotesToDelete: -
|
|
2017-07-03 22:56:03: localsToUdpate: 2
|
|
2017-07-03 22:56:03: localsToDelete: -
|
|
2017-07-03 22:56:03: createLocal: 2
|
|
2017-07-03 22:56:03: updateLocal: -
|
|
2017-07-03 22:56:03: deleteLocal: -
|
|
2017-07-03 22:56:03: createRemote: -
|
|
2017-07-03 22:56:03: updateRemote: -
|
|
2017-07-03 22:56:03: deleteRemote: -
|
|
2017-07-03 22:56:03: itemConflict: -
|
|
2017-07-03 22:56:03: noteConflict: -
|
|
2017-07-03 22:56:03: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:56:03: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:56:03: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:56:03: Total folders: 1
|
|
2017-07-03 22:56:03: Total notes: 2
|
|
2017-07-03 22:56:03: Total resources: 0
|
|
2017-07-03 22:56:03: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:56:03: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:03: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 22:56:03: ["9c61cbf7da2b47c3a72718b8a1469341","e3bd6e2c0bd84394a1836a5585d3e695"]
|
|
2017-07-03 22:56:03: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:56:03: ["9c61cbf7da2b47c3a72718b8a1469341"]
|
|
2017-07-03 22:56:03: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 22:56:03: ["a85c7e1208b840d9bc0ab1ce1c8fd28b"]
|
|
2017-07-03 22:56:16: Database was open successfully
|
|
2017-07-03 22:56:16: Checking for database schema update...
|
|
2017-07-03 22:56:16: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:56:16: Database is new - creating the schema...
|
|
2017-07-03 22:56:16: BEGIN TRANSACTION
|
|
2017-07-03 22:56:16: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:16: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:56:16: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:56:16: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:56:16: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:16: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:56:16: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:56:16: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:56:16: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:56:16: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:56:16: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:56:16: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:56:16: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:16: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:16: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:16: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:56:16: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:56:16: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:56:16: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:56:16: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "75106805acbf429481992f61775395f3", "2")
|
|
2017-07-03 22:56:16: COMMIT
|
|
2017-07-03 22:56:16: Database schema created successfully
|
|
2017-07-03 22:56:16: Initializing tables...
|
|
2017-07-03 22:56:16: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:56:16: PRAGMA table_info("folders")
|
|
2017-07-03 22:56:16: PRAGMA table_info("notes")
|
|
2017-07-03 22:56:16: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:56:16: PRAGMA table_info("tags")
|
|
2017-07-03 22:56:16: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:56:16: PRAGMA table_info("resources")
|
|
2017-07-03 22:56:16: PRAGMA table_info("settings")
|
|
2017-07-03 22:56:16: PRAGMA table_info("version")
|
|
2017-07-03 22:56:16: BEGIN TRANSACTION
|
|
2017-07-03 22:56:16: DELETE FROM table_fields
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["folders","id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["folders","parent_id",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["folders","title",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["folders","created_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["folders","updated_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","parent_id",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","title",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","body",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","created_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","updated_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","author",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","source_url",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","source",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","source_application",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","application_data",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["notes","order",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["deleted_items","id",null,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["tags","id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["tags","title",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["tags","created_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["tags","updated_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["note_tags","id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["resources","id",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["resources","title",2,""]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["resources","mime",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["resources","filename",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["resources","created_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["resources","updated_time",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["settings","key",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["settings","value",2,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["settings","type",1,null]
|
|
2017-07-03 22:56:16: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:16: ["version","version",1,null]
|
|
2017-07-03 22:56:16: COMMIT
|
|
2017-07-03 22:56:17: Checking for database schema update...
|
|
2017-07-03 22:56:17: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:56:17: Current database version
|
|
2017-07-03 22:56:17: SELECT * FROM table_fields
|
|
2017-07-03 22:56:17: BEGIN TRANSACTION
|
|
2017-07-03 22:56:17: DELETE FROM notes
|
|
2017-07-03 22:56:17: DELETE FROM folders
|
|
2017-07-03 22:56:17: DELETE FROM resources
|
|
2017-07-03 22:56:17: DELETE FROM tags
|
|
2017-07-03 22:56:17: DELETE FROM note_tags
|
|
2017-07-03 22:56:17: COMMIT
|
|
2017-07-03 22:56:17: SELECT * FROM settings
|
|
2017-07-03 22:56:17: Database was open successfully
|
|
2017-07-03 22:56:17: Checking for database schema update...
|
|
2017-07-03 22:56:17: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:56:17: Database is new - creating the schema...
|
|
2017-07-03 22:56:17: BEGIN TRANSACTION
|
|
2017-07-03 22:56:17: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:17: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:56:17: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:56:17: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:56:17: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:17: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:56:17: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:56:17: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:56:17: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:56:17: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:56:17: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:56:17: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:56:17: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:17: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:17: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:56:17: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:56:17: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:56:17: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:56:17: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:56:17: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "42d2cba0ed364826b029ff50a3b7d6ce", "2")
|
|
2017-07-03 22:56:17: COMMIT
|
|
2017-07-03 22:56:17: Database schema created successfully
|
|
2017-07-03 22:56:17: Initializing tables...
|
|
2017-07-03 22:56:17: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:56:17: PRAGMA table_info("folders")
|
|
2017-07-03 22:56:17: PRAGMA table_info("notes")
|
|
2017-07-03 22:56:17: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:56:17: PRAGMA table_info("tags")
|
|
2017-07-03 22:56:17: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:56:17: PRAGMA table_info("resources")
|
|
2017-07-03 22:56:17: PRAGMA table_info("settings")
|
|
2017-07-03 22:56:17: PRAGMA table_info("version")
|
|
2017-07-03 22:56:17: BEGIN TRANSACTION
|
|
2017-07-03 22:56:17: DELETE FROM table_fields
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["folders","id",2,null]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["folders","parent_id",2,""]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["folders","title",2,""]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["folders","created_time",1,null]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["folders","updated_time",1,null]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["notes","id",2,null]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["notes","parent_id",2,""]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["notes","title",2,""]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["notes","body",2,""]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["notes","created_time",1,null]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["notes","updated_time",1,null]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:17: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:56:17: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","author",2,""]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","source_url",2,""]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","source",2,""]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","source_application",2,""]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","application_data",2,""]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["notes","order",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["deleted_items","id",null,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["tags","id",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["tags","title",2,""]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["tags","created_time",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["tags","updated_time",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["note_tags","id",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["resources","id",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["resources","title",2,""]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["resources","mime",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["resources","filename",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["resources","created_time",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["resources","updated_time",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["settings","key",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["settings","value",2,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["settings","type",1,null]
|
|
2017-07-03 22:56:18: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["version","version",1,null]
|
|
2017-07-03 22:56:18: COMMIT
|
|
2017-07-03 22:56:18: Checking for database schema update...
|
|
2017-07-03 22:56:18: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:56:18: Current database version
|
|
2017-07-03 22:56:18: SELECT * FROM table_fields
|
|
2017-07-03 22:56:18: BEGIN TRANSACTION
|
|
2017-07-03 22:56:18: DELETE FROM notes
|
|
2017-07-03 22:56:18: DELETE FROM folders
|
|
2017-07-03 22:56:18: DELETE FROM resources
|
|
2017-07-03 22:56:18: DELETE FROM tags
|
|
2017-07-03 22:56:18: DELETE FROM note_tags
|
|
2017-07-03 22:56:18: COMMIT
|
|
2017-07-03 22:56:18: SELECT * FROM settings
|
|
2017-07-03 22:56:18: SELECT * FROM settings
|
|
2017-07-03 22:56:18: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:18: ["folder",1499118978956,"e0bddb3f1f584b6ca23a73b9898a9957",1499118978956]
|
|
2017-07-03 22:56:19: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:19: ["mynote","joplin","SET_ME",1499118979086,"d1931287bc9a4f26a323c68a24504ba5",1499118979086]
|
|
2017-07-03 22:56:19: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:19: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:19: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:19: ["mynote2","joplin","SET_ME",1499118979320,"12a3a258fed441af8924d08c400e3ccd",1499118979320]
|
|
2017-07-03 22:56:19: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:19: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:19: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:56:19: ["mytag",1499118979574,"3b5cfbdd75814e9381d3e1726fbae1f6",1499118979575]
|
|
2017-07-03 22:56:19: Starting synchronization... [1499118979788]
|
|
2017-07-03 22:56:19: mkdir /root/.sync
|
|
2017-07-03 22:56:19: mkdir /root/.resource
|
|
2017-07-03 22:56:19: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:19: stat /root/e0bddb3f1f584b6ca23a73b9898a9957.md
|
|
2017-07-03 22:56:19: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e0bddb3f1f584b6ca23a73b9898a9957, "folder")
|
|
2017-07-03 22:56:19: put /root/.sync/e0bddb3f1f584b6ca23a73b9898a9957.md_1499118979837
|
|
2017-07-03 22:56:19: setTimestamp /root/.sync/e0bddb3f1f584b6ca23a73b9898a9957.md_1499118979837
|
|
2017-07-03 22:56:19: move /root/.sync/e0bddb3f1f584b6ca23a73b9898a9957.md_1499118979837 => /root/e0bddb3f1f584b6ca23a73b9898a9957.md
|
|
2017-07-03 22:56:19: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:19: [1499118979852,"e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:20: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:20: stat /root/d1931287bc9a4f26a323c68a24504ba5.md
|
|
2017-07-03 22:56:20: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local d1931287bc9a4f26a323c68a24504ba5, "mynote")
|
|
2017-07-03 22:56:20: put /root/.sync/d1931287bc9a4f26a323c68a24504ba5.md_1499118980069
|
|
2017-07-03 22:56:20: setTimestamp /root/.sync/d1931287bc9a4f26a323c68a24504ba5.md_1499118980069
|
|
2017-07-03 22:56:20: move /root/.sync/d1931287bc9a4f26a323c68a24504ba5.md_1499118980069 => /root/d1931287bc9a4f26a323c68a24504ba5.md
|
|
2017-07-03 22:56:20: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:20: [1499118980088,"d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:20: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:20: stat /root/12a3a258fed441af8924d08c400e3ccd.md
|
|
2017-07-03 22:56:20: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 12a3a258fed441af8924d08c400e3ccd, "mynote2")
|
|
2017-07-03 22:56:20: put /root/.sync/12a3a258fed441af8924d08c400e3ccd.md_1499118980256
|
|
2017-07-03 22:56:20: setTimestamp /root/.sync/12a3a258fed441af8924d08c400e3ccd.md_1499118980256
|
|
2017-07-03 22:56:20: move /root/.sync/12a3a258fed441af8924d08c400e3ccd.md_1499118980256 => /root/12a3a258fed441af8924d08c400e3ccd.md
|
|
2017-07-03 22:56:20: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:20: [1499118980275,"12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:20: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:20: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: stat /root/3b5cfbdd75814e9381d3e1726fbae1f6.md
|
|
2017-07-03 22:56:20: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 3b5cfbdd75814e9381d3e1726fbae1f6, "mytag")
|
|
2017-07-03 22:56:20: put /root/.sync/3b5cfbdd75814e9381d3e1726fbae1f6.md_1499118980487
|
|
2017-07-03 22:56:20: setTimestamp /root/.sync/3b5cfbdd75814e9381d3e1726fbae1f6.md_1499118980487
|
|
2017-07-03 22:56:20: move /root/.sync/3b5cfbdd75814e9381d3e1726fbae1f6.md_1499118980487 => /root/3b5cfbdd75814e9381d3e1726fbae1f6.md
|
|
2017-07-03 22:56:20: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:20: [1499118980498,"3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:20: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:20: SELECT * FROM deleted_items
|
|
2017-07-03 22:56:20: list /root
|
|
2017-07-03 22:56:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:20: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:20: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:20: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:20: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:56:20: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:56:20: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:56:20: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:56:20: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:56:20: Synchronization complete [1499118979788]:
|
|
2017-07-03 22:56:20: remotesToUpdate: 4
|
|
2017-07-03 22:56:20: remotesToDelete: -
|
|
2017-07-03 22:56:20: localsToUdpate: -
|
|
2017-07-03 22:56:20: localsToDelete: -
|
|
2017-07-03 22:56:20: createLocal: -
|
|
2017-07-03 22:56:20: updateLocal: -
|
|
2017-07-03 22:56:20: deleteLocal: -
|
|
2017-07-03 22:56:20: createRemote: 4
|
|
2017-07-03 22:56:20: updateRemote: -
|
|
2017-07-03 22:56:20: deleteRemote: -
|
|
2017-07-03 22:56:20: itemConflict: -
|
|
2017-07-03 22:56:20: noteConflict: -
|
|
2017-07-03 22:56:20: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:56:20: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:56:20: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:56:20: Total folders: 1
|
|
2017-07-03 22:56:20: Total notes: 2
|
|
2017-07-03 22:56:20: Total resources: 0
|
|
2017-07-03 22:56:21: SELECT * FROM settings
|
|
2017-07-03 22:56:21: Starting synchronization... [1499118981018]
|
|
2017-07-03 22:56:21: mkdir /root/.sync
|
|
2017-07-03 22:56:21: mkdir /root/.resource
|
|
2017-07-03 22:56:21: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:21: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:21: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:21: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:21: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:21: SELECT * FROM deleted_items
|
|
2017-07-03 22:56:21: list /root
|
|
2017-07-03 22:56:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:21: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:21: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:21: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:21: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:21: get /root/e0bddb3f1f584b6ca23a73b9898a9957.md
|
|
2017-07-03 22:56:21: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:21: ["e0bddb3f1f584b6ca23a73b9898a9957","folder","1499118978956","1499118978956",1499118981154]
|
|
2017-07-03 22:56:21: Sync: createLocal: remote exists but local does not: (Remote e0bddb3f1f584b6ca23a73b9898a9957, "folder")
|
|
2017-07-03 22:56:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:21: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:21: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:21: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:21: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:21: get /root/d1931287bc9a4f26a323c68a24504ba5.md
|
|
2017-07-03 22:56:21: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:21: ["d1931287bc9a4f26a323c68a24504ba5","","mynote","","1499118979086","1499118979086",1499118981433,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:56:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:21: Sync: createLocal: remote exists but local does not: (Remote d1931287bc9a4f26a323c68a24504ba5, "mynote")
|
|
2017-07-03 22:56:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:21: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:21: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:21: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:21: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:21: get /root/12a3a258fed441af8924d08c400e3ccd.md
|
|
2017-07-03 22:56:21: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:21: ["12a3a258fed441af8924d08c400e3ccd","","mynote2","","1499118979320","1499118979320",1499118981719,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:56:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:21: Sync: createLocal: remote exists but local does not: (Remote 12a3a258fed441af8924d08c400e3ccd, "mynote2")
|
|
2017-07-03 22:56:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:21: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:21: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:21: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:21: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:21: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:21: get /root/3b5cfbdd75814e9381d3e1726fbae1f6.md
|
|
2017-07-03 22:56:21: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:21: ["3b5cfbdd75814e9381d3e1726fbae1f6","mytag","1499118979575","1499118979574",1499118981982]
|
|
2017-07-03 22:56:22: Sync: createLocal: remote exists but local does not: (Remote 3b5cfbdd75814e9381d3e1726fbae1f6, "mytag")
|
|
2017-07-03 22:56:22: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:56:22: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:56:22: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:56:22: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:56:22: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:56:22: Synchronization complete [1499118981018]:
|
|
2017-07-03 22:56:22: remotesToUpdate: -
|
|
2017-07-03 22:56:22: remotesToDelete: -
|
|
2017-07-03 22:56:22: localsToUdpate: 4
|
|
2017-07-03 22:56:22: localsToDelete: -
|
|
2017-07-03 22:56:22: createLocal: 4
|
|
2017-07-03 22:56:22: updateLocal: -
|
|
2017-07-03 22:56:22: deleteLocal: -
|
|
2017-07-03 22:56:22: createRemote: -
|
|
2017-07-03 22:56:22: updateRemote: -
|
|
2017-07-03 22:56:22: deleteRemote: -
|
|
2017-07-03 22:56:22: itemConflict: -
|
|
2017-07-03 22:56:22: noteConflict: -
|
|
2017-07-03 22:56:22: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:56:22: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:56:22: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:56:22: Total folders: 1
|
|
2017-07-03 22:56:22: Total notes: 2
|
|
2017-07-03 22:56:22: Total resources: 0
|
|
2017-07-03 22:56:22: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 22:56:22: ["mytag"]
|
|
2017-07-03 22:56:22: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:56:22: ["3b5cfbdd75814e9381d3e1726fbae1f6","d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:22: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:22: ["d1931287bc9a4f26a323c68a24504ba5","3b5cfbdd75814e9381d3e1726fbae1f6",1499118982272,"515270bb3c594b7e8b1a4624f067ed51",1499118982272]
|
|
2017-07-03 22:56:22: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:56:22: ["3b5cfbdd75814e9381d3e1726fbae1f6","12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:22: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:22: ["12a3a258fed441af8924d08c400e3ccd","3b5cfbdd75814e9381d3e1726fbae1f6",1499118982425,"6d3921fb6a314104ba894a3ae654e3e1",1499118982426]
|
|
2017-07-03 22:56:22: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:56:22: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:22: Starting synchronization... [1499118982610]
|
|
2017-07-03 22:56:22: mkdir /root/.sync
|
|
2017-07-03 22:56:22: mkdir /root/.resource
|
|
2017-07-03 22:56:22: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:22: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:22: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:22: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:22: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:22: stat /root/515270bb3c594b7e8b1a4624f067ed51.md
|
|
2017-07-03 22:56:22: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 515270bb3c594b7e8b1a4624f067ed51)
|
|
2017-07-03 22:56:22: put /root/.sync/515270bb3c594b7e8b1a4624f067ed51.md_1499118982663
|
|
2017-07-03 22:56:22: setTimestamp /root/.sync/515270bb3c594b7e8b1a4624f067ed51.md_1499118982663
|
|
2017-07-03 22:56:22: move /root/.sync/515270bb3c594b7e8b1a4624f067ed51.md_1499118982663 => /root/515270bb3c594b7e8b1a4624f067ed51.md
|
|
2017-07-03 22:56:22: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:22: [1499118982671,"515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:22: stat /root/6d3921fb6a314104ba894a3ae654e3e1.md
|
|
2017-07-03 22:56:22: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 6d3921fb6a314104ba894a3ae654e3e1)
|
|
2017-07-03 22:56:22: put /root/.sync/6d3921fb6a314104ba894a3ae654e3e1.md_1499118982864
|
|
2017-07-03 22:56:22: setTimestamp /root/.sync/6d3921fb6a314104ba894a3ae654e3e1.md_1499118982864
|
|
2017-07-03 22:56:22: move /root/.sync/6d3921fb6a314104ba894a3ae654e3e1.md_1499118982864 => /root/6d3921fb6a314104ba894a3ae654e3e1.md
|
|
2017-07-03 22:56:22: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:56:22: [1499118982900,"6d3921fb6a314104ba894a3ae654e3e1"]
|
|
2017-07-03 22:56:23: SELECT * FROM deleted_items
|
|
2017-07-03 22:56:23: list /root
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:56:23: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:56:23: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:56:23: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:56:23: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:56:23: Synchronization complete [1499118982610]:
|
|
2017-07-03 22:56:23: remotesToUpdate: 2
|
|
2017-07-03 22:56:23: remotesToDelete: -
|
|
2017-07-03 22:56:23: localsToUdpate: -
|
|
2017-07-03 22:56:23: localsToDelete: -
|
|
2017-07-03 22:56:23: createLocal: -
|
|
2017-07-03 22:56:23: updateLocal: -
|
|
2017-07-03 22:56:23: deleteLocal: -
|
|
2017-07-03 22:56:23: createRemote: 2
|
|
2017-07-03 22:56:23: updateRemote: -
|
|
2017-07-03 22:56:23: deleteRemote: -
|
|
2017-07-03 22:56:23: itemConflict: -
|
|
2017-07-03 22:56:23: noteConflict: -
|
|
2017-07-03 22:56:23: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:56:23: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:56:23: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:56:23: Total folders: 1
|
|
2017-07-03 22:56:23: Total notes: 2
|
|
2017-07-03 22:56:23: Total resources: 0
|
|
2017-07-03 22:56:23: SELECT * FROM settings
|
|
2017-07-03 22:56:23: Starting synchronization... [1499118983523]
|
|
2017-07-03 22:56:23: mkdir /root/.sync
|
|
2017-07-03 22:56:23: mkdir /root/.resource
|
|
2017-07-03 22:56:23: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:23: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:23: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:56:23: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:23: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:56:23: SELECT * FROM deleted_items
|
|
2017-07-03 22:56:23: list /root
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["e0bddb3f1f584b6ca23a73b9898a9957"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["12a3a258fed441af8924d08c400e3ccd"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:56:23: get /root/515270bb3c594b7e8b1a4624f067ed51.md
|
|
2017-07-03 22:56:23: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:23: ["515270bb3c594b7e8b1a4624f067ed51","d1931287bc9a4f26a323c68a24504ba5","3b5cfbdd75814e9381d3e1726fbae1f6","1499118982272","1499118982272",1499118983687]
|
|
2017-07-03 22:56:23: Sync: createLocal: remote exists but local does not: (Remote 515270bb3c594b7e8b1a4624f067ed51)
|
|
2017-07-03 22:56:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["6d3921fb6a314104ba894a3ae654e3e1"]
|
|
2017-07-03 22:56:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["6d3921fb6a314104ba894a3ae654e3e1"]
|
|
2017-07-03 22:56:23: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["6d3921fb6a314104ba894a3ae654e3e1"]
|
|
2017-07-03 22:56:23: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["6d3921fb6a314104ba894a3ae654e3e1"]
|
|
2017-07-03 22:56:23: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:56:23: ["6d3921fb6a314104ba894a3ae654e3e1"]
|
|
2017-07-03 22:56:23: get /root/6d3921fb6a314104ba894a3ae654e3e1.md
|
|
2017-07-03 22:56:23: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:56:23: ["6d3921fb6a314104ba894a3ae654e3e1","12a3a258fed441af8924d08c400e3ccd","3b5cfbdd75814e9381d3e1726fbae1f6","1499118982426","1499118982425",1499118983930]
|
|
2017-07-03 22:56:24: Sync: createLocal: remote exists but local does not: (Remote 6d3921fb6a314104ba894a3ae654e3e1)
|
|
2017-07-03 22:56:24: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:56:24: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:56:24: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:56:24: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:56:24: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:56:24: Synchronization complete [1499118983523]:
|
|
2017-07-03 22:56:24: remotesToUpdate: -
|
|
2017-07-03 22:56:24: remotesToDelete: -
|
|
2017-07-03 22:56:24: localsToUdpate: 2
|
|
2017-07-03 22:56:24: localsToDelete: -
|
|
2017-07-03 22:56:24: createLocal: 2
|
|
2017-07-03 22:56:24: updateLocal: -
|
|
2017-07-03 22:56:24: deleteLocal: -
|
|
2017-07-03 22:56:24: createRemote: -
|
|
2017-07-03 22:56:24: updateRemote: -
|
|
2017-07-03 22:56:24: deleteRemote: -
|
|
2017-07-03 22:56:24: itemConflict: -
|
|
2017-07-03 22:56:24: noteConflict: -
|
|
2017-07-03 22:56:24: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:56:24: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:56:24: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:56:24: Total folders: 1
|
|
2017-07-03 22:56:24: Total notes: 2
|
|
2017-07-03 22:56:24: Total resources: 0
|
|
2017-07-03 22:56:24: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:56:24: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:24: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 22:56:24: ["3b5cfbdd75814e9381d3e1726fbae1f6","d1931287bc9a4f26a323c68a24504ba5"]
|
|
2017-07-03 22:56:24: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:56:24: ["3b5cfbdd75814e9381d3e1726fbae1f6"]
|
|
2017-07-03 22:56:24: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 22:56:24: ["515270bb3c594b7e8b1a4624f067ed51"]
|
|
2017-07-03 22:57:21: Database was open successfully
|
|
2017-07-03 22:57:21: Checking for database schema update...
|
|
2017-07-03 22:57:21: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:21: Database is new - creating the schema...
|
|
2017-07-03 22:57:21: BEGIN TRANSACTION
|
|
2017-07-03 22:57:21: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:21: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:57:21: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:57:21: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:57:21: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:21: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:57:21: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:57:21: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:57:21: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:57:21: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:57:21: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:57:21: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:57:21: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:21: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:21: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:21: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:57:21: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:57:21: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:57:21: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:57:21: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "ad6feebaaf904149a222da7f76a2a89e", "2")
|
|
2017-07-03 22:57:21: COMMIT
|
|
2017-07-03 22:57:21: Database schema created successfully
|
|
2017-07-03 22:57:21: Initializing tables...
|
|
2017-07-03 22:57:21: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:57:21: PRAGMA table_info("folders")
|
|
2017-07-03 22:57:21: PRAGMA table_info("notes")
|
|
2017-07-03 22:57:21: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:57:21: PRAGMA table_info("tags")
|
|
2017-07-03 22:57:21: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:57:21: PRAGMA table_info("resources")
|
|
2017-07-03 22:57:21: PRAGMA table_info("settings")
|
|
2017-07-03 22:57:21: PRAGMA table_info("version")
|
|
2017-07-03 22:57:21: BEGIN TRANSACTION
|
|
2017-07-03 22:57:21: DELETE FROM table_fields
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["folders","id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["folders","parent_id",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["folders","title",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["folders","created_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["folders","updated_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","parent_id",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","title",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","body",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","created_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","updated_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","author",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","source_url",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","source",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","source_application",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","application_data",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["notes","order",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["deleted_items","id",null,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["tags","id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["tags","title",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["tags","created_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["tags","updated_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["note_tags","id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["resources","id",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["resources","title",2,""]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["resources","mime",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["resources","filename",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["resources","created_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["resources","updated_time",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["settings","key",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["settings","value",2,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["settings","type",1,null]
|
|
2017-07-03 22:57:21: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:21: ["version","version",1,null]
|
|
2017-07-03 22:57:21: COMMIT
|
|
2017-07-03 22:57:22: Checking for database schema update...
|
|
2017-07-03 22:57:22: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:22: Current database version
|
|
2017-07-03 22:57:22: SELECT * FROM table_fields
|
|
2017-07-03 22:57:22: BEGIN TRANSACTION
|
|
2017-07-03 22:57:22: DELETE FROM notes
|
|
2017-07-03 22:57:22: DELETE FROM folders
|
|
2017-07-03 22:57:22: DELETE FROM resources
|
|
2017-07-03 22:57:22: DELETE FROM tags
|
|
2017-07-03 22:57:22: DELETE FROM note_tags
|
|
2017-07-03 22:57:22: COMMIT
|
|
2017-07-03 22:57:22: SELECT * FROM settings
|
|
2017-07-03 22:57:22: Database was open successfully
|
|
2017-07-03 22:57:22: Checking for database schema update...
|
|
2017-07-03 22:57:22: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:22: Database is new - creating the schema...
|
|
2017-07-03 22:57:22: BEGIN TRANSACTION
|
|
2017-07-03 22:57:22: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:22: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:57:22: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:57:22: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:57:22: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:22: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:57:22: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:57:22: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:57:22: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:57:22: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:57:22: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:57:22: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:57:22: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:22: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:22: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:22: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:57:22: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:57:22: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:57:22: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:57:22: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "23ae0fb181c642c49d4f040ce1567124", "2")
|
|
2017-07-03 22:57:22: COMMIT
|
|
2017-07-03 22:57:22: Database schema created successfully
|
|
2017-07-03 22:57:22: Initializing tables...
|
|
2017-07-03 22:57:22: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:57:22: PRAGMA table_info("folders")
|
|
2017-07-03 22:57:22: PRAGMA table_info("notes")
|
|
2017-07-03 22:57:22: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:57:22: PRAGMA table_info("tags")
|
|
2017-07-03 22:57:22: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:57:22: PRAGMA table_info("resources")
|
|
2017-07-03 22:57:22: PRAGMA table_info("settings")
|
|
2017-07-03 22:57:22: PRAGMA table_info("version")
|
|
2017-07-03 22:57:22: BEGIN TRANSACTION
|
|
2017-07-03 22:57:22: DELETE FROM table_fields
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["folders","id",2,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["folders","parent_id",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["folders","title",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["folders","created_time",1,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["folders","updated_time",1,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","id",2,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","parent_id",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","title",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","body",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","created_time",1,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","updated_time",1,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","author",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","source_url",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","source",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","source_application",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","application_data",2,""]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["notes","order",1,"0"]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["deleted_items","id",null,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:22: ["tags","id",2,null]
|
|
2017-07-03 22:57:22: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["tags","title",2,""]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["tags","created_time",1,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["tags","updated_time",1,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["note_tags","id",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["resources","id",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["resources","title",2,""]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["resources","mime",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["resources","filename",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["resources","created_time",1,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["resources","updated_time",1,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["settings","key",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["settings","value",2,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["settings","type",1,null]
|
|
2017-07-03 22:57:23: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["version","version",1,null]
|
|
2017-07-03 22:57:23: COMMIT
|
|
2017-07-03 22:57:23: Checking for database schema update...
|
|
2017-07-03 22:57:23: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:23: Current database version
|
|
2017-07-03 22:57:23: SELECT * FROM table_fields
|
|
2017-07-03 22:57:23: BEGIN TRANSACTION
|
|
2017-07-03 22:57:23: DELETE FROM notes
|
|
2017-07-03 22:57:23: DELETE FROM folders
|
|
2017-07-03 22:57:23: DELETE FROM resources
|
|
2017-07-03 22:57:23: DELETE FROM tags
|
|
2017-07-03 22:57:23: DELETE FROM note_tags
|
|
2017-07-03 22:57:23: COMMIT
|
|
2017-07-03 22:57:23: SELECT * FROM settings
|
|
2017-07-03 22:57:23: SELECT * FROM settings
|
|
2017-07-03 22:57:23: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:23: ["folder",1499119043841,"80ad64ba72e94ddaa46da683ddb5259e",1499119043842]
|
|
2017-07-03 22:57:24: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:24: ["mynote","joplin","SET_ME",1499119044011,"9058b696634640ef997e1cf37a68e4cb",1499119044011]
|
|
2017-07-03 22:57:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:24: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:24: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:24: ["mynote2","joplin","SET_ME",1499119044237,"e76b75b805f5491d9e0a44946429a6b9",1499119044237]
|
|
2017-07-03 22:57:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:24: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:24: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:24: ["mytag",1499119044434,"e47ce26ea51841fdb3eacb3012064eab",1499119044435]
|
|
2017-07-03 22:57:24: Starting synchronization... [1499119044587]
|
|
2017-07-03 22:57:24: mkdir /root/.sync
|
|
2017-07-03 22:57:24: mkdir /root/.resource
|
|
2017-07-03 22:57:24: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:24: stat /root/80ad64ba72e94ddaa46da683ddb5259e.md
|
|
2017-07-03 22:57:24: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 80ad64ba72e94ddaa46da683ddb5259e, "folder")
|
|
2017-07-03 22:57:24: put /root/.sync/80ad64ba72e94ddaa46da683ddb5259e.md_1499119044653
|
|
2017-07-03 22:57:24: setTimestamp /root/.sync/80ad64ba72e94ddaa46da683ddb5259e.md_1499119044653
|
|
2017-07-03 22:57:24: move /root/.sync/80ad64ba72e94ddaa46da683ddb5259e.md_1499119044653 => /root/80ad64ba72e94ddaa46da683ddb5259e.md
|
|
2017-07-03 22:57:24: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:24: [1499119044669,"80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:24: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:24: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:24: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:24: stat /root/9058b696634640ef997e1cf37a68e4cb.md
|
|
2017-07-03 22:57:24: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 9058b696634640ef997e1cf37a68e4cb, "mynote")
|
|
2017-07-03 22:57:24: put /root/.sync/9058b696634640ef997e1cf37a68e4cb.md_1499119044853
|
|
2017-07-03 22:57:24: setTimestamp /root/.sync/9058b696634640ef997e1cf37a68e4cb.md_1499119044853
|
|
2017-07-03 22:57:24: move /root/.sync/9058b696634640ef997e1cf37a68e4cb.md_1499119044853 => /root/9058b696634640ef997e1cf37a68e4cb.md
|
|
2017-07-03 22:57:24: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:24: [1499119044875,"9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:25: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:25: stat /root/e76b75b805f5491d9e0a44946429a6b9.md
|
|
2017-07-03 22:57:25: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e76b75b805f5491d9e0a44946429a6b9, "mynote2")
|
|
2017-07-03 22:57:25: put /root/.sync/e76b75b805f5491d9e0a44946429a6b9.md_1499119045091
|
|
2017-07-03 22:57:25: setTimestamp /root/.sync/e76b75b805f5491d9e0a44946429a6b9.md_1499119045091
|
|
2017-07-03 22:57:25: move /root/.sync/e76b75b805f5491d9e0a44946429a6b9.md_1499119045091 => /root/e76b75b805f5491d9e0a44946429a6b9.md
|
|
2017-07-03 22:57:25: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:25: [1499119045118,"e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:25: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:25: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: stat /root/e47ce26ea51841fdb3eacb3012064eab.md
|
|
2017-07-03 22:57:25: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e47ce26ea51841fdb3eacb3012064eab, "mytag")
|
|
2017-07-03 22:57:25: put /root/.sync/e47ce26ea51841fdb3eacb3012064eab.md_1499119045321
|
|
2017-07-03 22:57:25: setTimestamp /root/.sync/e47ce26ea51841fdb3eacb3012064eab.md_1499119045321
|
|
2017-07-03 22:57:25: move /root/.sync/e47ce26ea51841fdb3eacb3012064eab.md_1499119045321 => /root/e47ce26ea51841fdb3eacb3012064eab.md
|
|
2017-07-03 22:57:25: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:25: [1499119045339,"e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:25: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:25: list /root
|
|
2017-07-03 22:57:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:25: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:25: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:25: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:25: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:25: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:25: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:25: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:25: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:25: Synchronization complete [1499119044587]:
|
|
2017-07-03 22:57:25: remotesToUpdate: 4
|
|
2017-07-03 22:57:25: remotesToDelete: -
|
|
2017-07-03 22:57:25: localsToUdpate: -
|
|
2017-07-03 22:57:25: localsToDelete: -
|
|
2017-07-03 22:57:25: createLocal: -
|
|
2017-07-03 22:57:25: updateLocal: -
|
|
2017-07-03 22:57:25: deleteLocal: -
|
|
2017-07-03 22:57:25: createRemote: 4
|
|
2017-07-03 22:57:25: updateRemote: -
|
|
2017-07-03 22:57:25: deleteRemote: -
|
|
2017-07-03 22:57:25: itemConflict: -
|
|
2017-07-03 22:57:25: noteConflict: -
|
|
2017-07-03 22:57:25: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:25: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:25: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:25: Total folders: 1
|
|
2017-07-03 22:57:25: Total notes: 2
|
|
2017-07-03 22:57:25: Total resources: 0
|
|
2017-07-03 22:57:25: SELECT * FROM settings
|
|
2017-07-03 22:57:25: Starting synchronization... [1499119045848]
|
|
2017-07-03 22:57:25: mkdir /root/.sync
|
|
2017-07-03 22:57:25: mkdir /root/.resource
|
|
2017-07-03 22:57:25: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:25: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:25: list /root
|
|
2017-07-03 22:57:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:25: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:25: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:25: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:25: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:25: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:25: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:26: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:26: get /root/80ad64ba72e94ddaa46da683ddb5259e.md
|
|
2017-07-03 22:57:26: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:26: ["80ad64ba72e94ddaa46da683ddb5259e","folder","1499119043842","1499119043841",1499119046019]
|
|
2017-07-03 22:57:26: Sync: createLocal: remote exists but local does not: (Remote 80ad64ba72e94ddaa46da683ddb5259e, "folder")
|
|
2017-07-03 22:57:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:26: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:26: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:26: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:26: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:26: get /root/9058b696634640ef997e1cf37a68e4cb.md
|
|
2017-07-03 22:57:26: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:26: ["9058b696634640ef997e1cf37a68e4cb","","mynote","","1499119044011","1499119044011",1499119046399,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:57:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:26: Sync: createLocal: remote exists but local does not: (Remote 9058b696634640ef997e1cf37a68e4cb, "mynote")
|
|
2017-07-03 22:57:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:26: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:26: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:26: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:26: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:26: get /root/e76b75b805f5491d9e0a44946429a6b9.md
|
|
2017-07-03 22:57:26: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:26: ["e76b75b805f5491d9e0a44946429a6b9","","mynote2","","1499119044237","1499119044237",1499119046660,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:57:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:26: Sync: createLocal: remote exists but local does not: (Remote e76b75b805f5491d9e0a44946429a6b9, "mynote2")
|
|
2017-07-03 22:57:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:26: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:26: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:26: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:26: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:26: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:26: get /root/e47ce26ea51841fdb3eacb3012064eab.md
|
|
2017-07-03 22:57:26: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:26: ["e47ce26ea51841fdb3eacb3012064eab","mytag","1499119044435","1499119044434",1499119046923]
|
|
2017-07-03 22:57:27: Sync: createLocal: remote exists but local does not: (Remote e47ce26ea51841fdb3eacb3012064eab, "mytag")
|
|
2017-07-03 22:57:27: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:27: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:27: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:27: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:27: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:27: Synchronization complete [1499119045848]:
|
|
2017-07-03 22:57:27: remotesToUpdate: -
|
|
2017-07-03 22:57:27: remotesToDelete: -
|
|
2017-07-03 22:57:27: localsToUdpate: 4
|
|
2017-07-03 22:57:27: localsToDelete: -
|
|
2017-07-03 22:57:27: createLocal: 4
|
|
2017-07-03 22:57:27: updateLocal: -
|
|
2017-07-03 22:57:27: deleteLocal: -
|
|
2017-07-03 22:57:27: createRemote: -
|
|
2017-07-03 22:57:27: updateRemote: -
|
|
2017-07-03 22:57:27: deleteRemote: -
|
|
2017-07-03 22:57:27: itemConflict: -
|
|
2017-07-03 22:57:27: noteConflict: -
|
|
2017-07-03 22:57:27: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:27: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:27: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:27: Total folders: 1
|
|
2017-07-03 22:57:27: Total notes: 2
|
|
2017-07-03 22:57:27: Total resources: 0
|
|
2017-07-03 22:57:27: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 22:57:27: ["mytag"]
|
|
2017-07-03 22:57:27: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:57:27: ["e47ce26ea51841fdb3eacb3012064eab","9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:27: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:27: ["9058b696634640ef997e1cf37a68e4cb","e47ce26ea51841fdb3eacb3012064eab",1499119047154,"2c0f2416c32043d79d43488480511556",1499119047154]
|
|
2017-07-03 22:57:27: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:57:27: ["e47ce26ea51841fdb3eacb3012064eab","e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:27: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:27: ["e76b75b805f5491d9e0a44946429a6b9","e47ce26ea51841fdb3eacb3012064eab",1499119047293,"b7607a2f342543778699ddf844aecbc2",1499119047293]
|
|
2017-07-03 22:57:27: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:57:27: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:27: Starting synchronization... [1499119047418]
|
|
2017-07-03 22:57:27: mkdir /root/.sync
|
|
2017-07-03 22:57:27: mkdir /root/.resource
|
|
2017-07-03 22:57:27: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:27: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:27: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:27: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:27: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:27: stat /root/2c0f2416c32043d79d43488480511556.md
|
|
2017-07-03 22:57:27: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 2c0f2416c32043d79d43488480511556)
|
|
2017-07-03 22:57:27: put /root/.sync/2c0f2416c32043d79d43488480511556.md_1499119047481
|
|
2017-07-03 22:57:27: setTimestamp /root/.sync/2c0f2416c32043d79d43488480511556.md_1499119047481
|
|
2017-07-03 22:57:27: move /root/.sync/2c0f2416c32043d79d43488480511556.md_1499119047481 => /root/2c0f2416c32043d79d43488480511556.md
|
|
2017-07-03 22:57:27: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:27: [1499119047489,"2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:27: stat /root/b7607a2f342543778699ddf844aecbc2.md
|
|
2017-07-03 22:57:27: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local b7607a2f342543778699ddf844aecbc2)
|
|
2017-07-03 22:57:27: put /root/.sync/b7607a2f342543778699ddf844aecbc2.md_1499119047681
|
|
2017-07-03 22:57:27: setTimestamp /root/.sync/b7607a2f342543778699ddf844aecbc2.md_1499119047681
|
|
2017-07-03 22:57:27: move /root/.sync/b7607a2f342543778699ddf844aecbc2.md_1499119047681 => /root/b7607a2f342543778699ddf844aecbc2.md
|
|
2017-07-03 22:57:27: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:27: [1499119047721,"b7607a2f342543778699ddf844aecbc2"]
|
|
2017-07-03 22:57:27: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:27: list /root
|
|
2017-07-03 22:57:27: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:27: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:28: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:28: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:28: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:28: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:28: Synchronization complete [1499119047418]:
|
|
2017-07-03 22:57:28: remotesToUpdate: 2
|
|
2017-07-03 22:57:28: remotesToDelete: -
|
|
2017-07-03 22:57:28: localsToUdpate: -
|
|
2017-07-03 22:57:28: localsToDelete: -
|
|
2017-07-03 22:57:28: createLocal: -
|
|
2017-07-03 22:57:28: updateLocal: -
|
|
2017-07-03 22:57:28: deleteLocal: -
|
|
2017-07-03 22:57:28: createRemote: 2
|
|
2017-07-03 22:57:28: updateRemote: -
|
|
2017-07-03 22:57:28: deleteRemote: -
|
|
2017-07-03 22:57:28: itemConflict: -
|
|
2017-07-03 22:57:28: noteConflict: -
|
|
2017-07-03 22:57:28: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:28: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:28: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:28: Total folders: 1
|
|
2017-07-03 22:57:28: Total notes: 2
|
|
2017-07-03 22:57:28: Total resources: 0
|
|
2017-07-03 22:57:28: SELECT * FROM settings
|
|
2017-07-03 22:57:28: Starting synchronization... [1499119048430]
|
|
2017-07-03 22:57:28: mkdir /root/.sync
|
|
2017-07-03 22:57:28: mkdir /root/.resource
|
|
2017-07-03 22:57:28: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:28: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:28: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:28: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:28: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:28: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:28: list /root
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["80ad64ba72e94ddaa46da683ddb5259e"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e76b75b805f5491d9e0a44946429a6b9"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:28: get /root/2c0f2416c32043d79d43488480511556.md
|
|
2017-07-03 22:57:28: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:28: ["2c0f2416c32043d79d43488480511556","9058b696634640ef997e1cf37a68e4cb","e47ce26ea51841fdb3eacb3012064eab","1499119047154","1499119047154",1499119048619]
|
|
2017-07-03 22:57:28: Sync: createLocal: remote exists but local does not: (Remote 2c0f2416c32043d79d43488480511556)
|
|
2017-07-03 22:57:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["b7607a2f342543778699ddf844aecbc2"]
|
|
2017-07-03 22:57:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["b7607a2f342543778699ddf844aecbc2"]
|
|
2017-07-03 22:57:28: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["b7607a2f342543778699ddf844aecbc2"]
|
|
2017-07-03 22:57:28: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["b7607a2f342543778699ddf844aecbc2"]
|
|
2017-07-03 22:57:28: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:28: ["b7607a2f342543778699ddf844aecbc2"]
|
|
2017-07-03 22:57:28: get /root/b7607a2f342543778699ddf844aecbc2.md
|
|
2017-07-03 22:57:28: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:28: ["b7607a2f342543778699ddf844aecbc2","e76b75b805f5491d9e0a44946429a6b9","e47ce26ea51841fdb3eacb3012064eab","1499119047293","1499119047293",1499119048865]
|
|
2017-07-03 22:57:29: Sync: createLocal: remote exists but local does not: (Remote b7607a2f342543778699ddf844aecbc2)
|
|
2017-07-03 22:57:29: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:29: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:29: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:29: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:29: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:29: Synchronization complete [1499119048430]:
|
|
2017-07-03 22:57:29: remotesToUpdate: -
|
|
2017-07-03 22:57:29: remotesToDelete: -
|
|
2017-07-03 22:57:29: localsToUdpate: 2
|
|
2017-07-03 22:57:29: localsToDelete: -
|
|
2017-07-03 22:57:29: createLocal: 2
|
|
2017-07-03 22:57:29: updateLocal: -
|
|
2017-07-03 22:57:29: deleteLocal: -
|
|
2017-07-03 22:57:29: createRemote: -
|
|
2017-07-03 22:57:29: updateRemote: -
|
|
2017-07-03 22:57:29: deleteRemote: -
|
|
2017-07-03 22:57:29: itemConflict: -
|
|
2017-07-03 22:57:29: noteConflict: -
|
|
2017-07-03 22:57:29: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:29: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:29: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:29: Total folders: 1
|
|
2017-07-03 22:57:29: Total notes: 2
|
|
2017-07-03 22:57:29: Total resources: 0
|
|
2017-07-03 22:57:29: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:57:29: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:29: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 22:57:29: ["e47ce26ea51841fdb3eacb3012064eab","9058b696634640ef997e1cf37a68e4cb"]
|
|
2017-07-03 22:57:29: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 22:57:29: ["2c0f2416c32043d79d43488480511556"]
|
|
2017-07-03 22:57:29: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 22:57:29: [6,"2c0f2416c32043d79d43488480511556",1499119049258]
|
|
2017-07-03 22:57:29: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:57:29: ["e47ce26ea51841fdb3eacb3012064eab"]
|
|
2017-07-03 22:57:44: Database was open successfully
|
|
2017-07-03 22:57:44: Checking for database schema update...
|
|
2017-07-03 22:57:44: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:44: Database is new - creating the schema...
|
|
2017-07-03 22:57:44: BEGIN TRANSACTION
|
|
2017-07-03 22:57:44: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:44: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:57:44: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:57:44: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:57:44: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:44: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:57:44: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:57:44: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:57:44: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:57:44: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:57:44: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:57:44: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:57:44: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:44: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:44: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:44: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:57:44: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:57:44: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:57:44: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:57:44: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "387a9eaa3cc44ee1aea9f9a6c79c17f8", "2")
|
|
2017-07-03 22:57:44: COMMIT
|
|
2017-07-03 22:57:44: Database schema created successfully
|
|
2017-07-03 22:57:44: Initializing tables...
|
|
2017-07-03 22:57:44: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:57:44: PRAGMA table_info("folders")
|
|
2017-07-03 22:57:44: PRAGMA table_info("notes")
|
|
2017-07-03 22:57:44: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:57:44: PRAGMA table_info("tags")
|
|
2017-07-03 22:57:44: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:57:44: PRAGMA table_info("resources")
|
|
2017-07-03 22:57:44: PRAGMA table_info("settings")
|
|
2017-07-03 22:57:44: PRAGMA table_info("version")
|
|
2017-07-03 22:57:44: BEGIN TRANSACTION
|
|
2017-07-03 22:57:44: DELETE FROM table_fields
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["folders","id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["folders","parent_id",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["folders","title",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["folders","created_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["folders","updated_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","parent_id",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","title",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","body",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","created_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","updated_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","author",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","source_url",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","source",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","source_application",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","application_data",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["notes","order",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["deleted_items","id",null,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["tags","id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["tags","title",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["tags","created_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["tags","updated_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["note_tags","id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["resources","id",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["resources","title",2,""]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["resources","mime",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["resources","filename",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["resources","created_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["resources","updated_time",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["settings","key",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["settings","value",2,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["settings","type",1,null]
|
|
2017-07-03 22:57:44: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:44: ["version","version",1,null]
|
|
2017-07-03 22:57:44: COMMIT
|
|
2017-07-03 22:57:45: Checking for database schema update...
|
|
2017-07-03 22:57:45: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:45: Current database version
|
|
2017-07-03 22:57:45: SELECT * FROM table_fields
|
|
2017-07-03 22:57:45: BEGIN TRANSACTION
|
|
2017-07-03 22:57:45: DELETE FROM notes
|
|
2017-07-03 22:57:45: DELETE FROM folders
|
|
2017-07-03 22:57:45: DELETE FROM resources
|
|
2017-07-03 22:57:45: DELETE FROM tags
|
|
2017-07-03 22:57:45: DELETE FROM note_tags
|
|
2017-07-03 22:57:45: COMMIT
|
|
2017-07-03 22:57:45: SELECT * FROM settings
|
|
2017-07-03 22:57:45: Database was open successfully
|
|
2017-07-03 22:57:45: Checking for database schema update...
|
|
2017-07-03 22:57:45: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:45: Database is new - creating the schema...
|
|
2017-07-03 22:57:45: BEGIN TRANSACTION
|
|
2017-07-03 22:57:45: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:45: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:57:45: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:57:45: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:57:45: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:45: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:57:45: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:57:45: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:57:45: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:57:45: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:57:45: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:57:45: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:57:45: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:45: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:45: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:57:45: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:57:45: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:57:45: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:57:45: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:57:45: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "bab5ef82b8204627b1181f4960299e17", "2")
|
|
2017-07-03 22:57:45: COMMIT
|
|
2017-07-03 22:57:45: Database schema created successfully
|
|
2017-07-03 22:57:45: Initializing tables...
|
|
2017-07-03 22:57:45: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:57:45: PRAGMA table_info("folders")
|
|
2017-07-03 22:57:45: PRAGMA table_info("notes")
|
|
2017-07-03 22:57:45: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:57:45: PRAGMA table_info("tags")
|
|
2017-07-03 22:57:45: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:57:45: PRAGMA table_info("resources")
|
|
2017-07-03 22:57:45: PRAGMA table_info("settings")
|
|
2017-07-03 22:57:45: PRAGMA table_info("version")
|
|
2017-07-03 22:57:45: BEGIN TRANSACTION
|
|
2017-07-03 22:57:45: DELETE FROM table_fields
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["folders","id",2,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["folders","parent_id",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["folders","title",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["folders","created_time",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["folders","updated_time",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","id",2,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","parent_id",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","title",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","body",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","created_time",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","updated_time",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","author",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","source_url",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","source",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","source_application",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","application_data",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["notes","order",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["deleted_items","id",null,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["tags","id",2,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["tags","title",2,""]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["tags","created_time",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["tags","updated_time",1,null]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:45: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:45: ["note_tags","id",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["resources","id",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["resources","title",2,""]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["resources","mime",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["resources","filename",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["resources","created_time",1,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["resources","updated_time",1,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["settings","key",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["settings","value",2,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["settings","type",1,null]
|
|
2017-07-03 22:57:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["version","version",1,null]
|
|
2017-07-03 22:57:46: COMMIT
|
|
2017-07-03 22:57:46: Checking for database schema update...
|
|
2017-07-03 22:57:46: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:57:46: Current database version
|
|
2017-07-03 22:57:46: SELECT * FROM table_fields
|
|
2017-07-03 22:57:46: BEGIN TRANSACTION
|
|
2017-07-03 22:57:46: DELETE FROM notes
|
|
2017-07-03 22:57:46: DELETE FROM folders
|
|
2017-07-03 22:57:46: DELETE FROM resources
|
|
2017-07-03 22:57:46: DELETE FROM tags
|
|
2017-07-03 22:57:46: DELETE FROM note_tags
|
|
2017-07-03 22:57:46: COMMIT
|
|
2017-07-03 22:57:46: SELECT * FROM settings
|
|
2017-07-03 22:57:46: SELECT * FROM settings
|
|
2017-07-03 22:57:46: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["folder",1499119066718,"5261a0099d224b15a2d92d20ca95371b",1499119066718]
|
|
2017-07-03 22:57:46: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:46: ["mynote","joplin","SET_ME",1499119066867,"68fb9620c8084d188c2fe10ce31d523d",1499119066867]
|
|
2017-07-03 22:57:47: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:47: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:47: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:47: ["mynote2","joplin","SET_ME",1499119067044,"e73e77326d1647dc89a0655dedfe0897",1499119067044]
|
|
2017-07-03 22:57:47: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:47: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:47: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:57:47: ["mytag",1499119067274,"2226fde3447e40feb7edaf86518e6336",1499119067274]
|
|
2017-07-03 22:57:47: Starting synchronization... [1499119067422]
|
|
2017-07-03 22:57:47: mkdir /root/.sync
|
|
2017-07-03 22:57:47: mkdir /root/.resource
|
|
2017-07-03 22:57:47: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:47: stat /root/5261a0099d224b15a2d92d20ca95371b.md
|
|
2017-07-03 22:57:47: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 5261a0099d224b15a2d92d20ca95371b, "folder")
|
|
2017-07-03 22:57:47: put /root/.sync/5261a0099d224b15a2d92d20ca95371b.md_1499119067485
|
|
2017-07-03 22:57:47: setTimestamp /root/.sync/5261a0099d224b15a2d92d20ca95371b.md_1499119067485
|
|
2017-07-03 22:57:47: move /root/.sync/5261a0099d224b15a2d92d20ca95371b.md_1499119067485 => /root/5261a0099d224b15a2d92d20ca95371b.md
|
|
2017-07-03 22:57:47: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:47: [1499119067505,"5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:47: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:47: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:47: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:47: stat /root/68fb9620c8084d188c2fe10ce31d523d.md
|
|
2017-07-03 22:57:47: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 68fb9620c8084d188c2fe10ce31d523d, "mynote")
|
|
2017-07-03 22:57:47: put /root/.sync/68fb9620c8084d188c2fe10ce31d523d.md_1499119067693
|
|
2017-07-03 22:57:47: setTimestamp /root/.sync/68fb9620c8084d188c2fe10ce31d523d.md_1499119067693
|
|
2017-07-03 22:57:47: move /root/.sync/68fb9620c8084d188c2fe10ce31d523d.md_1499119067693 => /root/68fb9620c8084d188c2fe10ce31d523d.md
|
|
2017-07-03 22:57:47: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:47: [1499119067718,"68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:47: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:47: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:47: stat /root/e73e77326d1647dc89a0655dedfe0897.md
|
|
2017-07-03 22:57:47: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e73e77326d1647dc89a0655dedfe0897, "mynote2")
|
|
2017-07-03 22:57:47: put /root/.sync/e73e77326d1647dc89a0655dedfe0897.md_1499119067911
|
|
2017-07-03 22:57:47: setTimestamp /root/.sync/e73e77326d1647dc89a0655dedfe0897.md_1499119067911
|
|
2017-07-03 22:57:47: move /root/.sync/e73e77326d1647dc89a0655dedfe0897.md_1499119067911 => /root/e73e77326d1647dc89a0655dedfe0897.md
|
|
2017-07-03 22:57:47: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:47: [1499119067928,"e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:48: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: stat /root/2226fde3447e40feb7edaf86518e6336.md
|
|
2017-07-03 22:57:48: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 2226fde3447e40feb7edaf86518e6336, "mytag")
|
|
2017-07-03 22:57:48: put /root/.sync/2226fde3447e40feb7edaf86518e6336.md_1499119068188
|
|
2017-07-03 22:57:48: setTimestamp /root/.sync/2226fde3447e40feb7edaf86518e6336.md_1499119068188
|
|
2017-07-03 22:57:48: move /root/.sync/2226fde3447e40feb7edaf86518e6336.md_1499119068188 => /root/2226fde3447e40feb7edaf86518e6336.md
|
|
2017-07-03 22:57:48: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:48: [1499119068211,"2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:48: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:48: list /root
|
|
2017-07-03 22:57:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:48: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:48: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:48: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:48: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:48: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:48: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:48: Synchronization complete [1499119067422]:
|
|
2017-07-03 22:57:48: remotesToUpdate: 4
|
|
2017-07-03 22:57:48: remotesToDelete: -
|
|
2017-07-03 22:57:48: localsToUdpate: -
|
|
2017-07-03 22:57:48: localsToDelete: -
|
|
2017-07-03 22:57:48: createLocal: -
|
|
2017-07-03 22:57:48: updateLocal: -
|
|
2017-07-03 22:57:48: deleteLocal: -
|
|
2017-07-03 22:57:48: createRemote: 4
|
|
2017-07-03 22:57:48: updateRemote: -
|
|
2017-07-03 22:57:48: deleteRemote: -
|
|
2017-07-03 22:57:48: itemConflict: -
|
|
2017-07-03 22:57:48: noteConflict: -
|
|
2017-07-03 22:57:48: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:48: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:48: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:48: Total folders: 1
|
|
2017-07-03 22:57:48: Total notes: 2
|
|
2017-07-03 22:57:48: Total resources: 0
|
|
2017-07-03 22:57:48: SELECT * FROM settings
|
|
2017-07-03 22:57:48: Starting synchronization... [1499119068744]
|
|
2017-07-03 22:57:48: mkdir /root/.sync
|
|
2017-07-03 22:57:48: mkdir /root/.resource
|
|
2017-07-03 22:57:48: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:48: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:48: list /root
|
|
2017-07-03 22:57:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:48: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:48: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:48: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:48: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:48: get /root/5261a0099d224b15a2d92d20ca95371b.md
|
|
2017-07-03 22:57:48: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:48: ["5261a0099d224b15a2d92d20ca95371b","folder","1499119066718","1499119066718",1499119068838]
|
|
2017-07-03 22:57:48: Sync: createLocal: remote exists but local does not: (Remote 5261a0099d224b15a2d92d20ca95371b, "folder")
|
|
2017-07-03 22:57:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:48: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:48: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:48: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:49: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:49: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:49: get /root/68fb9620c8084d188c2fe10ce31d523d.md
|
|
2017-07-03 22:57:49: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:49: ["68fb9620c8084d188c2fe10ce31d523d","","mynote","","1499119066867","1499119066867",1499119069023,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:57:49: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:49: Sync: createLocal: remote exists but local does not: (Remote 68fb9620c8084d188c2fe10ce31d523d, "mynote")
|
|
2017-07-03 22:57:49: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:49: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:49: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:49: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:49: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:49: get /root/e73e77326d1647dc89a0655dedfe0897.md
|
|
2017-07-03 22:57:49: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897","","mynote2","","1499119067044","1499119067044",1499119069223,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:57:49: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:49: Sync: createLocal: remote exists but local does not: (Remote e73e77326d1647dc89a0655dedfe0897, "mynote2")
|
|
2017-07-03 22:57:49: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:49: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:49: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:49: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:49: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:49: get /root/2226fde3447e40feb7edaf86518e6336.md
|
|
2017-07-03 22:57:49: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336","mytag","1499119067274","1499119067274",1499119069495]
|
|
2017-07-03 22:57:49: Sync: createLocal: remote exists but local does not: (Remote 2226fde3447e40feb7edaf86518e6336, "mytag")
|
|
2017-07-03 22:57:49: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:49: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:49: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:49: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:49: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:49: Synchronization complete [1499119068744]:
|
|
2017-07-03 22:57:49: remotesToUpdate: -
|
|
2017-07-03 22:57:49: remotesToDelete: -
|
|
2017-07-03 22:57:49: localsToUdpate: 4
|
|
2017-07-03 22:57:49: localsToDelete: -
|
|
2017-07-03 22:57:49: createLocal: 4
|
|
2017-07-03 22:57:49: updateLocal: -
|
|
2017-07-03 22:57:49: deleteLocal: -
|
|
2017-07-03 22:57:49: createRemote: -
|
|
2017-07-03 22:57:49: updateRemote: -
|
|
2017-07-03 22:57:49: deleteRemote: -
|
|
2017-07-03 22:57:49: itemConflict: -
|
|
2017-07-03 22:57:49: noteConflict: -
|
|
2017-07-03 22:57:49: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:49: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:49: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:49: Total folders: 1
|
|
2017-07-03 22:57:49: Total notes: 2
|
|
2017-07-03 22:57:49: Total resources: 0
|
|
2017-07-03 22:57:49: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 22:57:49: ["mytag"]
|
|
2017-07-03 22:57:49: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336","68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:49: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:49: ["68fb9620c8084d188c2fe10ce31d523d","2226fde3447e40feb7edaf86518e6336",1499119069707,"524b5cbc3f1b469787df222df82787c4",1499119069707]
|
|
2017-07-03 22:57:49: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336","e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:49: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:49: ["e73e77326d1647dc89a0655dedfe0897","2226fde3447e40feb7edaf86518e6336",1499119069836,"61b34961a86c48c1957e5b88eb509632",1499119069836]
|
|
2017-07-03 22:57:49: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:57:49: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:49: Starting synchronization... [1499119069969]
|
|
2017-07-03 22:57:49: mkdir /root/.sync
|
|
2017-07-03 22:57:49: mkdir /root/.resource
|
|
2017-07-03 22:57:49: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:49: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:49: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:49: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:49: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:49: stat /root/524b5cbc3f1b469787df222df82787c4.md
|
|
2017-07-03 22:57:50: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 524b5cbc3f1b469787df222df82787c4)
|
|
2017-07-03 22:57:50: put /root/.sync/524b5cbc3f1b469787df222df82787c4.md_1499119070003
|
|
2017-07-03 22:57:50: setTimestamp /root/.sync/524b5cbc3f1b469787df222df82787c4.md_1499119070003
|
|
2017-07-03 22:57:50: move /root/.sync/524b5cbc3f1b469787df222df82787c4.md_1499119070003 => /root/524b5cbc3f1b469787df222df82787c4.md
|
|
2017-07-03 22:57:50: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:50: [1499119070011,"524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:50: stat /root/61b34961a86c48c1957e5b88eb509632.md
|
|
2017-07-03 22:57:50: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 61b34961a86c48c1957e5b88eb509632)
|
|
2017-07-03 22:57:50: put /root/.sync/61b34961a86c48c1957e5b88eb509632.md_1499119070169
|
|
2017-07-03 22:57:50: setTimestamp /root/.sync/61b34961a86c48c1957e5b88eb509632.md_1499119070169
|
|
2017-07-03 22:57:50: move /root/.sync/61b34961a86c48c1957e5b88eb509632.md_1499119070169 => /root/61b34961a86c48c1957e5b88eb509632.md
|
|
2017-07-03 22:57:50: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:57:50: [1499119070208,"61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:50: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:50: list /root
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:50: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:50: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:50: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:50: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:50: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:50: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:50: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:50: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:50: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:50: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:50: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:50: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:50: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:50: Synchronization complete [1499119069969]:
|
|
2017-07-03 22:57:50: remotesToUpdate: 2
|
|
2017-07-03 22:57:50: remotesToDelete: -
|
|
2017-07-03 22:57:50: localsToUdpate: -
|
|
2017-07-03 22:57:50: localsToDelete: -
|
|
2017-07-03 22:57:50: createLocal: -
|
|
2017-07-03 22:57:50: updateLocal: -
|
|
2017-07-03 22:57:50: deleteLocal: -
|
|
2017-07-03 22:57:50: createRemote: 2
|
|
2017-07-03 22:57:50: updateRemote: -
|
|
2017-07-03 22:57:50: deleteRemote: -
|
|
2017-07-03 22:57:50: itemConflict: -
|
|
2017-07-03 22:57:50: noteConflict: -
|
|
2017-07-03 22:57:50: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:50: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:50: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:50: Total folders: 1
|
|
2017-07-03 22:57:50: Total notes: 2
|
|
2017-07-03 22:57:50: Total resources: 0
|
|
2017-07-03 22:57:50: SELECT * FROM settings
|
|
2017-07-03 22:57:50: Starting synchronization... [1499119070905]
|
|
2017-07-03 22:57:50: mkdir /root/.sync
|
|
2017-07-03 22:57:50: mkdir /root/.resource
|
|
2017-07-03 22:57:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:50: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:50: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:50: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:50: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:50: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:50: list /root
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:50: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:50: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:51: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:51: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:51: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:51: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:51: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:51: get /root/524b5cbc3f1b469787df222df82787c4.md
|
|
2017-07-03 22:57:51: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:51: ["524b5cbc3f1b469787df222df82787c4","68fb9620c8084d188c2fe10ce31d523d","2226fde3447e40feb7edaf86518e6336","1499119069707","1499119069707",1499119071057]
|
|
2017-07-03 22:57:51: Sync: createLocal: remote exists but local does not: (Remote 524b5cbc3f1b469787df222df82787c4)
|
|
2017-07-03 22:57:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:51: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:51: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:51: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:51: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:51: get /root/61b34961a86c48c1957e5b88eb509632.md
|
|
2017-07-03 22:57:51: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:57:51: ["61b34961a86c48c1957e5b88eb509632","e73e77326d1647dc89a0655dedfe0897","2226fde3447e40feb7edaf86518e6336","1499119069836","1499119069836",1499119071431]
|
|
2017-07-03 22:57:51: Sync: createLocal: remote exists but local does not: (Remote 61b34961a86c48c1957e5b88eb509632)
|
|
2017-07-03 22:57:51: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:51: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:51: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:51: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:51: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:51: Synchronization complete [1499119070905]:
|
|
2017-07-03 22:57:51: remotesToUpdate: -
|
|
2017-07-03 22:57:51: remotesToDelete: -
|
|
2017-07-03 22:57:51: localsToUdpate: 2
|
|
2017-07-03 22:57:51: localsToDelete: -
|
|
2017-07-03 22:57:51: createLocal: 2
|
|
2017-07-03 22:57:51: updateLocal: -
|
|
2017-07-03 22:57:51: deleteLocal: -
|
|
2017-07-03 22:57:51: createRemote: -
|
|
2017-07-03 22:57:51: updateRemote: -
|
|
2017-07-03 22:57:51: deleteRemote: -
|
|
2017-07-03 22:57:51: itemConflict: -
|
|
2017-07-03 22:57:51: noteConflict: -
|
|
2017-07-03 22:57:51: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:51: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:51: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:51: Total folders: 1
|
|
2017-07-03 22:57:51: Total notes: 2
|
|
2017-07-03 22:57:51: Total resources: 0
|
|
2017-07-03 22:57:51: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:57:51: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:51: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 22:57:51: ["2226fde3447e40feb7edaf86518e6336","68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:51: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 22:57:51: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:51: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 22:57:51: [6,"524b5cbc3f1b469787df222df82787c4",1499119071781]
|
|
2017-07-03 22:57:51: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:57:51: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:51: Starting synchronization... [1499119071956]
|
|
2017-07-03 22:57:51: mkdir /root/.sync
|
|
2017-07-03 22:57:51: mkdir /root/.resource
|
|
2017-07-03 22:57:51: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:51: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:51: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:51: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:51: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:51: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:51: Sync: deleteRemote: local has been deleted: (Remote 524b5cbc3f1b469787df222df82787c4)
|
|
2017-07-03 22:57:52: delete /root/524b5cbc3f1b469787df222df82787c4.md
|
|
2017-07-03 22:57:52: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 22:57:52: ["524b5cbc3f1b469787df222df82787c4"]
|
|
2017-07-03 22:57:52: list /root
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:52: Synchronization complete [1499119071956]:
|
|
2017-07-03 22:57:52: remotesToUpdate: -
|
|
2017-07-03 22:57:52: remotesToDelete: 1
|
|
2017-07-03 22:57:52: localsToUdpate: -
|
|
2017-07-03 22:57:52: localsToDelete: -
|
|
2017-07-03 22:57:52: createLocal: -
|
|
2017-07-03 22:57:52: updateLocal: -
|
|
2017-07-03 22:57:52: deleteLocal: -
|
|
2017-07-03 22:57:52: createRemote: -
|
|
2017-07-03 22:57:52: updateRemote: -
|
|
2017-07-03 22:57:52: deleteRemote: 1
|
|
2017-07-03 22:57:52: itemConflict: -
|
|
2017-07-03 22:57:52: noteConflict: -
|
|
2017-07-03 22:57:52: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:52: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:52: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:52: Total folders: 1
|
|
2017-07-03 22:57:52: Total notes: 2
|
|
2017-07-03 22:57:52: Total resources: 0
|
|
2017-07-03 22:57:52: SELECT * FROM settings
|
|
2017-07-03 22:57:52: Starting synchronization... [1499119072605]
|
|
2017-07-03 22:57:52: mkdir /root/.sync
|
|
2017-07-03 22:57:52: mkdir /root/.resource
|
|
2017-07-03 22:57:52: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:52: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:52: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:57:52: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:52: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:57:52: SELECT * FROM deleted_items
|
|
2017-07-03 22:57:52: list /root
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["5261a0099d224b15a2d92d20ca95371b"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["68fb9620c8084d188c2fe10ce31d523d"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["e73e77326d1647dc89a0655dedfe0897"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:57:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:57:52: ["61b34961a86c48c1957e5b88eb509632"]
|
|
2017-07-03 22:57:52: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:57:52: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:57:52: Synchronization complete [1499119072605]:
|
|
2017-07-03 22:57:52: remotesToUpdate: -
|
|
2017-07-03 22:57:52: remotesToDelete: -
|
|
2017-07-03 22:57:52: localsToUdpate: -
|
|
2017-07-03 22:57:52: localsToDelete: -
|
|
2017-07-03 22:57:52: createLocal: -
|
|
2017-07-03 22:57:52: updateLocal: -
|
|
2017-07-03 22:57:52: deleteLocal: -
|
|
2017-07-03 22:57:52: createRemote: -
|
|
2017-07-03 22:57:52: updateRemote: -
|
|
2017-07-03 22:57:52: deleteRemote: -
|
|
2017-07-03 22:57:52: itemConflict: -
|
|
2017-07-03 22:57:52: noteConflict: -
|
|
2017-07-03 22:57:52: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:57:52: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:57:52: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:57:52: Total folders: 1
|
|
2017-07-03 22:57:52: Total notes: 2
|
|
2017-07-03 22:57:52: Total resources: 0
|
|
2017-07-03 22:57:52: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:57:52: ["2226fde3447e40feb7edaf86518e6336"]
|
|
2017-07-03 22:58:25: Database was open successfully
|
|
2017-07-03 22:58:25: Checking for database schema update...
|
|
2017-07-03 22:58:25: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:58:25: Database is new - creating the schema...
|
|
2017-07-03 22:58:25: BEGIN TRANSACTION
|
|
2017-07-03 22:58:25: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:25: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:58:25: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:58:25: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:58:25: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:25: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:58:25: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:58:25: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:58:25: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:58:25: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:58:25: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:58:25: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:58:25: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:25: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:25: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:25: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:58:25: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:58:25: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:58:25: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:58:25: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "e7c0256955f44e448754728e7e193dae", "2")
|
|
2017-07-03 22:58:25: COMMIT
|
|
2017-07-03 22:58:26: Database schema created successfully
|
|
2017-07-03 22:58:26: Initializing tables...
|
|
2017-07-03 22:58:26: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:58:26: PRAGMA table_info("folders")
|
|
2017-07-03 22:58:26: PRAGMA table_info("notes")
|
|
2017-07-03 22:58:26: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:58:26: PRAGMA table_info("tags")
|
|
2017-07-03 22:58:26: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:58:26: PRAGMA table_info("resources")
|
|
2017-07-03 22:58:26: PRAGMA table_info("settings")
|
|
2017-07-03 22:58:26: PRAGMA table_info("version")
|
|
2017-07-03 22:58:26: BEGIN TRANSACTION
|
|
2017-07-03 22:58:26: DELETE FROM table_fields
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["folders","id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["folders","parent_id",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["folders","title",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["folders","created_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["folders","updated_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","parent_id",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","title",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","body",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","created_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","updated_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","author",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","source_url",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","source",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","source_application",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","application_data",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["notes","order",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["deleted_items","id",null,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["tags","id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["tags","title",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["tags","created_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["tags","updated_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["note_tags","id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["resources","id",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["resources","title",2,""]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["resources","mime",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["resources","filename",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["resources","created_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["resources","updated_time",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["settings","key",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["settings","value",2,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["settings","type",1,null]
|
|
2017-07-03 22:58:26: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:26: ["version","version",1,null]
|
|
2017-07-03 22:58:26: COMMIT
|
|
2017-07-03 22:58:26: Checking for database schema update...
|
|
2017-07-03 22:58:26: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:58:26: Current database version
|
|
2017-07-03 22:58:26: SELECT * FROM table_fields
|
|
2017-07-03 22:58:26: BEGIN TRANSACTION
|
|
2017-07-03 22:58:26: DELETE FROM notes
|
|
2017-07-03 22:58:26: DELETE FROM folders
|
|
2017-07-03 22:58:26: DELETE FROM resources
|
|
2017-07-03 22:58:26: DELETE FROM tags
|
|
2017-07-03 22:58:26: DELETE FROM note_tags
|
|
2017-07-03 22:58:26: COMMIT
|
|
2017-07-03 22:58:26: SELECT * FROM settings
|
|
2017-07-03 22:58:26: Database was open successfully
|
|
2017-07-03 22:58:26: Checking for database schema update...
|
|
2017-07-03 22:58:26: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:58:26: Database is new - creating the schema...
|
|
2017-07-03 22:58:26: BEGIN TRANSACTION
|
|
2017-07-03 22:58:26: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:26: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 22:58:26: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 22:58:26: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 22:58:26: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:26: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 22:58:26: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 22:58:26: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 22:58:26: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 22:58:26: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 22:58:26: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 22:58:26: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 22:58:26: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:26: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:26: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 22:58:26: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 22:58:27: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 22:58:27: CREATE TABLE version ( version INT);
|
|
2017-07-03 22:58:27: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 22:58:27: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "f9d796e6ceae4cc98d8732202f0a8805", "2")
|
|
2017-07-03 22:58:27: COMMIT
|
|
2017-07-03 22:58:27: Database schema created successfully
|
|
2017-07-03 22:58:27: Initializing tables...
|
|
2017-07-03 22:58:27: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 22:58:27: PRAGMA table_info("folders")
|
|
2017-07-03 22:58:27: PRAGMA table_info("notes")
|
|
2017-07-03 22:58:27: PRAGMA table_info("deleted_items")
|
|
2017-07-03 22:58:27: PRAGMA table_info("tags")
|
|
2017-07-03 22:58:27: PRAGMA table_info("note_tags")
|
|
2017-07-03 22:58:27: PRAGMA table_info("resources")
|
|
2017-07-03 22:58:27: PRAGMA table_info("settings")
|
|
2017-07-03 22:58:27: PRAGMA table_info("version")
|
|
2017-07-03 22:58:27: BEGIN TRANSACTION
|
|
2017-07-03 22:58:27: DELETE FROM table_fields
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["folders","id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["folders","parent_id",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["folders","title",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["folders","created_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["folders","updated_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["folders","sync_time",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","parent_id",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","title",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","body",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","created_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","updated_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","sync_time",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","latitude",3,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","longitude",3,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","altitude",3,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","author",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","source_url",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","is_todo",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","todo_due",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","source",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","source_application",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","application_data",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["notes","order",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["deleted_items","id",null,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["deleted_items","item_type",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["deleted_items","item_id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["tags","id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["tags","title",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["tags","created_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["tags","updated_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["tags","sync_time",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["note_tags","id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["note_tags","note_id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["note_tags","tag_id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["note_tags","created_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["note_tags","updated_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["resources","id",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["resources","title",2,""]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["resources","mime",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["resources","filename",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["resources","created_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["resources","updated_time",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["resources","sync_time",1,"0"]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["settings","key",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["settings","value",2,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["settings","type",1,null]
|
|
2017-07-03 22:58:27: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:27: ["version","version",1,null]
|
|
2017-07-03 22:58:27: COMMIT
|
|
2017-07-03 22:58:27: Checking for database schema update...
|
|
2017-07-03 22:58:27: SELECT * FROM version LIMIT 1
|
|
2017-07-03 22:58:27: Current database version
|
|
2017-07-03 22:58:27: SELECT * FROM table_fields
|
|
2017-07-03 22:58:27: BEGIN TRANSACTION
|
|
2017-07-03 22:58:27: DELETE FROM notes
|
|
2017-07-03 22:58:27: DELETE FROM folders
|
|
2017-07-03 22:58:27: DELETE FROM resources
|
|
2017-07-03 22:58:27: DELETE FROM tags
|
|
2017-07-03 22:58:27: DELETE FROM note_tags
|
|
2017-07-03 22:58:27: COMMIT
|
|
2017-07-03 22:58:28: SELECT * FROM settings
|
|
2017-07-03 22:58:28: SELECT * FROM settings
|
|
2017-07-03 22:58:28: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:28: ["folder",1499119108372,"5f8ab6efcc7e4beda31f093c61e0fd2f",1499119108373]
|
|
2017-07-03 22:58:28: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:28: ["mynote","joplin","SET_ME",1499119108540,"cb8ca186d37e47be93a67d8e74cd229e",1499119108540]
|
|
2017-07-03 22:58:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:28: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:28: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:28: ["mynote2","joplin","SET_ME",1499119108744,"fca8eb3f196044508fd8dc141226d174",1499119108745]
|
|
2017-07-03 22:58:29: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:29: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:29: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 22:58:29: ["mytag",1499119109035,"f2f7e67d8c1b43b6aeeec7a6e3063e72",1499119109035]
|
|
2017-07-03 22:58:29: Starting synchronization... [1499119109215]
|
|
2017-07-03 22:58:29: mkdir /root/.sync
|
|
2017-07-03 22:58:29: mkdir /root/.resource
|
|
2017-07-03 22:58:29: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:29: stat /root/5f8ab6efcc7e4beda31f093c61e0fd2f.md
|
|
2017-07-03 22:58:29: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 5f8ab6efcc7e4beda31f093c61e0fd2f, "folder")
|
|
2017-07-03 22:58:29: put /root/.sync/5f8ab6efcc7e4beda31f093c61e0fd2f.md_1499119109279
|
|
2017-07-03 22:58:29: setTimestamp /root/.sync/5f8ab6efcc7e4beda31f093c61e0fd2f.md_1499119109279
|
|
2017-07-03 22:58:29: move /root/.sync/5f8ab6efcc7e4beda31f093c61e0fd2f.md_1499119109279 => /root/5f8ab6efcc7e4beda31f093c61e0fd2f.md
|
|
2017-07-03 22:58:29: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:58:29: [1499119109302,"5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:29: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:29: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:29: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:29: stat /root/cb8ca186d37e47be93a67d8e74cd229e.md
|
|
2017-07-03 22:58:29: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local cb8ca186d37e47be93a67d8e74cd229e, "mynote")
|
|
2017-07-03 22:58:29: put /root/.sync/cb8ca186d37e47be93a67d8e74cd229e.md_1499119109500
|
|
2017-07-03 22:58:29: setTimestamp /root/.sync/cb8ca186d37e47be93a67d8e74cd229e.md_1499119109500
|
|
2017-07-03 22:58:29: move /root/.sync/cb8ca186d37e47be93a67d8e74cd229e.md_1499119109500 => /root/cb8ca186d37e47be93a67d8e74cd229e.md
|
|
2017-07-03 22:58:29: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:58:29: [1499119109516,"cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:29: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:29: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:29: stat /root/fca8eb3f196044508fd8dc141226d174.md
|
|
2017-07-03 22:58:29: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local fca8eb3f196044508fd8dc141226d174, "mynote2")
|
|
2017-07-03 22:58:29: put /root/.sync/fca8eb3f196044508fd8dc141226d174.md_1499119109691
|
|
2017-07-03 22:58:29: setTimestamp /root/.sync/fca8eb3f196044508fd8dc141226d174.md_1499119109691
|
|
2017-07-03 22:58:29: move /root/.sync/fca8eb3f196044508fd8dc141226d174.md_1499119109691 => /root/fca8eb3f196044508fd8dc141226d174.md
|
|
2017-07-03 22:58:29: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:58:29: [1499119109727,"fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:29: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:29: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:29: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:29: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:29: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:29: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:29: stat /root/f2f7e67d8c1b43b6aeeec7a6e3063e72.md
|
|
2017-07-03 22:58:29: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local f2f7e67d8c1b43b6aeeec7a6e3063e72, "mytag")
|
|
2017-07-03 22:58:29: put /root/.sync/f2f7e67d8c1b43b6aeeec7a6e3063e72.md_1499119109972
|
|
2017-07-03 22:58:29: setTimestamp /root/.sync/f2f7e67d8c1b43b6aeeec7a6e3063e72.md_1499119109972
|
|
2017-07-03 22:58:29: move /root/.sync/f2f7e67d8c1b43b6aeeec7a6e3063e72.md_1499119109972 => /root/f2f7e67d8c1b43b6aeeec7a6e3063e72.md
|
|
2017-07-03 22:58:29: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:58:29: [1499119109990,"f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:30: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM deleted_items
|
|
2017-07-03 22:58:30: list /root
|
|
2017-07-03 22:58:30: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:30: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:58:30: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:58:30: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:58:30: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:58:30: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:58:30: Synchronization complete [1499119109215]:
|
|
2017-07-03 22:58:30: remotesToUpdate: 4
|
|
2017-07-03 22:58:30: remotesToDelete: -
|
|
2017-07-03 22:58:30: localsToUdpate: -
|
|
2017-07-03 22:58:30: localsToDelete: -
|
|
2017-07-03 22:58:30: createLocal: -
|
|
2017-07-03 22:58:30: updateLocal: -
|
|
2017-07-03 22:58:30: deleteLocal: -
|
|
2017-07-03 22:58:30: createRemote: 4
|
|
2017-07-03 22:58:30: updateRemote: -
|
|
2017-07-03 22:58:30: deleteRemote: -
|
|
2017-07-03 22:58:30: itemConflict: -
|
|
2017-07-03 22:58:30: noteConflict: -
|
|
2017-07-03 22:58:30: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:58:30: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:58:30: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:58:30: Total folders: 1
|
|
2017-07-03 22:58:30: Total notes: 2
|
|
2017-07-03 22:58:30: Total resources: 0
|
|
2017-07-03 22:58:30: SELECT * FROM settings
|
|
2017-07-03 22:58:30: Starting synchronization... [1499119110592]
|
|
2017-07-03 22:58:30: mkdir /root/.sync
|
|
2017-07-03 22:58:30: mkdir /root/.resource
|
|
2017-07-03 22:58:30: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:30: SELECT * FROM deleted_items
|
|
2017-07-03 22:58:30: list /root
|
|
2017-07-03 22:58:30: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:30: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:30: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:30: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:30: get /root/5f8ab6efcc7e4beda31f093c61e0fd2f.md
|
|
2017-07-03 22:58:30: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:30: ["5f8ab6efcc7e4beda31f093c61e0fd2f","folder","1499119108373","1499119108372",1499119110692]
|
|
2017-07-03 22:58:30: Sync: createLocal: remote exists but local does not: (Remote 5f8ab6efcc7e4beda31f093c61e0fd2f, "folder")
|
|
2017-07-03 22:58:30: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:30: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:30: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:30: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:30: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:30: get /root/cb8ca186d37e47be93a67d8e74cd229e.md
|
|
2017-07-03 22:58:30: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:30: ["cb8ca186d37e47be93a67d8e74cd229e","","mynote","","1499119108540","1499119108540",1499119110928,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:58:31: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:31: Sync: createLocal: remote exists but local does not: (Remote cb8ca186d37e47be93a67d8e74cd229e, "mynote")
|
|
2017-07-03 22:58:31: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:31: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:31: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:31: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:31: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:31: get /root/fca8eb3f196044508fd8dc141226d174.md
|
|
2017-07-03 22:58:31: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:31: ["fca8eb3f196044508fd8dc141226d174","","mynote2","","1499119108745","1499119108744",1499119111231,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 22:58:31: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:31: Sync: createLocal: remote exists but local does not: (Remote fca8eb3f196044508fd8dc141226d174, "mynote2")
|
|
2017-07-03 22:58:31: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:31: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:31: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:31: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:31: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:31: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:31: get /root/f2f7e67d8c1b43b6aeeec7a6e3063e72.md
|
|
2017-07-03 22:58:31: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:31: ["f2f7e67d8c1b43b6aeeec7a6e3063e72","mytag","1499119109035","1499119109035",1499119111532]
|
|
2017-07-03 22:58:31: Sync: createLocal: remote exists but local does not: (Remote f2f7e67d8c1b43b6aeeec7a6e3063e72, "mytag")
|
|
2017-07-03 22:58:31: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:58:31: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:58:31: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:58:31: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:58:31: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:58:31: Synchronization complete [1499119110592]:
|
|
2017-07-03 22:58:31: remotesToUpdate: -
|
|
2017-07-03 22:58:31: remotesToDelete: -
|
|
2017-07-03 22:58:31: localsToUdpate: 4
|
|
2017-07-03 22:58:31: localsToDelete: -
|
|
2017-07-03 22:58:31: createLocal: 4
|
|
2017-07-03 22:58:31: updateLocal: -
|
|
2017-07-03 22:58:31: deleteLocal: -
|
|
2017-07-03 22:58:31: createRemote: -
|
|
2017-07-03 22:58:31: updateRemote: -
|
|
2017-07-03 22:58:31: deleteRemote: -
|
|
2017-07-03 22:58:31: itemConflict: -
|
|
2017-07-03 22:58:31: noteConflict: -
|
|
2017-07-03 22:58:31: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:58:31: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:58:31: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:58:31: Total folders: 1
|
|
2017-07-03 22:58:31: Total notes: 2
|
|
2017-07-03 22:58:31: Total resources: 0
|
|
2017-07-03 22:58:31: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 22:58:31: ["mytag"]
|
|
2017-07-03 22:58:31: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:58:31: ["f2f7e67d8c1b43b6aeeec7a6e3063e72","cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:31: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:31: ["cb8ca186d37e47be93a67d8e74cd229e","f2f7e67d8c1b43b6aeeec7a6e3063e72",1499119111928,"711323e45a0946d2b0d9ad7fdfcb9306",1499119111928]
|
|
2017-07-03 22:58:32: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 22:58:32: ["f2f7e67d8c1b43b6aeeec7a6e3063e72","fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:32: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:32: ["fca8eb3f196044508fd8dc141226d174","f2f7e67d8c1b43b6aeeec7a6e3063e72",1499119112108,"03fc6e1728244443baca73e62010d529",1499119112109]
|
|
2017-07-03 22:58:32: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:58:32: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:32: Starting synchronization... [1499119112302]
|
|
2017-07-03 22:58:32: mkdir /root/.sync
|
|
2017-07-03 22:58:32: mkdir /root/.resource
|
|
2017-07-03 22:58:32: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:32: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:32: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:32: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:32: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:32: stat /root/711323e45a0946d2b0d9ad7fdfcb9306.md
|
|
2017-07-03 22:58:32: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 711323e45a0946d2b0d9ad7fdfcb9306)
|
|
2017-07-03 22:58:32: put /root/.sync/711323e45a0946d2b0d9ad7fdfcb9306.md_1499119112351
|
|
2017-07-03 22:58:32: setTimestamp /root/.sync/711323e45a0946d2b0d9ad7fdfcb9306.md_1499119112351
|
|
2017-07-03 22:58:32: move /root/.sync/711323e45a0946d2b0d9ad7fdfcb9306.md_1499119112351 => /root/711323e45a0946d2b0d9ad7fdfcb9306.md
|
|
2017-07-03 22:58:32: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:58:32: [1499119112360,"711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:32: stat /root/03fc6e1728244443baca73e62010d529.md
|
|
2017-07-03 22:58:32: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 03fc6e1728244443baca73e62010d529)
|
|
2017-07-03 22:58:32: put /root/.sync/03fc6e1728244443baca73e62010d529.md_1499119112508
|
|
2017-07-03 22:58:32: setTimestamp /root/.sync/03fc6e1728244443baca73e62010d529.md_1499119112508
|
|
2017-07-03 22:58:32: move /root/.sync/03fc6e1728244443baca73e62010d529.md_1499119112508 => /root/03fc6e1728244443baca73e62010d529.md
|
|
2017-07-03 22:58:32: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 22:58:32: [1499119112536,"03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:32: SELECT * FROM deleted_items
|
|
2017-07-03 22:58:32: list /root
|
|
2017-07-03 22:58:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:32: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:32: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:32: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:32: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:32: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:32: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:32: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:32: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:32: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:32: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:58:32: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:58:32: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:58:32: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:58:32: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:58:32: Synchronization complete [1499119112302]:
|
|
2017-07-03 22:58:32: remotesToUpdate: 2
|
|
2017-07-03 22:58:32: remotesToDelete: -
|
|
2017-07-03 22:58:32: localsToUdpate: -
|
|
2017-07-03 22:58:32: localsToDelete: -
|
|
2017-07-03 22:58:32: createLocal: -
|
|
2017-07-03 22:58:32: updateLocal: -
|
|
2017-07-03 22:58:32: deleteLocal: -
|
|
2017-07-03 22:58:32: createRemote: 2
|
|
2017-07-03 22:58:32: updateRemote: -
|
|
2017-07-03 22:58:32: deleteRemote: -
|
|
2017-07-03 22:58:32: itemConflict: -
|
|
2017-07-03 22:58:32: noteConflict: -
|
|
2017-07-03 22:58:32: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:58:32: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:58:32: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:58:32: Total folders: 1
|
|
2017-07-03 22:58:32: Total notes: 2
|
|
2017-07-03 22:58:32: Total resources: 0
|
|
2017-07-03 22:58:33: SELECT * FROM settings
|
|
2017-07-03 22:58:33: Starting synchronization... [1499119113133]
|
|
2017-07-03 22:58:33: mkdir /root/.sync
|
|
2017-07-03 22:58:33: mkdir /root/.resource
|
|
2017-07-03 22:58:33: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:33: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:33: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:33: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:33: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:33: SELECT * FROM deleted_items
|
|
2017-07-03 22:58:33: list /root
|
|
2017-07-03 22:58:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:33: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:33: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:33: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:33: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:33: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:33: get /root/711323e45a0946d2b0d9ad7fdfcb9306.md
|
|
2017-07-03 22:58:33: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:33: ["711323e45a0946d2b0d9ad7fdfcb9306","cb8ca186d37e47be93a67d8e74cd229e","f2f7e67d8c1b43b6aeeec7a6e3063e72","1499119111928","1499119111928",1499119113318]
|
|
2017-07-03 22:58:33: Sync: createLocal: remote exists but local does not: (Remote 711323e45a0946d2b0d9ad7fdfcb9306)
|
|
2017-07-03 22:58:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:33: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:33: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:33: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:33: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:33: get /root/03fc6e1728244443baca73e62010d529.md
|
|
2017-07-03 22:58:33: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 22:58:33: ["03fc6e1728244443baca73e62010d529","fca8eb3f196044508fd8dc141226d174","f2f7e67d8c1b43b6aeeec7a6e3063e72","1499119112109","1499119112108",1499119113563]
|
|
2017-07-03 22:58:33: Sync: createLocal: remote exists but local does not: (Remote 03fc6e1728244443baca73e62010d529)
|
|
2017-07-03 22:58:33: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:58:33: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:58:33: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:58:33: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:58:33: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:58:33: Synchronization complete [1499119113133]:
|
|
2017-07-03 22:58:33: remotesToUpdate: -
|
|
2017-07-03 22:58:33: remotesToDelete: -
|
|
2017-07-03 22:58:33: localsToUdpate: 2
|
|
2017-07-03 22:58:33: localsToDelete: -
|
|
2017-07-03 22:58:33: createLocal: 2
|
|
2017-07-03 22:58:33: updateLocal: -
|
|
2017-07-03 22:58:33: deleteLocal: -
|
|
2017-07-03 22:58:33: createRemote: -
|
|
2017-07-03 22:58:33: updateRemote: -
|
|
2017-07-03 22:58:33: deleteRemote: -
|
|
2017-07-03 22:58:33: itemConflict: -
|
|
2017-07-03 22:58:33: noteConflict: -
|
|
2017-07-03 22:58:33: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:58:33: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:58:33: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:58:33: Total folders: 1
|
|
2017-07-03 22:58:33: Total notes: 2
|
|
2017-07-03 22:58:33: Total resources: 0
|
|
2017-07-03 22:58:33: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:58:33: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:33: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 22:58:33: ["f2f7e67d8c1b43b6aeeec7a6e3063e72","cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:33: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 22:58:33: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:34: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 22:58:34: [6,"711323e45a0946d2b0d9ad7fdfcb9306",1499119114029]
|
|
2017-07-03 22:58:34: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:58:34: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:34: Starting synchronization... [1499119114196]
|
|
2017-07-03 22:58:34: mkdir /root/.sync
|
|
2017-07-03 22:58:34: mkdir /root/.resource
|
|
2017-07-03 22:58:34: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:34: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:34: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:34: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:34: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:34: SELECT * FROM deleted_items
|
|
2017-07-03 22:58:34: Sync: deleteRemote: local has been deleted: (Remote 711323e45a0946d2b0d9ad7fdfcb9306)
|
|
2017-07-03 22:58:34: delete /root/711323e45a0946d2b0d9ad7fdfcb9306.md
|
|
2017-07-03 22:58:34: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 22:58:34: ["711323e45a0946d2b0d9ad7fdfcb9306"]
|
|
2017-07-03 22:58:34: list /root
|
|
2017-07-03 22:58:34: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:34: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:34: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:34: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:34: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:34: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:34: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:34: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:34: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:34: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:34: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:34: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:34: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:34: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:34: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:58:34: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:58:34: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:58:34: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:58:34: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:58:34: Synchronization complete [1499119114196]:
|
|
2017-07-03 22:58:34: remotesToUpdate: -
|
|
2017-07-03 22:58:34: remotesToDelete: 1
|
|
2017-07-03 22:58:34: localsToUdpate: -
|
|
2017-07-03 22:58:34: localsToDelete: -
|
|
2017-07-03 22:58:34: createLocal: -
|
|
2017-07-03 22:58:34: updateLocal: -
|
|
2017-07-03 22:58:34: deleteLocal: -
|
|
2017-07-03 22:58:34: createRemote: -
|
|
2017-07-03 22:58:34: updateRemote: -
|
|
2017-07-03 22:58:34: deleteRemote: 1
|
|
2017-07-03 22:58:34: itemConflict: -
|
|
2017-07-03 22:58:34: noteConflict: -
|
|
2017-07-03 22:58:34: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:58:34: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:58:34: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:58:34: Total folders: 1
|
|
2017-07-03 22:58:34: Total notes: 2
|
|
2017-07-03 22:58:34: Total resources: 0
|
|
2017-07-03 22:58:34: SELECT * FROM settings
|
|
2017-07-03 22:58:34: Starting synchronization... [1499119114996]
|
|
2017-07-03 22:58:35: mkdir /root/.sync
|
|
2017-07-03 22:58:35: mkdir /root/.resource
|
|
2017-07-03 22:58:35: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:35: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:35: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 22:58:35: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:35: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 22:58:35: SELECT * FROM deleted_items
|
|
2017-07-03 22:58:35: list /root
|
|
2017-07-03 22:58:35: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:35: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["5f8ab6efcc7e4beda31f093c61e0fd2f"]
|
|
2017-07-03 22:58:35: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["cb8ca186d37e47be93a67d8e74cd229e"]
|
|
2017-07-03 22:58:35: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["fca8eb3f196044508fd8dc141226d174"]
|
|
2017-07-03 22:58:35: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:35: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:35: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:35: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 22:58:35: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:35: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:35: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:35: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:35: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 22:58:35: ["03fc6e1728244443baca73e62010d529"]
|
|
2017-07-03 22:58:35: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 22:58:35: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 22:58:35: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 22:58:35: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 22:58:35: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 22:58:35: Synchronization complete [1499119114996]:
|
|
2017-07-03 22:58:35: remotesToUpdate: -
|
|
2017-07-03 22:58:35: remotesToDelete: -
|
|
2017-07-03 22:58:35: localsToUdpate: -
|
|
2017-07-03 22:58:35: localsToDelete: -
|
|
2017-07-03 22:58:35: createLocal: -
|
|
2017-07-03 22:58:35: updateLocal: -
|
|
2017-07-03 22:58:35: deleteLocal: -
|
|
2017-07-03 22:58:35: createRemote: -
|
|
2017-07-03 22:58:35: updateRemote: -
|
|
2017-07-03 22:58:35: deleteRemote: -
|
|
2017-07-03 22:58:35: itemConflict: -
|
|
2017-07-03 22:58:35: noteConflict: -
|
|
2017-07-03 22:58:35: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 22:58:35: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 22:58:35: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 22:58:35: Total folders: 1
|
|
2017-07-03 22:58:35: Total notes: 2
|
|
2017-07-03 22:58:35: Total resources: 0
|
|
2017-07-03 22:58:35: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 22:58:35: ["f2f7e67d8c1b43b6aeeec7a6e3063e72"]
|
|
2017-07-03 23:03:09: Database was open successfully
|
|
2017-07-03 23:03:09: Checking for database schema update...
|
|
2017-07-03 23:03:09: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:09: Database is new - creating the schema...
|
|
2017-07-03 23:03:09: BEGIN TRANSACTION
|
|
2017-07-03 23:03:09: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:09: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:03:09: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:03:09: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:03:09: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:09: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:03:09: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:03:09: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:03:09: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:03:09: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:03:09: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:03:09: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:03:09: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:09: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:09: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:09: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:03:09: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:03:09: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:03:09: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:03:09: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "fede1c22f5fb4f4898c1e434d79d692a", "2")
|
|
2017-07-03 23:03:09: COMMIT
|
|
2017-07-03 23:03:09: Database schema created successfully
|
|
2017-07-03 23:03:09: Initializing tables...
|
|
2017-07-03 23:03:09: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:03:09: PRAGMA table_info("folders")
|
|
2017-07-03 23:03:09: PRAGMA table_info("notes")
|
|
2017-07-03 23:03:09: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:03:09: PRAGMA table_info("tags")
|
|
2017-07-03 23:03:09: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:03:09: PRAGMA table_info("resources")
|
|
2017-07-03 23:03:09: PRAGMA table_info("settings")
|
|
2017-07-03 23:03:09: PRAGMA table_info("version")
|
|
2017-07-03 23:03:09: BEGIN TRANSACTION
|
|
2017-07-03 23:03:09: DELETE FROM table_fields
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["folders","id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["folders","parent_id",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["folders","title",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["folders","created_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["folders","updated_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","parent_id",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","title",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","body",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","created_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","updated_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","author",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","source_url",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","source",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","source_application",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","application_data",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["notes","order",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["deleted_items","id",null,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["tags","id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["tags","title",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["tags","created_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["tags","updated_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["note_tags","id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["resources","id",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["resources","title",2,""]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["resources","mime",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["resources","filename",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["resources","created_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["resources","updated_time",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["settings","key",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["settings","value",2,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["settings","type",1,null]
|
|
2017-07-03 23:03:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:09: ["version","version",1,null]
|
|
2017-07-03 23:03:09: COMMIT
|
|
2017-07-03 23:03:09: Checking for database schema update...
|
|
2017-07-03 23:03:09: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:09: Current database version
|
|
2017-07-03 23:03:09: SELECT * FROM table_fields
|
|
2017-07-03 23:03:09: BEGIN TRANSACTION
|
|
2017-07-03 23:03:09: DELETE FROM notes
|
|
2017-07-03 23:03:09: DELETE FROM folders
|
|
2017-07-03 23:03:09: DELETE FROM resources
|
|
2017-07-03 23:03:09: DELETE FROM tags
|
|
2017-07-03 23:03:09: DELETE FROM note_tags
|
|
2017-07-03 23:03:09: COMMIT
|
|
2017-07-03 23:03:10: SELECT * FROM settings
|
|
2017-07-03 23:03:10: Database was open successfully
|
|
2017-07-03 23:03:10: Checking for database schema update...
|
|
2017-07-03 23:03:10: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:10: Database is new - creating the schema...
|
|
2017-07-03 23:03:10: BEGIN TRANSACTION
|
|
2017-07-03 23:03:10: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:10: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:03:10: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:03:10: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:03:10: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:10: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:03:10: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:03:10: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:03:10: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:03:10: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:03:10: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:03:10: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:03:10: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:10: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:10: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:10: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:03:10: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:03:10: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:03:10: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:03:10: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "63a9a47a7d764c88b79f62b2a899552e", "2")
|
|
2017-07-03 23:03:10: COMMIT
|
|
2017-07-03 23:03:10: Database schema created successfully
|
|
2017-07-03 23:03:10: Initializing tables...
|
|
2017-07-03 23:03:10: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:03:10: PRAGMA table_info("folders")
|
|
2017-07-03 23:03:10: PRAGMA table_info("notes")
|
|
2017-07-03 23:03:10: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:03:10: PRAGMA table_info("tags")
|
|
2017-07-03 23:03:10: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:03:10: PRAGMA table_info("resources")
|
|
2017-07-03 23:03:10: PRAGMA table_info("settings")
|
|
2017-07-03 23:03:10: PRAGMA table_info("version")
|
|
2017-07-03 23:03:10: BEGIN TRANSACTION
|
|
2017-07-03 23:03:10: DELETE FROM table_fields
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["folders","id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["folders","parent_id",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["folders","title",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["folders","created_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["folders","updated_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","parent_id",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","title",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","body",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","created_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","updated_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","author",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","source_url",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","source",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","source_application",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","application_data",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["notes","order",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["deleted_items","id",null,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["tags","id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["tags","title",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["tags","created_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["tags","updated_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["note_tags","id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["resources","id",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["resources","title",2,""]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["resources","mime",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["resources","filename",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["resources","created_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["resources","updated_time",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["settings","key",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["settings","value",2,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["settings","type",1,null]
|
|
2017-07-03 23:03:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:10: ["version","version",1,null]
|
|
2017-07-03 23:03:10: COMMIT
|
|
2017-07-03 23:03:11: Checking for database schema update...
|
|
2017-07-03 23:03:11: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:11: Current database version
|
|
2017-07-03 23:03:11: SELECT * FROM table_fields
|
|
2017-07-03 23:03:11: BEGIN TRANSACTION
|
|
2017-07-03 23:03:11: DELETE FROM notes
|
|
2017-07-03 23:03:11: DELETE FROM folders
|
|
2017-07-03 23:03:11: DELETE FROM resources
|
|
2017-07-03 23:03:11: DELETE FROM tags
|
|
2017-07-03 23:03:11: DELETE FROM note_tags
|
|
2017-07-03 23:03:11: COMMIT
|
|
2017-07-03 23:03:11: SELECT * FROM settings
|
|
2017-07-03 23:03:11: SELECT * FROM settings
|
|
2017-07-03 23:03:11: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:11: ["folder",1499119391580,"a9108c792ad04dd385e63444f6825c16",1499119391581]
|
|
2017-07-03 23:03:11: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:11: ["mynote","joplin","SET_ME",1499119391741,"4883b77f1b3147e8b380c4d5e6aa751d",1499119391741]
|
|
2017-07-03 23:03:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:11: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:11: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:11: ["mynote2","joplin","SET_ME",1499119391953,"2ff0027a02af4cc982a6682b9467c706",1499119391953]
|
|
2017-07-03 23:03:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:12: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:12: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:12: ["mytag",1499119392114,"13264afb5447441ca9b0081096a78836",1499119392114]
|
|
2017-07-03 23:03:12: Starting synchronization... [1499119392235]
|
|
2017-07-03 23:03:12: mkdir /root/.sync
|
|
2017-07-03 23:03:12: mkdir /root/.resource
|
|
2017-07-03 23:03:12: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: stat /root/a9108c792ad04dd385e63444f6825c16.md
|
|
2017-07-03 23:03:12: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local a9108c792ad04dd385e63444f6825c16, "folder")
|
|
2017-07-03 23:03:12: put /root/.sync/a9108c792ad04dd385e63444f6825c16.md_1499119392262
|
|
2017-07-03 23:03:12: setTimestamp /root/.sync/a9108c792ad04dd385e63444f6825c16.md_1499119392262
|
|
2017-07-03 23:03:12: move /root/.sync/a9108c792ad04dd385e63444f6825c16.md_1499119392262 => /root/a9108c792ad04dd385e63444f6825c16.md
|
|
2017-07-03 23:03:12: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:12: [1499119392272,"a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:12: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:12: stat /root/4883b77f1b3147e8b380c4d5e6aa751d.md
|
|
2017-07-03 23:03:12: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 4883b77f1b3147e8b380c4d5e6aa751d, "mynote")
|
|
2017-07-03 23:03:12: put /root/.sync/4883b77f1b3147e8b380c4d5e6aa751d.md_1499119392417
|
|
2017-07-03 23:03:12: setTimestamp /root/.sync/4883b77f1b3147e8b380c4d5e6aa751d.md_1499119392417
|
|
2017-07-03 23:03:12: move /root/.sync/4883b77f1b3147e8b380c4d5e6aa751d.md_1499119392417 => /root/4883b77f1b3147e8b380c4d5e6aa751d.md
|
|
2017-07-03 23:03:12: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:12: [1499119392428,"4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:12: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:12: stat /root/2ff0027a02af4cc982a6682b9467c706.md
|
|
2017-07-03 23:03:12: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 2ff0027a02af4cc982a6682b9467c706, "mynote2")
|
|
2017-07-03 23:03:12: put /root/.sync/2ff0027a02af4cc982a6682b9467c706.md_1499119392569
|
|
2017-07-03 23:03:12: setTimestamp /root/.sync/2ff0027a02af4cc982a6682b9467c706.md_1499119392569
|
|
2017-07-03 23:03:12: move /root/.sync/2ff0027a02af4cc982a6682b9467c706.md_1499119392569 => /root/2ff0027a02af4cc982a6682b9467c706.md
|
|
2017-07-03 23:03:12: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:12: [1499119392581,"2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:12: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:12: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: stat /root/13264afb5447441ca9b0081096a78836.md
|
|
2017-07-03 23:03:12: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 13264afb5447441ca9b0081096a78836, "mytag")
|
|
2017-07-03 23:03:12: put /root/.sync/13264afb5447441ca9b0081096a78836.md_1499119392797
|
|
2017-07-03 23:03:12: setTimestamp /root/.sync/13264afb5447441ca9b0081096a78836.md_1499119392797
|
|
2017-07-03 23:03:12: move /root/.sync/13264afb5447441ca9b0081096a78836.md_1499119392797 => /root/13264afb5447441ca9b0081096a78836.md
|
|
2017-07-03 23:03:12: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:12: [1499119392812,"13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:12: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:12: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:12: list /root
|
|
2017-07-03 23:03:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:13: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:13: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:13: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:13: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:13: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:13: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:13: Synchronization complete [1499119392235]:
|
|
2017-07-03 23:03:13: remotesToUpdate: 4
|
|
2017-07-03 23:03:13: remotesToDelete: -
|
|
2017-07-03 23:03:13: localsToUdpate: -
|
|
2017-07-03 23:03:13: localsToDelete: -
|
|
2017-07-03 23:03:13: createLocal: -
|
|
2017-07-03 23:03:13: updateLocal: -
|
|
2017-07-03 23:03:13: deleteLocal: -
|
|
2017-07-03 23:03:13: createRemote: 4
|
|
2017-07-03 23:03:13: updateRemote: -
|
|
2017-07-03 23:03:13: deleteRemote: -
|
|
2017-07-03 23:03:13: itemConflict: -
|
|
2017-07-03 23:03:13: noteConflict: -
|
|
2017-07-03 23:03:13: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:13: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:13: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:13: Total folders: 1
|
|
2017-07-03 23:03:13: Total notes: 2
|
|
2017-07-03 23:03:13: Total resources: 0
|
|
2017-07-03 23:03:13: SELECT * FROM settings
|
|
2017-07-03 23:03:13: Starting synchronization... [1499119393319]
|
|
2017-07-03 23:03:13: mkdir /root/.sync
|
|
2017-07-03 23:03:13: mkdir /root/.resource
|
|
2017-07-03 23:03:13: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:13: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:13: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:13: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:13: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:13: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:13: list /root
|
|
2017-07-03 23:03:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:13: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:13: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:13: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:13: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:13: get /root/a9108c792ad04dd385e63444f6825c16.md
|
|
2017-07-03 23:03:13: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:13: ["a9108c792ad04dd385e63444f6825c16","folder","1499119391581","1499119391580",1499119393399]
|
|
2017-07-03 23:03:13: Sync: createLocal: remote exists but local does not: (Remote a9108c792ad04dd385e63444f6825c16, "folder")
|
|
2017-07-03 23:03:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:13: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:13: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:13: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:13: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:13: get /root/4883b77f1b3147e8b380c4d5e6aa751d.md
|
|
2017-07-03 23:03:13: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:13: ["4883b77f1b3147e8b380c4d5e6aa751d","","mynote","","1499119391741","1499119391741",1499119393623,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:03:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:13: Sync: createLocal: remote exists but local does not: (Remote 4883b77f1b3147e8b380c4d5e6aa751d, "mynote")
|
|
2017-07-03 23:03:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:13: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:13: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:13: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:13: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:13: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:13: get /root/2ff0027a02af4cc982a6682b9467c706.md
|
|
2017-07-03 23:03:13: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:13: ["2ff0027a02af4cc982a6682b9467c706","","mynote2","","1499119391953","1499119391953",1499119393806,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:03:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:14: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:14: Sync: createLocal: remote exists but local does not: (Remote 2ff0027a02af4cc982a6682b9467c706, "mynote2")
|
|
2017-07-03 23:03:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:14: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:14: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:14: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:14: get /root/13264afb5447441ca9b0081096a78836.md
|
|
2017-07-03 23:03:14: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836","mytag","1499119392114","1499119392114",1499119394054]
|
|
2017-07-03 23:03:14: Sync: createLocal: remote exists but local does not: (Remote 13264afb5447441ca9b0081096a78836, "mytag")
|
|
2017-07-03 23:03:14: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:14: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:14: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:14: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:14: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:14: Synchronization complete [1499119393319]:
|
|
2017-07-03 23:03:14: remotesToUpdate: -
|
|
2017-07-03 23:03:14: remotesToDelete: -
|
|
2017-07-03 23:03:14: localsToUdpate: 4
|
|
2017-07-03 23:03:14: localsToDelete: -
|
|
2017-07-03 23:03:14: createLocal: 4
|
|
2017-07-03 23:03:14: updateLocal: -
|
|
2017-07-03 23:03:14: deleteLocal: -
|
|
2017-07-03 23:03:14: createRemote: -
|
|
2017-07-03 23:03:14: updateRemote: -
|
|
2017-07-03 23:03:14: deleteRemote: -
|
|
2017-07-03 23:03:14: itemConflict: -
|
|
2017-07-03 23:03:14: noteConflict: -
|
|
2017-07-03 23:03:14: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:14: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:14: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:14: Total folders: 1
|
|
2017-07-03 23:03:14: Total notes: 2
|
|
2017-07-03 23:03:14: Total resources: 0
|
|
2017-07-03 23:03:14: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 23:03:14: ["mytag"]
|
|
2017-07-03 23:03:14: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836","4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:14: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:14: ["4883b77f1b3147e8b380c4d5e6aa751d","13264afb5447441ca9b0081096a78836",1499119394379,"f48780b45bb74a1da99a583e16ec0124",1499119394379]
|
|
2017-07-03 23:03:14: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836","2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:14: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:14: ["2ff0027a02af4cc982a6682b9467c706","13264afb5447441ca9b0081096a78836",1499119394532,"074632e2d5b243c096f8342c09efce15",1499119394532]
|
|
2017-07-03 23:03:14: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:14: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:14: Starting synchronization... [1499119394673]
|
|
2017-07-03 23:03:14: mkdir /root/.sync
|
|
2017-07-03 23:03:14: mkdir /root/.resource
|
|
2017-07-03 23:03:14: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:14: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:14: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:14: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:14: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:14: stat /root/f48780b45bb74a1da99a583e16ec0124.md
|
|
2017-07-03 23:03:14: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local f48780b45bb74a1da99a583e16ec0124)
|
|
2017-07-03 23:03:14: put /root/.sync/f48780b45bb74a1da99a583e16ec0124.md_1499119394719
|
|
2017-07-03 23:03:14: setTimestamp /root/.sync/f48780b45bb74a1da99a583e16ec0124.md_1499119394719
|
|
2017-07-03 23:03:14: move /root/.sync/f48780b45bb74a1da99a583e16ec0124.md_1499119394719 => /root/f48780b45bb74a1da99a583e16ec0124.md
|
|
2017-07-03 23:03:14: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:14: [1499119394729,"f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:14: stat /root/074632e2d5b243c096f8342c09efce15.md
|
|
2017-07-03 23:03:14: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 074632e2d5b243c096f8342c09efce15)
|
|
2017-07-03 23:03:14: put /root/.sync/074632e2d5b243c096f8342c09efce15.md_1499119394897
|
|
2017-07-03 23:03:14: setTimestamp /root/.sync/074632e2d5b243c096f8342c09efce15.md_1499119394897
|
|
2017-07-03 23:03:14: move /root/.sync/074632e2d5b243c096f8342c09efce15.md_1499119394897 => /root/074632e2d5b243c096f8342c09efce15.md
|
|
2017-07-03 23:03:14: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:14: [1499119394931,"074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:15: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:15: list /root
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:15: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:15: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:15: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:15: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:15: Synchronization complete [1499119394673]:
|
|
2017-07-03 23:03:15: remotesToUpdate: 2
|
|
2017-07-03 23:03:15: remotesToDelete: -
|
|
2017-07-03 23:03:15: localsToUdpate: -
|
|
2017-07-03 23:03:15: localsToDelete: -
|
|
2017-07-03 23:03:15: createLocal: -
|
|
2017-07-03 23:03:15: updateLocal: -
|
|
2017-07-03 23:03:15: deleteLocal: -
|
|
2017-07-03 23:03:15: createRemote: 2
|
|
2017-07-03 23:03:15: updateRemote: -
|
|
2017-07-03 23:03:15: deleteRemote: -
|
|
2017-07-03 23:03:15: itemConflict: -
|
|
2017-07-03 23:03:15: noteConflict: -
|
|
2017-07-03 23:03:15: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:15: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:15: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:15: Total folders: 1
|
|
2017-07-03 23:03:15: Total notes: 2
|
|
2017-07-03 23:03:15: Total resources: 0
|
|
2017-07-03 23:03:15: SELECT * FROM settings
|
|
2017-07-03 23:03:15: Starting synchronization... [1499119395469]
|
|
2017-07-03 23:03:15: mkdir /root/.sync
|
|
2017-07-03 23:03:15: mkdir /root/.resource
|
|
2017-07-03 23:03:15: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:15: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:15: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:15: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:15: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:15: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:15: list /root
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:15: get /root/f48780b45bb74a1da99a583e16ec0124.md
|
|
2017-07-03 23:03:15: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:15: ["f48780b45bb74a1da99a583e16ec0124","4883b77f1b3147e8b380c4d5e6aa751d","13264afb5447441ca9b0081096a78836","1499119394379","1499119394379",1499119395642]
|
|
2017-07-03 23:03:15: Sync: createLocal: remote exists but local does not: (Remote f48780b45bb74a1da99a583e16ec0124)
|
|
2017-07-03 23:03:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:15: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:15: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:15: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:15: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:15: get /root/074632e2d5b243c096f8342c09efce15.md
|
|
2017-07-03 23:03:15: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:15: ["074632e2d5b243c096f8342c09efce15","2ff0027a02af4cc982a6682b9467c706","13264afb5447441ca9b0081096a78836","1499119394532","1499119394532",1499119395896]
|
|
2017-07-03 23:03:16: Sync: createLocal: remote exists but local does not: (Remote 074632e2d5b243c096f8342c09efce15)
|
|
2017-07-03 23:03:16: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:16: Synchronization complete [1499119395469]:
|
|
2017-07-03 23:03:16: remotesToUpdate: -
|
|
2017-07-03 23:03:16: remotesToDelete: -
|
|
2017-07-03 23:03:16: localsToUdpate: 2
|
|
2017-07-03 23:03:16: localsToDelete: -
|
|
2017-07-03 23:03:16: createLocal: 2
|
|
2017-07-03 23:03:16: updateLocal: -
|
|
2017-07-03 23:03:16: deleteLocal: -
|
|
2017-07-03 23:03:16: createRemote: -
|
|
2017-07-03 23:03:16: updateRemote: -
|
|
2017-07-03 23:03:16: deleteRemote: -
|
|
2017-07-03 23:03:16: itemConflict: -
|
|
2017-07-03 23:03:16: noteConflict: -
|
|
2017-07-03 23:03:16: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:16: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:16: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:16: Total folders: 1
|
|
2017-07-03 23:03:16: Total notes: 2
|
|
2017-07-03 23:03:16: Total resources: 0
|
|
2017-07-03 23:03:16: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:16: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:16: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 23:03:16: ["13264afb5447441ca9b0081096a78836","4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:16: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:03:16: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:16: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:03:16: [6,"f48780b45bb74a1da99a583e16ec0124",1499119396291]
|
|
2017-07-03 23:03:16: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:16: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:16: Starting synchronization... [1499119396408]
|
|
2017-07-03 23:03:16: mkdir /root/.sync
|
|
2017-07-03 23:03:16: mkdir /root/.resource
|
|
2017-07-03 23:03:16: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:16: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:16: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:16: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:16: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:16: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:16: Sync: deleteRemote: local has been deleted: (Remote f48780b45bb74a1da99a583e16ec0124)
|
|
2017-07-03 23:03:16: delete /root/f48780b45bb74a1da99a583e16ec0124.md
|
|
2017-07-03 23:03:16: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:03:16: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:16: list /root
|
|
2017-07-03 23:03:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:16: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:16: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:16: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:16: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:16: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:16: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:16: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:16: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:16: Synchronization complete [1499119396408]:
|
|
2017-07-03 23:03:16: remotesToUpdate: -
|
|
2017-07-03 23:03:16: remotesToDelete: 1
|
|
2017-07-03 23:03:16: localsToUdpate: -
|
|
2017-07-03 23:03:16: localsToDelete: -
|
|
2017-07-03 23:03:16: createLocal: -
|
|
2017-07-03 23:03:16: updateLocal: -
|
|
2017-07-03 23:03:16: deleteLocal: -
|
|
2017-07-03 23:03:16: createRemote: -
|
|
2017-07-03 23:03:16: updateRemote: -
|
|
2017-07-03 23:03:16: deleteRemote: 1
|
|
2017-07-03 23:03:16: itemConflict: -
|
|
2017-07-03 23:03:16: noteConflict: -
|
|
2017-07-03 23:03:16: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:16: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:16: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:16: Total folders: 1
|
|
2017-07-03 23:03:16: Total notes: 2
|
|
2017-07-03 23:03:16: Total resources: 0
|
|
2017-07-03 23:03:16: SELECT * FROM settings
|
|
2017-07-03 23:03:16: Starting synchronization... [1499119396996]
|
|
2017-07-03 23:03:17: mkdir /root/.sync
|
|
2017-07-03 23:03:17: mkdir /root/.resource
|
|
2017-07-03 23:03:17: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:17: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:17: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:17: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:17: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:17: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:17: list /root
|
|
2017-07-03 23:03:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:17: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["a9108c792ad04dd385e63444f6825c16"]
|
|
2017-07-03 23:03:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["4883b77f1b3147e8b380c4d5e6aa751d"]
|
|
2017-07-03 23:03:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["2ff0027a02af4cc982a6682b9467c706"]
|
|
2017-07-03 23:03:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:17: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:17: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:17: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:17: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:17: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:17: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:17: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:17: ["074632e2d5b243c096f8342c09efce15"]
|
|
2017-07-03 23:03:17: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:17: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:17: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:17: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:17: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:17: Sync: deleteLocal: remote has been deleted: (Local f48780b45bb74a1da99a583e16ec0124)
|
|
2017-07-03 23:03:17: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:03:17: ["f48780b45bb74a1da99a583e16ec0124"]
|
|
2017-07-03 23:03:17: Synchronization complete [1499119396996]:
|
|
2017-07-03 23:03:17: remotesToUpdate: -
|
|
2017-07-03 23:03:17: remotesToDelete: -
|
|
2017-07-03 23:03:17: localsToUdpate: -
|
|
2017-07-03 23:03:17: localsToDelete: 1
|
|
2017-07-03 23:03:17: createLocal: -
|
|
2017-07-03 23:03:17: updateLocal: -
|
|
2017-07-03 23:03:17: deleteLocal: 1
|
|
2017-07-03 23:03:17: createRemote: -
|
|
2017-07-03 23:03:17: updateRemote: -
|
|
2017-07-03 23:03:17: deleteRemote: -
|
|
2017-07-03 23:03:17: itemConflict: -
|
|
2017-07-03 23:03:17: noteConflict: -
|
|
2017-07-03 23:03:17: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:17: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:17: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:17: Total folders: 1
|
|
2017-07-03 23:03:17: Total notes: 2
|
|
2017-07-03 23:03:17: Total resources: 0
|
|
2017-07-03 23:03:17: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:17: ["13264afb5447441ca9b0081096a78836"]
|
|
2017-07-03 23:03:46: Database was open successfully
|
|
2017-07-03 23:03:46: Checking for database schema update...
|
|
2017-07-03 23:03:46: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:46: Database is new - creating the schema...
|
|
2017-07-03 23:03:46: BEGIN TRANSACTION
|
|
2017-07-03 23:03:46: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:46: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:03:46: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:03:46: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:03:46: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:46: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:03:46: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:03:46: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:03:46: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:03:46: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:03:46: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:03:46: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:03:46: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:46: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:46: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:46: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:03:46: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:03:46: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:03:46: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:03:46: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "78c08d14286644bbbd9b5e32f90deb0a", "2")
|
|
2017-07-03 23:03:46: COMMIT
|
|
2017-07-03 23:03:46: Database schema created successfully
|
|
2017-07-03 23:03:46: Initializing tables...
|
|
2017-07-03 23:03:46: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:03:46: PRAGMA table_info("folders")
|
|
2017-07-03 23:03:46: PRAGMA table_info("notes")
|
|
2017-07-03 23:03:46: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:03:46: PRAGMA table_info("tags")
|
|
2017-07-03 23:03:46: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:03:46: PRAGMA table_info("resources")
|
|
2017-07-03 23:03:46: PRAGMA table_info("settings")
|
|
2017-07-03 23:03:46: PRAGMA table_info("version")
|
|
2017-07-03 23:03:46: BEGIN TRANSACTION
|
|
2017-07-03 23:03:46: DELETE FROM table_fields
|
|
2017-07-03 23:03:46: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["folders","id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["folders","parent_id",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["folders","title",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["folders","created_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["folders","updated_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","parent_id",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","title",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","body",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","created_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","updated_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","author",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","source_url",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","source",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","source_application",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","application_data",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["notes","order",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["deleted_items","id",null,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["tags","id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["tags","title",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["tags","created_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["tags","updated_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["note_tags","id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["resources","id",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["resources","title",2,""]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["resources","mime",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["resources","filename",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["resources","created_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["resources","updated_time",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["settings","key",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["settings","value",2,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["settings","type",1,null]
|
|
2017-07-03 23:03:47: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:47: ["version","version",1,null]
|
|
2017-07-03 23:03:47: COMMIT
|
|
2017-07-03 23:03:47: Checking for database schema update...
|
|
2017-07-03 23:03:47: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:47: Current database version
|
|
2017-07-03 23:03:47: SELECT * FROM table_fields
|
|
2017-07-03 23:03:47: BEGIN TRANSACTION
|
|
2017-07-03 23:03:47: DELETE FROM notes
|
|
2017-07-03 23:03:47: DELETE FROM folders
|
|
2017-07-03 23:03:47: DELETE FROM resources
|
|
2017-07-03 23:03:47: DELETE FROM tags
|
|
2017-07-03 23:03:47: DELETE FROM note_tags
|
|
2017-07-03 23:03:47: COMMIT
|
|
2017-07-03 23:03:47: SELECT * FROM settings
|
|
2017-07-03 23:03:47: Database was open successfully
|
|
2017-07-03 23:03:47: Checking for database schema update...
|
|
2017-07-03 23:03:47: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:47: Database is new - creating the schema...
|
|
2017-07-03 23:03:47: BEGIN TRANSACTION
|
|
2017-07-03 23:03:47: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:47: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:03:47: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:03:47: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:03:47: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:47: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:03:47: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:03:47: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:03:47: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:03:48: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:03:48: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:03:48: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:03:48: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:48: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:48: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:03:48: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:03:48: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:03:48: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:03:48: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:03:48: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "b24bb090b02147b0bc6ae1b0e7ecede7", "2")
|
|
2017-07-03 23:03:48: COMMIT
|
|
2017-07-03 23:03:48: Database schema created successfully
|
|
2017-07-03 23:03:48: Initializing tables...
|
|
2017-07-03 23:03:48: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:03:48: PRAGMA table_info("folders")
|
|
2017-07-03 23:03:48: PRAGMA table_info("notes")
|
|
2017-07-03 23:03:48: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:03:48: PRAGMA table_info("tags")
|
|
2017-07-03 23:03:48: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:03:48: PRAGMA table_info("resources")
|
|
2017-07-03 23:03:48: PRAGMA table_info("settings")
|
|
2017-07-03 23:03:48: PRAGMA table_info("version")
|
|
2017-07-03 23:03:48: BEGIN TRANSACTION
|
|
2017-07-03 23:03:48: DELETE FROM table_fields
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["folders","id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["folders","parent_id",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["folders","title",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["folders","created_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["folders","updated_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","parent_id",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","title",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","body",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","created_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","updated_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","author",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","source_url",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","source",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","source_application",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","application_data",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["notes","order",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["deleted_items","id",null,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["tags","id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["tags","title",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["tags","created_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["tags","updated_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["note_tags","id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["resources","id",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["resources","title",2,""]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["resources","mime",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["resources","filename",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["resources","created_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["resources","updated_time",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["settings","key",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["settings","value",2,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["settings","type",1,null]
|
|
2017-07-03 23:03:48: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:48: ["version","version",1,null]
|
|
2017-07-03 23:03:48: COMMIT
|
|
2017-07-03 23:03:48: Checking for database schema update...
|
|
2017-07-03 23:03:48: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:03:48: Current database version
|
|
2017-07-03 23:03:48: SELECT * FROM table_fields
|
|
2017-07-03 23:03:48: BEGIN TRANSACTION
|
|
2017-07-03 23:03:48: DELETE FROM notes
|
|
2017-07-03 23:03:48: DELETE FROM folders
|
|
2017-07-03 23:03:48: DELETE FROM resources
|
|
2017-07-03 23:03:48: DELETE FROM tags
|
|
2017-07-03 23:03:48: DELETE FROM note_tags
|
|
2017-07-03 23:03:48: COMMIT
|
|
2017-07-03 23:03:49: SELECT * FROM settings
|
|
2017-07-03 23:03:49: SELECT * FROM settings
|
|
2017-07-03 23:03:49: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:49: ["folder",1499119429339,"3dcffb8aa2ad4ece833c6f99d1906ff2",1499119429339]
|
|
2017-07-03 23:03:49: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:49: ["mynote","joplin","SET_ME",1499119429580,"0321addad52343dba8d42ba8c01800aa",1499119429580]
|
|
2017-07-03 23:03:49: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:49: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:49: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:49: ["mynote2","joplin","SET_ME",1499119429867,"7d80972d74334494b01b536a7e12e9ae",1499119429867]
|
|
2017-07-03 23:03:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:50: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:50: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:03:50: ["mytag",1499119430112,"2bdd3016a1aa4cdb9baa0a1f12fa4caf",1499119430112]
|
|
2017-07-03 23:03:50: Starting synchronization... [1499119430259]
|
|
2017-07-03 23:03:50: mkdir /root/.sync
|
|
2017-07-03 23:03:50: mkdir /root/.resource
|
|
2017-07-03 23:03:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:50: stat /root/3dcffb8aa2ad4ece833c6f99d1906ff2.md
|
|
2017-07-03 23:03:50: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 3dcffb8aa2ad4ece833c6f99d1906ff2, "folder")
|
|
2017-07-03 23:03:50: put /root/.sync/3dcffb8aa2ad4ece833c6f99d1906ff2.md_1499119430308
|
|
2017-07-03 23:03:50: setTimestamp /root/.sync/3dcffb8aa2ad4ece833c6f99d1906ff2.md_1499119430308
|
|
2017-07-03 23:03:50: move /root/.sync/3dcffb8aa2ad4ece833c6f99d1906ff2.md_1499119430308 => /root/3dcffb8aa2ad4ece833c6f99d1906ff2.md
|
|
2017-07-03 23:03:50: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:50: [1499119430320,"3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:50: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:50: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:50: stat /root/0321addad52343dba8d42ba8c01800aa.md
|
|
2017-07-03 23:03:50: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 0321addad52343dba8d42ba8c01800aa, "mynote")
|
|
2017-07-03 23:03:50: put /root/.sync/0321addad52343dba8d42ba8c01800aa.md_1499119430511
|
|
2017-07-03 23:03:50: setTimestamp /root/.sync/0321addad52343dba8d42ba8c01800aa.md_1499119430511
|
|
2017-07-03 23:03:50: move /root/.sync/0321addad52343dba8d42ba8c01800aa.md_1499119430511 => /root/0321addad52343dba8d42ba8c01800aa.md
|
|
2017-07-03 23:03:50: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:50: [1499119430522,"0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:50: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:50: stat /root/7d80972d74334494b01b536a7e12e9ae.md
|
|
2017-07-03 23:03:50: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 7d80972d74334494b01b536a7e12e9ae, "mynote2")
|
|
2017-07-03 23:03:50: put /root/.sync/7d80972d74334494b01b536a7e12e9ae.md_1499119430799
|
|
2017-07-03 23:03:50: setTimestamp /root/.sync/7d80972d74334494b01b536a7e12e9ae.md_1499119430799
|
|
2017-07-03 23:03:50: move /root/.sync/7d80972d74334494b01b536a7e12e9ae.md_1499119430799 => /root/7d80972d74334494b01b536a7e12e9ae.md
|
|
2017-07-03 23:03:50: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:50: [1499119430816,"7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:50: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:50: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: stat /root/2bdd3016a1aa4cdb9baa0a1f12fa4caf.md
|
|
2017-07-03 23:03:51: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 2bdd3016a1aa4cdb9baa0a1f12fa4caf, "mytag")
|
|
2017-07-03 23:03:51: put /root/.sync/2bdd3016a1aa4cdb9baa0a1f12fa4caf.md_1499119431029
|
|
2017-07-03 23:03:51: setTimestamp /root/.sync/2bdd3016a1aa4cdb9baa0a1f12fa4caf.md_1499119431029
|
|
2017-07-03 23:03:51: move /root/.sync/2bdd3016a1aa4cdb9baa0a1f12fa4caf.md_1499119431029 => /root/2bdd3016a1aa4cdb9baa0a1f12fa4caf.md
|
|
2017-07-03 23:03:51: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:51: [1499119431041,"2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:51: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:51: list /root
|
|
2017-07-03 23:03:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:51: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:51: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:51: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:51: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:51: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:51: Synchronization complete [1499119430259]:
|
|
2017-07-03 23:03:51: remotesToUpdate: 4
|
|
2017-07-03 23:03:51: remotesToDelete: -
|
|
2017-07-03 23:03:51: localsToUdpate: -
|
|
2017-07-03 23:03:51: localsToDelete: -
|
|
2017-07-03 23:03:51: createLocal: -
|
|
2017-07-03 23:03:51: updateLocal: -
|
|
2017-07-03 23:03:51: deleteLocal: -
|
|
2017-07-03 23:03:51: createRemote: 4
|
|
2017-07-03 23:03:51: updateRemote: -
|
|
2017-07-03 23:03:51: deleteRemote: -
|
|
2017-07-03 23:03:51: itemConflict: -
|
|
2017-07-03 23:03:51: noteConflict: -
|
|
2017-07-03 23:03:51: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:51: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:51: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:51: Total folders: 1
|
|
2017-07-03 23:03:51: Total notes: 2
|
|
2017-07-03 23:03:51: Total resources: 0
|
|
2017-07-03 23:03:51: SELECT * FROM settings
|
|
2017-07-03 23:03:51: Starting synchronization... [1499119431506]
|
|
2017-07-03 23:03:51: mkdir /root/.sync
|
|
2017-07-03 23:03:51: mkdir /root/.resource
|
|
2017-07-03 23:03:51: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:51: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:51: list /root
|
|
2017-07-03 23:03:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:51: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:51: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:51: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:51: get /root/3dcffb8aa2ad4ece833c6f99d1906ff2.md
|
|
2017-07-03 23:03:51: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:51: ["3dcffb8aa2ad4ece833c6f99d1906ff2","folder","1499119429339","1499119429339",1499119431626]
|
|
2017-07-03 23:03:51: Sync: createLocal: remote exists but local does not: (Remote 3dcffb8aa2ad4ece833c6f99d1906ff2, "folder")
|
|
2017-07-03 23:03:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:51: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:51: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:51: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:51: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:51: get /root/0321addad52343dba8d42ba8c01800aa.md
|
|
2017-07-03 23:03:51: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:51: ["0321addad52343dba8d42ba8c01800aa","","mynote","","1499119429580","1499119429580",1499119431839,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:03:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:52: Sync: createLocal: remote exists but local does not: (Remote 0321addad52343dba8d42ba8c01800aa, "mynote")
|
|
2017-07-03 23:03:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:52: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:52: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:52: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:52: get /root/7d80972d74334494b01b536a7e12e9ae.md
|
|
2017-07-03 23:03:52: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae","","mynote2","","1499119429867","1499119429867",1499119432126,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:03:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:52: Sync: createLocal: remote exists but local does not: (Remote 7d80972d74334494b01b536a7e12e9ae, "mynote2")
|
|
2017-07-03 23:03:52: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:52: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:52: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:52: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:52: get /root/2bdd3016a1aa4cdb9baa0a1f12fa4caf.md
|
|
2017-07-03 23:03:52: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf","mytag","1499119430112","1499119430112",1499119432399]
|
|
2017-07-03 23:03:52: Sync: createLocal: remote exists but local does not: (Remote 2bdd3016a1aa4cdb9baa0a1f12fa4caf, "mytag")
|
|
2017-07-03 23:03:52: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:52: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:52: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:52: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:52: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:52: Synchronization complete [1499119431506]:
|
|
2017-07-03 23:03:52: remotesToUpdate: -
|
|
2017-07-03 23:03:52: remotesToDelete: -
|
|
2017-07-03 23:03:52: localsToUdpate: 4
|
|
2017-07-03 23:03:52: localsToDelete: -
|
|
2017-07-03 23:03:52: createLocal: 4
|
|
2017-07-03 23:03:52: updateLocal: -
|
|
2017-07-03 23:03:52: deleteLocal: -
|
|
2017-07-03 23:03:52: createRemote: -
|
|
2017-07-03 23:03:52: updateRemote: -
|
|
2017-07-03 23:03:52: deleteRemote: -
|
|
2017-07-03 23:03:52: itemConflict: -
|
|
2017-07-03 23:03:52: noteConflict: -
|
|
2017-07-03 23:03:52: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:52: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:52: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:52: Total folders: 1
|
|
2017-07-03 23:03:52: Total notes: 2
|
|
2017-07-03 23:03:52: Total resources: 0
|
|
2017-07-03 23:03:52: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 23:03:52: ["mytag"]
|
|
2017-07-03 23:03:52: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf","0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:52: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:52: ["0321addad52343dba8d42ba8c01800aa","2bdd3016a1aa4cdb9baa0a1f12fa4caf",1499119432686,"c04735fdac2d49dd9444541ab46c00a7",1499119432686]
|
|
2017-07-03 23:03:52: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf","7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:52: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:52: ["7d80972d74334494b01b536a7e12e9ae","2bdd3016a1aa4cdb9baa0a1f12fa4caf",1499119432819,"14e22caf19d24a1a86ec67bae2299e32",1499119432819]
|
|
2017-07-03 23:03:52: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:52: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:52: Starting synchronization... [1499119432962]
|
|
2017-07-03 23:03:52: mkdir /root/.sync
|
|
2017-07-03 23:03:52: mkdir /root/.resource
|
|
2017-07-03 23:03:52: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:52: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:52: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:53: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:53: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:53: stat /root/c04735fdac2d49dd9444541ab46c00a7.md
|
|
2017-07-03 23:03:53: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c04735fdac2d49dd9444541ab46c00a7)
|
|
2017-07-03 23:03:53: put /root/.sync/c04735fdac2d49dd9444541ab46c00a7.md_1499119433021
|
|
2017-07-03 23:03:53: setTimestamp /root/.sync/c04735fdac2d49dd9444541ab46c00a7.md_1499119433021
|
|
2017-07-03 23:03:53: move /root/.sync/c04735fdac2d49dd9444541ab46c00a7.md_1499119433021 => /root/c04735fdac2d49dd9444541ab46c00a7.md
|
|
2017-07-03 23:03:53: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:53: [1499119433030,"c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: stat /root/14e22caf19d24a1a86ec67bae2299e32.md
|
|
2017-07-03 23:03:53: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 14e22caf19d24a1a86ec67bae2299e32)
|
|
2017-07-03 23:03:53: put /root/.sync/14e22caf19d24a1a86ec67bae2299e32.md_1499119433190
|
|
2017-07-03 23:03:53: setTimestamp /root/.sync/14e22caf19d24a1a86ec67bae2299e32.md_1499119433190
|
|
2017-07-03 23:03:53: move /root/.sync/14e22caf19d24a1a86ec67bae2299e32.md_1499119433190 => /root/14e22caf19d24a1a86ec67bae2299e32.md
|
|
2017-07-03 23:03:53: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:03:53: [1499119433212,"14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:53: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:53: list /root
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:53: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:53: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:53: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:53: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:53: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:53: Synchronization complete [1499119432962]:
|
|
2017-07-03 23:03:53: remotesToUpdate: 2
|
|
2017-07-03 23:03:53: remotesToDelete: -
|
|
2017-07-03 23:03:53: localsToUdpate: -
|
|
2017-07-03 23:03:53: localsToDelete: -
|
|
2017-07-03 23:03:53: createLocal: -
|
|
2017-07-03 23:03:53: updateLocal: -
|
|
2017-07-03 23:03:53: deleteLocal: -
|
|
2017-07-03 23:03:53: createRemote: 2
|
|
2017-07-03 23:03:53: updateRemote: -
|
|
2017-07-03 23:03:53: deleteRemote: -
|
|
2017-07-03 23:03:53: itemConflict: -
|
|
2017-07-03 23:03:53: noteConflict: -
|
|
2017-07-03 23:03:53: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:53: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:53: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:53: Total folders: 1
|
|
2017-07-03 23:03:53: Total notes: 2
|
|
2017-07-03 23:03:53: Total resources: 0
|
|
2017-07-03 23:03:53: SELECT * FROM settings
|
|
2017-07-03 23:03:53: Starting synchronization... [1499119433831]
|
|
2017-07-03 23:03:53: mkdir /root/.sync
|
|
2017-07-03 23:03:53: mkdir /root/.resource
|
|
2017-07-03 23:03:53: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:53: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:53: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:53: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:53: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:53: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:53: list /root
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:53: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:53: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:53: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:54: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:54: get /root/c04735fdac2d49dd9444541ab46c00a7.md
|
|
2017-07-03 23:03:54: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:54: ["c04735fdac2d49dd9444541ab46c00a7","0321addad52343dba8d42ba8c01800aa","2bdd3016a1aa4cdb9baa0a1f12fa4caf","1499119432686","1499119432686",1499119434008]
|
|
2017-07-03 23:03:54: Sync: createLocal: remote exists but local does not: (Remote c04735fdac2d49dd9444541ab46c00a7)
|
|
2017-07-03 23:03:54: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:54: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:54: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:54: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:54: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:54: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:54: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:54: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:54: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:54: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:54: get /root/14e22caf19d24a1a86ec67bae2299e32.md
|
|
2017-07-03 23:03:54: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:03:54: ["14e22caf19d24a1a86ec67bae2299e32","7d80972d74334494b01b536a7e12e9ae","2bdd3016a1aa4cdb9baa0a1f12fa4caf","1499119432819","1499119432819",1499119434247]
|
|
2017-07-03 23:03:54: Sync: createLocal: remote exists but local does not: (Remote 14e22caf19d24a1a86ec67bae2299e32)
|
|
2017-07-03 23:03:54: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:54: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:54: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:54: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:54: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:54: Synchronization complete [1499119433831]:
|
|
2017-07-03 23:03:54: remotesToUpdate: -
|
|
2017-07-03 23:03:54: remotesToDelete: -
|
|
2017-07-03 23:03:54: localsToUdpate: 2
|
|
2017-07-03 23:03:54: localsToDelete: -
|
|
2017-07-03 23:03:54: createLocal: 2
|
|
2017-07-03 23:03:54: updateLocal: -
|
|
2017-07-03 23:03:54: deleteLocal: -
|
|
2017-07-03 23:03:54: createRemote: -
|
|
2017-07-03 23:03:54: updateRemote: -
|
|
2017-07-03 23:03:54: deleteRemote: -
|
|
2017-07-03 23:03:54: itemConflict: -
|
|
2017-07-03 23:03:54: noteConflict: -
|
|
2017-07-03 23:03:54: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:54: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:54: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:54: Total folders: 1
|
|
2017-07-03 23:03:54: Total notes: 2
|
|
2017-07-03 23:03:54: Total resources: 0
|
|
2017-07-03 23:03:54: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:54: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:54: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 23:03:54: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf","0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:54: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:03:54: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:54: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:03:54: [6,"c04735fdac2d49dd9444541ab46c00a7",1499119434699]
|
|
2017-07-03 23:03:55: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: Starting synchronization... [1499119435102]
|
|
2017-07-03 23:03:55: mkdir /root/.sync
|
|
2017-07-03 23:03:55: mkdir /root/.resource
|
|
2017-07-03 23:03:55: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:55: Sync: deleteRemote: local has been deleted: (Remote c04735fdac2d49dd9444541ab46c00a7)
|
|
2017-07-03 23:03:55: delete /root/c04735fdac2d49dd9444541ab46c00a7.md
|
|
2017-07-03 23:03:55: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:03:55: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:55: list /root
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:55: Synchronization complete [1499119435102]:
|
|
2017-07-03 23:03:55: remotesToUpdate: -
|
|
2017-07-03 23:03:55: remotesToDelete: 1
|
|
2017-07-03 23:03:55: localsToUdpate: -
|
|
2017-07-03 23:03:55: localsToDelete: -
|
|
2017-07-03 23:03:55: createLocal: -
|
|
2017-07-03 23:03:55: updateLocal: -
|
|
2017-07-03 23:03:55: deleteLocal: -
|
|
2017-07-03 23:03:55: createRemote: -
|
|
2017-07-03 23:03:55: updateRemote: -
|
|
2017-07-03 23:03:55: deleteRemote: 1
|
|
2017-07-03 23:03:55: itemConflict: -
|
|
2017-07-03 23:03:55: noteConflict: -
|
|
2017-07-03 23:03:55: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:55: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:55: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:55: Total folders: 1
|
|
2017-07-03 23:03:55: Total notes: 2
|
|
2017-07-03 23:03:55: Total resources: 0
|
|
2017-07-03 23:03:55: SELECT * FROM settings
|
|
2017-07-03 23:03:55: Starting synchronization... [1499119435735]
|
|
2017-07-03 23:03:55: mkdir /root/.sync
|
|
2017-07-03 23:03:55: mkdir /root/.resource
|
|
2017-07-03 23:03:55: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:03:55: SELECT * FROM deleted_items
|
|
2017-07-03 23:03:55: list /root
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["3dcffb8aa2ad4ece833c6f99d1906ff2"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["0321addad52343dba8d42ba8c01800aa"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["7d80972d74334494b01b536a7e12e9ae"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:03:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:03:55: ["14e22caf19d24a1a86ec67bae2299e32"]
|
|
2017-07-03 23:03:55: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:03:55: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:03:55: Sync: deleteLocal: remote has been deleted: (Local c04735fdac2d49dd9444541ab46c00a7)
|
|
2017-07-03 23:03:55: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:03:55: ["c04735fdac2d49dd9444541ab46c00a7"]
|
|
2017-07-03 23:03:56: Synchronization complete [1499119435735]:
|
|
2017-07-03 23:03:56: remotesToUpdate: -
|
|
2017-07-03 23:03:56: remotesToDelete: -
|
|
2017-07-03 23:03:56: localsToUdpate: -
|
|
2017-07-03 23:03:56: localsToDelete: 1
|
|
2017-07-03 23:03:56: createLocal: -
|
|
2017-07-03 23:03:56: updateLocal: -
|
|
2017-07-03 23:03:56: deleteLocal: 1
|
|
2017-07-03 23:03:56: createRemote: -
|
|
2017-07-03 23:03:56: updateRemote: -
|
|
2017-07-03 23:03:56: deleteRemote: -
|
|
2017-07-03 23:03:56: itemConflict: -
|
|
2017-07-03 23:03:56: noteConflict: -
|
|
2017-07-03 23:03:56: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:03:56: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:03:56: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:03:56: Total folders: 1
|
|
2017-07-03 23:03:56: Total notes: 2
|
|
2017-07-03 23:03:56: Total resources: 0
|
|
2017-07-03 23:03:56: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:03:56: ["2bdd3016a1aa4cdb9baa0a1f12fa4caf"]
|
|
2017-07-03 23:04:08: Database was open successfully
|
|
2017-07-03 23:04:08: Checking for database schema update...
|
|
2017-07-03 23:04:08: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:04:08: Database is new - creating the schema...
|
|
2017-07-03 23:04:08: BEGIN TRANSACTION
|
|
2017-07-03 23:04:08: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:08: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:04:08: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:04:08: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:04:08: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:08: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:04:08: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:04:08: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:04:08: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:04:08: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:04:08: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:04:08: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:04:08: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:08: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:08: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:08: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:04:08: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:04:08: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:04:08: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:04:08: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "b43a88f7e3714276a7606543326777a3", "2")
|
|
2017-07-03 23:04:08: COMMIT
|
|
2017-07-03 23:04:08: Database schema created successfully
|
|
2017-07-03 23:04:08: Initializing tables...
|
|
2017-07-03 23:04:08: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:04:08: PRAGMA table_info("folders")
|
|
2017-07-03 23:04:08: PRAGMA table_info("notes")
|
|
2017-07-03 23:04:08: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:04:08: PRAGMA table_info("tags")
|
|
2017-07-03 23:04:08: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:04:08: PRAGMA table_info("resources")
|
|
2017-07-03 23:04:08: PRAGMA table_info("settings")
|
|
2017-07-03 23:04:08: PRAGMA table_info("version")
|
|
2017-07-03 23:04:08: BEGIN TRANSACTION
|
|
2017-07-03 23:04:08: DELETE FROM table_fields
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["folders","id",2,null]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["folders","parent_id",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["folders","title",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["folders","created_time",1,null]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["folders","updated_time",1,null]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","id",2,null]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","parent_id",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","title",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","body",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","created_time",1,null]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","updated_time",1,null]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","author",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","source_url",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","source",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","source_application",2,""]
|
|
2017-07-03 23:04:08: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:08: ["notes","application_data",2,""]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["notes","order",1,"0"]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["deleted_items","id",null,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["tags","id",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["tags","title",2,""]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["tags","created_time",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["tags","updated_time",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["note_tags","id",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["resources","id",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["resources","title",2,""]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["resources","mime",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["resources","filename",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["resources","created_time",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["resources","updated_time",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["settings","key",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["settings","value",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["settings","type",1,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["version","version",1,null]
|
|
2017-07-03 23:04:09: COMMIT
|
|
2017-07-03 23:04:09: Checking for database schema update...
|
|
2017-07-03 23:04:09: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:04:09: Current database version
|
|
2017-07-03 23:04:09: SELECT * FROM table_fields
|
|
2017-07-03 23:04:09: BEGIN TRANSACTION
|
|
2017-07-03 23:04:09: DELETE FROM notes
|
|
2017-07-03 23:04:09: DELETE FROM folders
|
|
2017-07-03 23:04:09: DELETE FROM resources
|
|
2017-07-03 23:04:09: DELETE FROM tags
|
|
2017-07-03 23:04:09: DELETE FROM note_tags
|
|
2017-07-03 23:04:09: COMMIT
|
|
2017-07-03 23:04:09: SELECT * FROM settings
|
|
2017-07-03 23:04:09: Database was open successfully
|
|
2017-07-03 23:04:09: Checking for database schema update...
|
|
2017-07-03 23:04:09: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:04:09: Database is new - creating the schema...
|
|
2017-07-03 23:04:09: BEGIN TRANSACTION
|
|
2017-07-03 23:04:09: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:09: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:04:09: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:04:09: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:04:09: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:09: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:04:09: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:04:09: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:04:09: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:04:09: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:04:09: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:04:09: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:04:09: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:09: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:09: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:04:09: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:04:09: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:04:09: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:04:09: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:04:09: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "d2c9743ae05548f398111b0ef03372c4", "2")
|
|
2017-07-03 23:04:09: COMMIT
|
|
2017-07-03 23:04:09: Database schema created successfully
|
|
2017-07-03 23:04:09: Initializing tables...
|
|
2017-07-03 23:04:09: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:04:09: PRAGMA table_info("folders")
|
|
2017-07-03 23:04:09: PRAGMA table_info("notes")
|
|
2017-07-03 23:04:09: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:04:09: PRAGMA table_info("tags")
|
|
2017-07-03 23:04:09: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:04:09: PRAGMA table_info("resources")
|
|
2017-07-03 23:04:09: PRAGMA table_info("settings")
|
|
2017-07-03 23:04:09: PRAGMA table_info("version")
|
|
2017-07-03 23:04:09: BEGIN TRANSACTION
|
|
2017-07-03 23:04:09: DELETE FROM table_fields
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["folders","id",2,null]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["folders","parent_id",2,""]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:09: ["folders","title",2,""]
|
|
2017-07-03 23:04:09: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["folders","created_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["folders","updated_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","id",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","parent_id",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","title",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","body",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","created_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","updated_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","author",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","source_url",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","source",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","source_application",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","application_data",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["notes","order",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["deleted_items","id",null,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["tags","id",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["tags","title",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["tags","created_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["tags","updated_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["note_tags","id",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["resources","id",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["resources","title",2,""]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["resources","mime",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["resources","filename",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["resources","created_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["resources","updated_time",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["settings","key",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["settings","value",2,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["settings","type",1,null]
|
|
2017-07-03 23:04:10: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:10: ["version","version",1,null]
|
|
2017-07-03 23:04:10: COMMIT
|
|
2017-07-03 23:04:10: Checking for database schema update...
|
|
2017-07-03 23:04:10: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:04:10: Current database version
|
|
2017-07-03 23:04:10: SELECT * FROM table_fields
|
|
2017-07-03 23:04:10: BEGIN TRANSACTION
|
|
2017-07-03 23:04:10: DELETE FROM notes
|
|
2017-07-03 23:04:10: DELETE FROM folders
|
|
2017-07-03 23:04:10: DELETE FROM resources
|
|
2017-07-03 23:04:10: DELETE FROM tags
|
|
2017-07-03 23:04:10: DELETE FROM note_tags
|
|
2017-07-03 23:04:10: COMMIT
|
|
2017-07-03 23:04:10: SELECT * FROM settings
|
|
2017-07-03 23:04:11: SELECT * FROM settings
|
|
2017-07-03 23:04:11: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:11: ["folder1",1499119451020,"c18c4434753045db97cd63e1e00764df",1499119451021]
|
|
2017-07-03 23:04:11: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:11: ["c18c4434753045db97cd63e1e00764df","un","joplin","SET_ME",1499119451206,"1c163b03ea8b4ea4b792b2c0865be8f4",1499119451207]
|
|
2017-07-03 23:04:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:11: ["1c163b03ea8b4ea4b792b2c0865be8f4"]
|
|
2017-07-03 23:04:11: SELECT * FROM `folders`
|
|
2017-07-03 23:04:11: SELECT * FROM `notes`
|
|
2017-07-03 23:04:11: Starting synchronization... [1499119451463]
|
|
2017-07-03 23:04:11: mkdir /root/.sync
|
|
2017-07-03 23:04:11: mkdir /root/.resource
|
|
2017-07-03 23:04:11: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:11: stat /root/c18c4434753045db97cd63e1e00764df.md
|
|
2017-07-03 23:04:11: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c18c4434753045db97cd63e1e00764df, "folder1")
|
|
2017-07-03 23:04:11: put /root/.sync/c18c4434753045db97cd63e1e00764df.md_1499119451497
|
|
2017-07-03 23:04:11: setTimestamp /root/.sync/c18c4434753045db97cd63e1e00764df.md_1499119451497
|
|
2017-07-03 23:04:11: move /root/.sync/c18c4434753045db97cd63e1e00764df.md_1499119451497 => /root/c18c4434753045db97cd63e1e00764df.md
|
|
2017-07-03 23:04:11: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:11: [1499119451508,"c18c4434753045db97cd63e1e00764df"]
|
|
2017-07-03 23:04:11: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:11: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:11: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:11: stat /root/1c163b03ea8b4ea4b792b2c0865be8f4.md
|
|
2017-07-03 23:04:11: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 1c163b03ea8b4ea4b792b2c0865be8f4, "un")
|
|
2017-07-03 23:04:11: put /root/.sync/1c163b03ea8b4ea4b792b2c0865be8f4.md_1499119451795
|
|
2017-07-03 23:04:11: setTimestamp /root/.sync/1c163b03ea8b4ea4b792b2c0865be8f4.md_1499119451795
|
|
2017-07-03 23:04:11: move /root/.sync/1c163b03ea8b4ea4b792b2c0865be8f4.md_1499119451795 => /root/1c163b03ea8b4ea4b792b2c0865be8f4.md
|
|
2017-07-03 23:04:11: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:11: [1499119451815,"1c163b03ea8b4ea4b792b2c0865be8f4"]
|
|
2017-07-03 23:04:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:11: ["1c163b03ea8b4ea4b792b2c0865be8f4"]
|
|
2017-07-03 23:04:11: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:11: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:11: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:11: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:12: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:12: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:12: list /root
|
|
2017-07-03 23:04:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:12: ["c18c4434753045db97cd63e1e00764df"]
|
|
2017-07-03 23:04:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:12: ["c18c4434753045db97cd63e1e00764df"]
|
|
2017-07-03 23:04:12: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:12: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:12: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:12: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:12: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:12: Synchronization complete [1499119451463]:
|
|
2017-07-03 23:04:12: remotesToUpdate: 2
|
|
2017-07-03 23:04:12: remotesToDelete: -
|
|
2017-07-03 23:04:12: localsToUdpate: -
|
|
2017-07-03 23:04:12: localsToDelete: -
|
|
2017-07-03 23:04:12: createLocal: -
|
|
2017-07-03 23:04:12: updateLocal: -
|
|
2017-07-03 23:04:12: deleteLocal: -
|
|
2017-07-03 23:04:12: createRemote: 2
|
|
2017-07-03 23:04:12: updateRemote: -
|
|
2017-07-03 23:04:12: deleteRemote: -
|
|
2017-07-03 23:04:12: itemConflict: -
|
|
2017-07-03 23:04:12: noteConflict: -
|
|
2017-07-03 23:04:12: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:12: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:12: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:12: Total folders: 1
|
|
2017-07-03 23:04:12: Total notes: 1
|
|
2017-07-03 23:04:12: Total resources: 0
|
|
2017-07-03 23:04:12: list /root
|
|
2017-07-03 23:04:12: stat /root/c18c4434753045db97cd63e1e00764df.md
|
|
2017-07-03 23:04:12: get /root/c18c4434753045db97cd63e1e00764df.md
|
|
2017-07-03 23:04:12: stat /root/1c163b03ea8b4ea4b792b2c0865be8f4.md
|
|
2017-07-03 23:04:12: get /root/1c163b03ea8b4ea4b792b2c0865be8f4.md
|
|
2017-07-03 23:04:12: BEGIN TRANSACTION
|
|
2017-07-03 23:04:12: DELETE FROM notes
|
|
2017-07-03 23:04:12: DELETE FROM folders
|
|
2017-07-03 23:04:12: DELETE FROM resources
|
|
2017-07-03 23:04:12: DELETE FROM tags
|
|
2017-07-03 23:04:12: DELETE FROM note_tags
|
|
2017-07-03 23:04:12: COMMIT
|
|
2017-07-03 23:04:12: SELECT * FROM settings
|
|
2017-07-03 23:04:12: BEGIN TRANSACTION
|
|
2017-07-03 23:04:12: DELETE FROM notes
|
|
2017-07-03 23:04:12: DELETE FROM folders
|
|
2017-07-03 23:04:12: DELETE FROM resources
|
|
2017-07-03 23:04:12: DELETE FROM tags
|
|
2017-07-03 23:04:12: DELETE FROM note_tags
|
|
2017-07-03 23:04:12: COMMIT
|
|
2017-07-03 23:04:12: SELECT * FROM settings
|
|
2017-07-03 23:04:12: SELECT * FROM settings
|
|
2017-07-03 23:04:12: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:12: ["folder1",1499119452912,"3add681a0def4bb0aaaf0a5656710d4a",1499119452912]
|
|
2017-07-03 23:04:13: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:13: ["3add681a0def4bb0aaaf0a5656710d4a","un","joplin","SET_ME",1499119453107,"220957f2371940f4a641a5f932a11d05",1499119453107]
|
|
2017-07-03 23:04:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:13: ["220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:13: Starting synchronization... [1499119453347]
|
|
2017-07-03 23:04:13: mkdir /root/.sync
|
|
2017-07-03 23:04:13: mkdir /root/.resource
|
|
2017-07-03 23:04:13: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:13: stat /root/3add681a0def4bb0aaaf0a5656710d4a.md
|
|
2017-07-03 23:04:13: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 3add681a0def4bb0aaaf0a5656710d4a, "folder1")
|
|
2017-07-03 23:04:13: put /root/.sync/3add681a0def4bb0aaaf0a5656710d4a.md_1499119453381
|
|
2017-07-03 23:04:13: setTimestamp /root/.sync/3add681a0def4bb0aaaf0a5656710d4a.md_1499119453381
|
|
2017-07-03 23:04:13: move /root/.sync/3add681a0def4bb0aaaf0a5656710d4a.md_1499119453381 => /root/3add681a0def4bb0aaaf0a5656710d4a.md
|
|
2017-07-03 23:04:13: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:13: [1499119453390,"3add681a0def4bb0aaaf0a5656710d4a"]
|
|
2017-07-03 23:04:13: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:13: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:13: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:13: stat /root/220957f2371940f4a641a5f932a11d05.md
|
|
2017-07-03 23:04:13: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 220957f2371940f4a641a5f932a11d05, "un")
|
|
2017-07-03 23:04:13: put /root/.sync/220957f2371940f4a641a5f932a11d05.md_1499119453598
|
|
2017-07-03 23:04:13: setTimestamp /root/.sync/220957f2371940f4a641a5f932a11d05.md_1499119453598
|
|
2017-07-03 23:04:13: move /root/.sync/220957f2371940f4a641a5f932a11d05.md_1499119453598 => /root/220957f2371940f4a641a5f932a11d05.md
|
|
2017-07-03 23:04:13: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:13: [1499119453614,"220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:13: ["220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:13: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:13: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:13: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:13: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:13: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:13: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:13: list /root
|
|
2017-07-03 23:04:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:13: ["3add681a0def4bb0aaaf0a5656710d4a"]
|
|
2017-07-03 23:04:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:14: ["3add681a0def4bb0aaaf0a5656710d4a"]
|
|
2017-07-03 23:04:14: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:14: Synchronization complete [1499119453347]:
|
|
2017-07-03 23:04:14: remotesToUpdate: 2
|
|
2017-07-03 23:04:14: remotesToDelete: -
|
|
2017-07-03 23:04:14: localsToUdpate: -
|
|
2017-07-03 23:04:14: localsToDelete: -
|
|
2017-07-03 23:04:14: createLocal: -
|
|
2017-07-03 23:04:14: updateLocal: -
|
|
2017-07-03 23:04:14: deleteLocal: -
|
|
2017-07-03 23:04:14: createRemote: 2
|
|
2017-07-03 23:04:14: updateRemote: -
|
|
2017-07-03 23:04:14: deleteRemote: -
|
|
2017-07-03 23:04:14: itemConflict: -
|
|
2017-07-03 23:04:14: noteConflict: -
|
|
2017-07-03 23:04:14: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:14: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:14: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:14: Total folders: 1
|
|
2017-07-03 23:04:14: Total notes: 1
|
|
2017-07-03 23:04:14: Total resources: 0
|
|
2017-07-03 23:04:14: UPDATE `notes` SET `title`=?, `updated_time`=? WHERE id=?
|
|
2017-07-03 23:04:14: ["un UPDATE",1499119454213,"220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:14: ["220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:14: SELECT * FROM `folders`
|
|
2017-07-03 23:04:14: SELECT * FROM `notes`
|
|
2017-07-03 23:04:14: Starting synchronization... [1499119454437]
|
|
2017-07-03 23:04:14: mkdir /root/.sync
|
|
2017-07-03 23:04:14: mkdir /root/.resource
|
|
2017-07-03 23:04:14: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:14: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:14: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:14: stat /root/220957f2371940f4a641a5f932a11d05.md
|
|
2017-07-03 23:04:14: Sync: updateRemote: local has changes: (Local 220957f2371940f4a641a5f932a11d05, "un UPDATE"): (Remote )
|
|
2017-07-03 23:04:14: put /root/.sync/220957f2371940f4a641a5f932a11d05.md_1499119454486
|
|
2017-07-03 23:04:14: setTimestamp /root/.sync/220957f2371940f4a641a5f932a11d05.md_1499119454486
|
|
2017-07-03 23:04:14: move /root/.sync/220957f2371940f4a641a5f932a11d05.md_1499119454486 => /root/220957f2371940f4a641a5f932a11d05.md
|
|
2017-07-03 23:04:14: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:14: [1499119454502,"220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:14: ["220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:14: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:14: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:14: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:14: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:14: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:14: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:14: list /root
|
|
2017-07-03 23:04:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:14: ["3add681a0def4bb0aaaf0a5656710d4a"]
|
|
2017-07-03 23:04:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:14: ["3add681a0def4bb0aaaf0a5656710d4a"]
|
|
2017-07-03 23:04:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:14: ["220957f2371940f4a641a5f932a11d05"]
|
|
2017-07-03 23:04:14: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:14: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:14: Synchronization complete [1499119454437]:
|
|
2017-07-03 23:04:14: remotesToUpdate: 1
|
|
2017-07-03 23:04:14: remotesToDelete: -
|
|
2017-07-03 23:04:14: localsToUdpate: -
|
|
2017-07-03 23:04:14: localsToDelete: -
|
|
2017-07-03 23:04:14: createLocal: -
|
|
2017-07-03 23:04:14: updateLocal: -
|
|
2017-07-03 23:04:14: deleteLocal: -
|
|
2017-07-03 23:04:14: createRemote: -
|
|
2017-07-03 23:04:14: updateRemote: 1
|
|
2017-07-03 23:04:14: deleteRemote: -
|
|
2017-07-03 23:04:14: itemConflict: -
|
|
2017-07-03 23:04:14: noteConflict: -
|
|
2017-07-03 23:04:14: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:14: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:14: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:14: Total folders: 1
|
|
2017-07-03 23:04:14: Total notes: 1
|
|
2017-07-03 23:04:14: Total resources: 0
|
|
2017-07-03 23:04:14: list /root
|
|
2017-07-03 23:04:14: stat /root/3add681a0def4bb0aaaf0a5656710d4a.md
|
|
2017-07-03 23:04:14: get /root/3add681a0def4bb0aaaf0a5656710d4a.md
|
|
2017-07-03 23:04:14: stat /root/220957f2371940f4a641a5f932a11d05.md
|
|
2017-07-03 23:04:14: get /root/220957f2371940f4a641a5f932a11d05.md
|
|
2017-07-03 23:04:14: BEGIN TRANSACTION
|
|
2017-07-03 23:04:14: DELETE FROM notes
|
|
2017-07-03 23:04:14: DELETE FROM folders
|
|
2017-07-03 23:04:14: DELETE FROM resources
|
|
2017-07-03 23:04:14: DELETE FROM tags
|
|
2017-07-03 23:04:14: DELETE FROM note_tags
|
|
2017-07-03 23:04:14: COMMIT
|
|
2017-07-03 23:04:15: SELECT * FROM settings
|
|
2017-07-03 23:04:15: BEGIN TRANSACTION
|
|
2017-07-03 23:04:15: DELETE FROM notes
|
|
2017-07-03 23:04:15: DELETE FROM folders
|
|
2017-07-03 23:04:15: DELETE FROM resources
|
|
2017-07-03 23:04:15: DELETE FROM tags
|
|
2017-07-03 23:04:15: DELETE FROM note_tags
|
|
2017-07-03 23:04:15: COMMIT
|
|
2017-07-03 23:04:15: SELECT * FROM settings
|
|
2017-07-03 23:04:15: SELECT * FROM settings
|
|
2017-07-03 23:04:15: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:15: ["folder1",1499119455747,"9225c413e93746ec9867adcd8b62f0f6",1499119455747]
|
|
2017-07-03 23:04:15: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:15: ["9225c413e93746ec9867adcd8b62f0f6","un","joplin","SET_ME",1499119455962,"623079cf7c1643c6aec891454b52ab5f",1499119455962]
|
|
2017-07-03 23:04:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:16: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:16: Starting synchronization... [1499119456168]
|
|
2017-07-03 23:04:16: mkdir /root/.sync
|
|
2017-07-03 23:04:16: mkdir /root/.resource
|
|
2017-07-03 23:04:16: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:16: stat /root/9225c413e93746ec9867adcd8b62f0f6.md
|
|
2017-07-03 23:04:16: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 9225c413e93746ec9867adcd8b62f0f6, "folder1")
|
|
2017-07-03 23:04:16: put /root/.sync/9225c413e93746ec9867adcd8b62f0f6.md_1499119456201
|
|
2017-07-03 23:04:16: setTimestamp /root/.sync/9225c413e93746ec9867adcd8b62f0f6.md_1499119456201
|
|
2017-07-03 23:04:16: move /root/.sync/9225c413e93746ec9867adcd8b62f0f6.md_1499119456201 => /root/9225c413e93746ec9867adcd8b62f0f6.md
|
|
2017-07-03 23:04:16: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:16: [1499119456210,"9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:16: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:16: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:16: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:16: stat /root/623079cf7c1643c6aec891454b52ab5f.md
|
|
2017-07-03 23:04:16: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 623079cf7c1643c6aec891454b52ab5f, "un")
|
|
2017-07-03 23:04:16: put /root/.sync/623079cf7c1643c6aec891454b52ab5f.md_1499119456395
|
|
2017-07-03 23:04:16: setTimestamp /root/.sync/623079cf7c1643c6aec891454b52ab5f.md_1499119456395
|
|
2017-07-03 23:04:16: move /root/.sync/623079cf7c1643c6aec891454b52ab5f.md_1499119456395 => /root/623079cf7c1643c6aec891454b52ab5f.md
|
|
2017-07-03 23:04:16: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:16: [1499119456410,"623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:16: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:16: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:16: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:16: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:16: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:16: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:16: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:16: list /root
|
|
2017-07-03 23:04:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:16: ["9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:16: ["9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:16: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:16: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:16: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:16: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:16: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:16: Synchronization complete [1499119456168]:
|
|
2017-07-03 23:04:16: remotesToUpdate: 2
|
|
2017-07-03 23:04:16: remotesToDelete: -
|
|
2017-07-03 23:04:16: localsToUdpate: -
|
|
2017-07-03 23:04:16: localsToDelete: -
|
|
2017-07-03 23:04:16: createLocal: -
|
|
2017-07-03 23:04:16: updateLocal: -
|
|
2017-07-03 23:04:16: deleteLocal: -
|
|
2017-07-03 23:04:16: createRemote: 2
|
|
2017-07-03 23:04:16: updateRemote: -
|
|
2017-07-03 23:04:16: deleteRemote: -
|
|
2017-07-03 23:04:16: itemConflict: -
|
|
2017-07-03 23:04:16: noteConflict: -
|
|
2017-07-03 23:04:16: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:16: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:16: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:16: Total folders: 1
|
|
2017-07-03 23:04:16: Total notes: 1
|
|
2017-07-03 23:04:16: Total resources: 0
|
|
2017-07-03 23:04:17: SELECT * FROM settings
|
|
2017-07-03 23:04:17: Starting synchronization... [1499119457037]
|
|
2017-07-03 23:04:17: mkdir /root/.sync
|
|
2017-07-03 23:04:17: mkdir /root/.resource
|
|
2017-07-03 23:04:17: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:17: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:17: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:17: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:17: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:17: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:17: list /root
|
|
2017-07-03 23:04:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:17: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:17: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:17: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:17: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["9225c413e93746ec9867adcd8b62f0f6"]
|
|
2017-07-03 23:04:17: get /root/9225c413e93746ec9867adcd8b62f0f6.md
|
|
2017-07-03 23:04:17: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:17: ["9225c413e93746ec9867adcd8b62f0f6","folder1","1499119455747","1499119455747",1499119457151]
|
|
2017-07-03 23:04:17: Sync: createLocal: remote exists but local does not: (Remote 9225c413e93746ec9867adcd8b62f0f6, "folder1")
|
|
2017-07-03 23:04:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:17: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:17: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:17: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:17: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:17: get /root/623079cf7c1643c6aec891454b52ab5f.md
|
|
2017-07-03 23:04:17: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:17: ["623079cf7c1643c6aec891454b52ab5f","9225c413e93746ec9867adcd8b62f0f6","un","","1499119455962","1499119455962",1499119457390,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:04:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:17: ["623079cf7c1643c6aec891454b52ab5f"]
|
|
2017-07-03 23:04:17: Sync: createLocal: remote exists but local does not: (Remote 623079cf7c1643c6aec891454b52ab5f, "un")
|
|
2017-07-03 23:04:17: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:17: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:17: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:17: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:17: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:17: Synchronization complete [1499119457037]:
|
|
2017-07-03 23:04:17: remotesToUpdate: -
|
|
2017-07-03 23:04:17: remotesToDelete: -
|
|
2017-07-03 23:04:17: localsToUdpate: 2
|
|
2017-07-03 23:04:17: localsToDelete: -
|
|
2017-07-03 23:04:17: createLocal: 2
|
|
2017-07-03 23:04:17: updateLocal: -
|
|
2017-07-03 23:04:17: deleteLocal: -
|
|
2017-07-03 23:04:17: createRemote: -
|
|
2017-07-03 23:04:17: updateRemote: -
|
|
2017-07-03 23:04:17: deleteRemote: -
|
|
2017-07-03 23:04:17: itemConflict: -
|
|
2017-07-03 23:04:17: noteConflict: -
|
|
2017-07-03 23:04:17: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:17: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:17: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:17: Total folders: 1
|
|
2017-07-03 23:04:17: Total notes: 1
|
|
2017-07-03 23:04:17: Total resources: 0
|
|
2017-07-03 23:04:17: SELECT * FROM `folders`
|
|
2017-07-03 23:04:17: SELECT * FROM `notes`
|
|
2017-07-03 23:04:17: list /root
|
|
2017-07-03 23:04:17: stat /root/9225c413e93746ec9867adcd8b62f0f6.md
|
|
2017-07-03 23:04:17: get /root/9225c413e93746ec9867adcd8b62f0f6.md
|
|
2017-07-03 23:04:17: stat /root/623079cf7c1643c6aec891454b52ab5f.md
|
|
2017-07-03 23:04:17: get /root/623079cf7c1643c6aec891454b52ab5f.md
|
|
2017-07-03 23:04:17: BEGIN TRANSACTION
|
|
2017-07-03 23:04:17: DELETE FROM notes
|
|
2017-07-03 23:04:17: DELETE FROM folders
|
|
2017-07-03 23:04:17: DELETE FROM resources
|
|
2017-07-03 23:04:17: DELETE FROM tags
|
|
2017-07-03 23:04:17: DELETE FROM note_tags
|
|
2017-07-03 23:04:17: COMMIT
|
|
2017-07-03 23:04:18: SELECT * FROM settings
|
|
2017-07-03 23:04:18: BEGIN TRANSACTION
|
|
2017-07-03 23:04:18: DELETE FROM notes
|
|
2017-07-03 23:04:18: DELETE FROM folders
|
|
2017-07-03 23:04:18: DELETE FROM resources
|
|
2017-07-03 23:04:18: DELETE FROM tags
|
|
2017-07-03 23:04:18: DELETE FROM note_tags
|
|
2017-07-03 23:04:18: COMMIT
|
|
2017-07-03 23:04:18: SELECT * FROM settings
|
|
2017-07-03 23:04:18: SELECT * FROM settings
|
|
2017-07-03 23:04:18: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:18: ["folder1",1499119458577,"a0ff3f422ecf400786708538b3044499",1499119458577]
|
|
2017-07-03 23:04:18: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:18: ["a0ff3f422ecf400786708538b3044499","un","joplin","SET_ME",1499119458765,"7c1fa11713e54cc28d3944e0a6b5b2e8",1499119458765]
|
|
2017-07-03 23:04:18: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:18: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:18: Starting synchronization... [1499119458949]
|
|
2017-07-03 23:04:18: mkdir /root/.sync
|
|
2017-07-03 23:04:18: mkdir /root/.resource
|
|
2017-07-03 23:04:18: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:18: stat /root/a0ff3f422ecf400786708538b3044499.md
|
|
2017-07-03 23:04:18: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local a0ff3f422ecf400786708538b3044499, "folder1")
|
|
2017-07-03 23:04:18: put /root/.sync/a0ff3f422ecf400786708538b3044499.md_1499119458992
|
|
2017-07-03 23:04:18: setTimestamp /root/.sync/a0ff3f422ecf400786708538b3044499.md_1499119458992
|
|
2017-07-03 23:04:19: move /root/.sync/a0ff3f422ecf400786708538b3044499.md_1499119458992 => /root/a0ff3f422ecf400786708538b3044499.md
|
|
2017-07-03 23:04:19: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:19: [1499119459012,"a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:19: stat /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:19: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 7c1fa11713e54cc28d3944e0a6b5b2e8, "un")
|
|
2017-07-03 23:04:19: put /root/.sync/7c1fa11713e54cc28d3944e0a6b5b2e8.md_1499119459201
|
|
2017-07-03 23:04:19: setTimestamp /root/.sync/7c1fa11713e54cc28d3944e0a6b5b2e8.md_1499119459201
|
|
2017-07-03 23:04:19: move /root/.sync/7c1fa11713e54cc28d3944e0a6b5b2e8.md_1499119459201 => /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:19: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:19: [1499119459219,"7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:19: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:19: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:19: list /root
|
|
2017-07-03 23:04:19: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:19: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:19: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:19: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:19: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:19: Synchronization complete [1499119458949]:
|
|
2017-07-03 23:04:19: remotesToUpdate: 2
|
|
2017-07-03 23:04:19: remotesToDelete: -
|
|
2017-07-03 23:04:19: localsToUdpate: -
|
|
2017-07-03 23:04:19: localsToDelete: -
|
|
2017-07-03 23:04:19: createLocal: -
|
|
2017-07-03 23:04:19: updateLocal: -
|
|
2017-07-03 23:04:19: deleteLocal: -
|
|
2017-07-03 23:04:19: createRemote: 2
|
|
2017-07-03 23:04:19: updateRemote: -
|
|
2017-07-03 23:04:19: deleteRemote: -
|
|
2017-07-03 23:04:19: itemConflict: -
|
|
2017-07-03 23:04:19: noteConflict: -
|
|
2017-07-03 23:04:19: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:19: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:19: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:19: Total folders: 1
|
|
2017-07-03 23:04:19: Total notes: 1
|
|
2017-07-03 23:04:19: Total resources: 0
|
|
2017-07-03 23:04:19: SELECT * FROM settings
|
|
2017-07-03 23:04:19: Starting synchronization... [1499119459787]
|
|
2017-07-03 23:04:19: mkdir /root/.sync
|
|
2017-07-03 23:04:19: mkdir /root/.resource
|
|
2017-07-03 23:04:19: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:19: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:19: list /root
|
|
2017-07-03 23:04:19: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:19: get /root/a0ff3f422ecf400786708538b3044499.md
|
|
2017-07-03 23:04:19: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:19: ["a0ff3f422ecf400786708538b3044499","folder1","1499119458577","1499119458577",1499119459897]
|
|
2017-07-03 23:04:20: Sync: createLocal: remote exists but local does not: (Remote a0ff3f422ecf400786708538b3044499, "folder1")
|
|
2017-07-03 23:04:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: get /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:20: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8","a0ff3f422ecf400786708538b3044499","un","","1499119458765","1499119458765",1499119460083,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:04:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: Sync: createLocal: remote exists but local does not: (Remote 7c1fa11713e54cc28d3944e0a6b5b2e8, "un")
|
|
2017-07-03 23:04:20: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:20: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:20: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:20: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:20: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:20: Synchronization complete [1499119459787]:
|
|
2017-07-03 23:04:20: remotesToUpdate: -
|
|
2017-07-03 23:04:20: remotesToDelete: -
|
|
2017-07-03 23:04:20: localsToUdpate: 2
|
|
2017-07-03 23:04:20: localsToDelete: -
|
|
2017-07-03 23:04:20: createLocal: 2
|
|
2017-07-03 23:04:20: updateLocal: -
|
|
2017-07-03 23:04:20: deleteLocal: -
|
|
2017-07-03 23:04:20: createRemote: -
|
|
2017-07-03 23:04:20: updateRemote: -
|
|
2017-07-03 23:04:20: deleteRemote: -
|
|
2017-07-03 23:04:20: itemConflict: -
|
|
2017-07-03 23:04:20: noteConflict: -
|
|
2017-07-03 23:04:20: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:20: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:20: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:20: Total folders: 1
|
|
2017-07-03 23:04:20: Total notes: 1
|
|
2017-07-03 23:04:20: Total resources: 0
|
|
2017-07-03 23:04:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `is_conflict`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:04:20: ["a0ff3f422ecf400786708538b3044499","Updated on client 2","",1499119458765,1499119460506,1499119460083,0,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:20: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:20: Starting synchronization... [1499119460709]
|
|
2017-07-03 23:04:20: mkdir /root/.sync
|
|
2017-07-03 23:04:20: mkdir /root/.resource
|
|
2017-07-03 23:04:20: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:20: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:20: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:20: stat /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:20: Sync: updateRemote: local has changes: (Local 7c1fa11713e54cc28d3944e0a6b5b2e8, "Updated on client 2"): (Remote )
|
|
2017-07-03 23:04:20: put /root/.sync/7c1fa11713e54cc28d3944e0a6b5b2e8.md_1499119460740
|
|
2017-07-03 23:04:20: setTimestamp /root/.sync/7c1fa11713e54cc28d3944e0a6b5b2e8.md_1499119460740
|
|
2017-07-03 23:04:20: move /root/.sync/7c1fa11713e54cc28d3944e0a6b5b2e8.md_1499119460740 => /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:20: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:20: [1499119460754,"7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:21: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:21: list /root
|
|
2017-07-03 23:04:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:21: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:21: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:21: Synchronization complete [1499119460709]:
|
|
2017-07-03 23:04:21: remotesToUpdate: 1
|
|
2017-07-03 23:04:21: remotesToDelete: -
|
|
2017-07-03 23:04:21: localsToUdpate: -
|
|
2017-07-03 23:04:21: localsToDelete: -
|
|
2017-07-03 23:04:21: createLocal: -
|
|
2017-07-03 23:04:21: updateLocal: -
|
|
2017-07-03 23:04:21: deleteLocal: -
|
|
2017-07-03 23:04:21: createRemote: -
|
|
2017-07-03 23:04:21: updateRemote: 1
|
|
2017-07-03 23:04:21: deleteRemote: -
|
|
2017-07-03 23:04:21: itemConflict: -
|
|
2017-07-03 23:04:21: noteConflict: -
|
|
2017-07-03 23:04:21: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:21: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:21: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:21: Total folders: 1
|
|
2017-07-03 23:04:21: Total notes: 1
|
|
2017-07-03 23:04:21: Total resources: 0
|
|
2017-07-03 23:04:21: SELECT * FROM settings
|
|
2017-07-03 23:04:21: Starting synchronization... [1499119461447]
|
|
2017-07-03 23:04:21: mkdir /root/.sync
|
|
2017-07-03 23:04:21: mkdir /root/.resource
|
|
2017-07-03 23:04:21: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:21: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:21: list /root
|
|
2017-07-03 23:04:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:21: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["a0ff3f422ecf400786708538b3044499"]
|
|
2017-07-03 23:04:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:21: get /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:21: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:04:21: ["a0ff3f422ecf400786708538b3044499","Updated on client 2","","1499119458765","1499119460506",1499119461545,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:21: ["7c1fa11713e54cc28d3944e0a6b5b2e8"]
|
|
2017-07-03 23:04:21: Sync: updateLocal: remote is more recent than local: (Local 7c1fa11713e54cc28d3944e0a6b5b2e8, "un"): (Remote 7c1fa11713e54cc28d3944e0a6b5b2e8, "Updated on client 2")
|
|
2017-07-03 23:04:21: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:21: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:21: Synchronization complete [1499119461447]:
|
|
2017-07-03 23:04:21: remotesToUpdate: -
|
|
2017-07-03 23:04:21: remotesToDelete: -
|
|
2017-07-03 23:04:21: localsToUdpate: 1
|
|
2017-07-03 23:04:21: localsToDelete: -
|
|
2017-07-03 23:04:21: createLocal: -
|
|
2017-07-03 23:04:21: updateLocal: 1
|
|
2017-07-03 23:04:21: deleteLocal: -
|
|
2017-07-03 23:04:21: createRemote: -
|
|
2017-07-03 23:04:21: updateRemote: -
|
|
2017-07-03 23:04:21: deleteRemote: -
|
|
2017-07-03 23:04:21: itemConflict: -
|
|
2017-07-03 23:04:21: noteConflict: -
|
|
2017-07-03 23:04:21: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:21: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:21: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:21: Total folders: 1
|
|
2017-07-03 23:04:21: Total notes: 1
|
|
2017-07-03 23:04:21: Total resources: 0
|
|
2017-07-03 23:04:21: SELECT * FROM `folders`
|
|
2017-07-03 23:04:21: SELECT * FROM `notes`
|
|
2017-07-03 23:04:21: list /root
|
|
2017-07-03 23:04:21: stat /root/a0ff3f422ecf400786708538b3044499.md
|
|
2017-07-03 23:04:21: get /root/a0ff3f422ecf400786708538b3044499.md
|
|
2017-07-03 23:04:21: stat /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:21: get /root/7c1fa11713e54cc28d3944e0a6b5b2e8.md
|
|
2017-07-03 23:04:21: BEGIN TRANSACTION
|
|
2017-07-03 23:04:21: DELETE FROM notes
|
|
2017-07-03 23:04:21: DELETE FROM folders
|
|
2017-07-03 23:04:21: DELETE FROM resources
|
|
2017-07-03 23:04:21: DELETE FROM tags
|
|
2017-07-03 23:04:21: DELETE FROM note_tags
|
|
2017-07-03 23:04:21: COMMIT
|
|
2017-07-03 23:04:22: SELECT * FROM settings
|
|
2017-07-03 23:04:22: BEGIN TRANSACTION
|
|
2017-07-03 23:04:22: DELETE FROM notes
|
|
2017-07-03 23:04:22: DELETE FROM folders
|
|
2017-07-03 23:04:22: DELETE FROM resources
|
|
2017-07-03 23:04:22: DELETE FROM tags
|
|
2017-07-03 23:04:22: DELETE FROM note_tags
|
|
2017-07-03 23:04:22: COMMIT
|
|
2017-07-03 23:04:22: SELECT * FROM settings
|
|
2017-07-03 23:04:22: SELECT * FROM settings
|
|
2017-07-03 23:04:22: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:22: ["folder1",1499119462564,"624b6038d87f425487346fb5eb942591",1499119462564]
|
|
2017-07-03 23:04:22: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:22: ["624b6038d87f425487346fb5eb942591","un","joplin","SET_ME",1499119462769,"da5b309620784279818039e4746e9ca1",1499119462769]
|
|
2017-07-03 23:04:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:23: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:23: Starting synchronization... [1499119463113]
|
|
2017-07-03 23:04:23: mkdir /root/.sync
|
|
2017-07-03 23:04:23: mkdir /root/.resource
|
|
2017-07-03 23:04:23: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: stat /root/624b6038d87f425487346fb5eb942591.md
|
|
2017-07-03 23:04:23: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 624b6038d87f425487346fb5eb942591, "folder1")
|
|
2017-07-03 23:04:23: put /root/.sync/624b6038d87f425487346fb5eb942591.md_1499119463159
|
|
2017-07-03 23:04:23: setTimestamp /root/.sync/624b6038d87f425487346fb5eb942591.md_1499119463159
|
|
2017-07-03 23:04:23: move /root/.sync/624b6038d87f425487346fb5eb942591.md_1499119463159 => /root/624b6038d87f425487346fb5eb942591.md
|
|
2017-07-03 23:04:23: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:23: [1499119463169,"624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:23: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:23: stat /root/da5b309620784279818039e4746e9ca1.md
|
|
2017-07-03 23:04:23: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local da5b309620784279818039e4746e9ca1, "un")
|
|
2017-07-03 23:04:23: put /root/.sync/da5b309620784279818039e4746e9ca1.md_1499119463395
|
|
2017-07-03 23:04:23: setTimestamp /root/.sync/da5b309620784279818039e4746e9ca1.md_1499119463395
|
|
2017-07-03 23:04:23: move /root/.sync/da5b309620784279818039e4746e9ca1.md_1499119463395 => /root/da5b309620784279818039e4746e9ca1.md
|
|
2017-07-03 23:04:23: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:23: [1499119463417,"da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:23: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:23: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:23: list /root
|
|
2017-07-03 23:04:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:23: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:23: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:23: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:23: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:23: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:23: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:23: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:23: Synchronization complete [1499119463113]:
|
|
2017-07-03 23:04:23: remotesToUpdate: 2
|
|
2017-07-03 23:04:23: remotesToDelete: -
|
|
2017-07-03 23:04:23: localsToUdpate: -
|
|
2017-07-03 23:04:23: localsToDelete: -
|
|
2017-07-03 23:04:23: createLocal: -
|
|
2017-07-03 23:04:23: updateLocal: -
|
|
2017-07-03 23:04:23: deleteLocal: -
|
|
2017-07-03 23:04:23: createRemote: 2
|
|
2017-07-03 23:04:23: updateRemote: -
|
|
2017-07-03 23:04:23: deleteRemote: -
|
|
2017-07-03 23:04:23: itemConflict: -
|
|
2017-07-03 23:04:23: noteConflict: -
|
|
2017-07-03 23:04:23: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:23: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:23: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:23: Total folders: 1
|
|
2017-07-03 23:04:23: Total notes: 1
|
|
2017-07-03 23:04:23: Total resources: 0
|
|
2017-07-03 23:04:23: SELECT * FROM settings
|
|
2017-07-03 23:04:23: Starting synchronization... [1499119463947]
|
|
2017-07-03 23:04:23: mkdir /root/.sync
|
|
2017-07-03 23:04:23: mkdir /root/.resource
|
|
2017-07-03 23:04:23: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:23: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:24: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:24: list /root
|
|
2017-07-03 23:04:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:24: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:24: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:24: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:24: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:24: get /root/624b6038d87f425487346fb5eb942591.md
|
|
2017-07-03 23:04:24: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:24: ["624b6038d87f425487346fb5eb942591","folder1","1499119462564","1499119462564",1499119464056]
|
|
2017-07-03 23:04:24: Sync: createLocal: remote exists but local does not: (Remote 624b6038d87f425487346fb5eb942591, "folder1")
|
|
2017-07-03 23:04:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: get /root/da5b309620784279818039e4746e9ca1.md
|
|
2017-07-03 23:04:24: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1","624b6038d87f425487346fb5eb942591","un","","1499119462769","1499119462769",1499119464314,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:04:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: Sync: createLocal: remote exists but local does not: (Remote da5b309620784279818039e4746e9ca1, "un")
|
|
2017-07-03 23:04:24: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:24: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:24: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:24: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:24: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:24: Synchronization complete [1499119463947]:
|
|
2017-07-03 23:04:24: remotesToUpdate: -
|
|
2017-07-03 23:04:24: remotesToDelete: -
|
|
2017-07-03 23:04:24: localsToUdpate: 2
|
|
2017-07-03 23:04:24: localsToDelete: -
|
|
2017-07-03 23:04:24: createLocal: 2
|
|
2017-07-03 23:04:24: updateLocal: -
|
|
2017-07-03 23:04:24: deleteLocal: -
|
|
2017-07-03 23:04:24: createRemote: -
|
|
2017-07-03 23:04:24: updateRemote: -
|
|
2017-07-03 23:04:24: deleteRemote: -
|
|
2017-07-03 23:04:24: itemConflict: -
|
|
2017-07-03 23:04:24: noteConflict: -
|
|
2017-07-03 23:04:24: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:24: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:24: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:24: Total folders: 1
|
|
2017-07-03 23:04:24: Total notes: 1
|
|
2017-07-03 23:04:24: Total resources: 0
|
|
2017-07-03 23:04:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `is_conflict`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:04:24: ["624b6038d87f425487346fb5eb942591","Updated on client 2","",1499119462769,1499119464680,1499119464314,0,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:24: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:24: Starting synchronization... [1499119464923]
|
|
2017-07-03 23:04:24: mkdir /root/.sync
|
|
2017-07-03 23:04:24: mkdir /root/.resource
|
|
2017-07-03 23:04:24: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:24: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:24: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:24: stat /root/da5b309620784279818039e4746e9ca1.md
|
|
2017-07-03 23:04:24: Sync: updateRemote: local has changes: (Local da5b309620784279818039e4746e9ca1, "Updated on client 2"): (Remote )
|
|
2017-07-03 23:04:24: put /root/.sync/da5b309620784279818039e4746e9ca1.md_1499119464989
|
|
2017-07-03 23:04:24: setTimestamp /root/.sync/da5b309620784279818039e4746e9ca1.md_1499119464989
|
|
2017-07-03 23:04:24: move /root/.sync/da5b309620784279818039e4746e9ca1.md_1499119464989 => /root/da5b309620784279818039e4746e9ca1.md
|
|
2017-07-03 23:04:25: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:25: [1499119465003,"da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:25: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:25: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:25: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:25: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:25: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:25: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:25: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:25: list /root
|
|
2017-07-03 23:04:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:25: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:25: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:25: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:25: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:25: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:25: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:25: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:25: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:25: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:25: Synchronization complete [1499119464923]:
|
|
2017-07-03 23:04:25: remotesToUpdate: 1
|
|
2017-07-03 23:04:25: remotesToDelete: -
|
|
2017-07-03 23:04:25: localsToUdpate: -
|
|
2017-07-03 23:04:25: localsToDelete: -
|
|
2017-07-03 23:04:25: createLocal: -
|
|
2017-07-03 23:04:25: updateLocal: -
|
|
2017-07-03 23:04:25: deleteLocal: -
|
|
2017-07-03 23:04:25: createRemote: -
|
|
2017-07-03 23:04:25: updateRemote: 1
|
|
2017-07-03 23:04:25: deleteRemote: -
|
|
2017-07-03 23:04:25: itemConflict: -
|
|
2017-07-03 23:04:25: noteConflict: -
|
|
2017-07-03 23:04:25: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:25: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:25: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:25: Total folders: 1
|
|
2017-07-03 23:04:25: Total notes: 1
|
|
2017-07-03 23:04:25: Total resources: 0
|
|
2017-07-03 23:04:25: SELECT * FROM settings
|
|
2017-07-03 23:04:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:25: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:25: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `is_conflict`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:04:25: ["624b6038d87f425487346fb5eb942591","Updated on client 1","",1499119462769,1499119465621,1499119463417,0,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:25: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:25: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:25: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:25: Starting synchronization... [1499119465903]
|
|
2017-07-03 23:04:25: mkdir /root/.sync
|
|
2017-07-03 23:04:25: mkdir /root/.resource
|
|
2017-07-03 23:04:25: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:25: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:25: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:25: stat /root/da5b309620784279818039e4746e9ca1.md
|
|
2017-07-03 23:04:25: Sync: noteConflict: both remote and local have changes: (Local da5b309620784279818039e4746e9ca1, "Updated on client 1"): (Remote )
|
|
2017-07-03 23:04:25: INSERT INTO `notes` (`parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `is_conflict`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`, `id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:25: ["624b6038d87f425487346fb5eb942591","Updated on client 1","",1499119462769,1499119465621,1499119463417,1,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"248592839f4142e9bc0e0f5f1ceb940b"]
|
|
2017-07-03 23:04:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:26: ["248592839f4142e9bc0e0f5f1ceb940b"]
|
|
2017-07-03 23:04:26: get /root/da5b309620784279818039e4746e9ca1.md
|
|
2017-07-03 23:04:26: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:04:26: ["624b6038d87f425487346fb5eb942591","Updated on client 2","","1499119462769","1499119464680",1499119466269,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:26: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:26: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:26: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:26: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:26: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:26: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:26: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:26: list /root
|
|
2017-07-03 23:04:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:26: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:26: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:26: ["624b6038d87f425487346fb5eb942591"]
|
|
2017-07-03 23:04:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:26: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:26: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:26: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:26: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:26: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:26: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:26: Synchronization complete [1499119465903]:
|
|
2017-07-03 23:04:26: remotesToUpdate: 1
|
|
2017-07-03 23:04:26: remotesToDelete: -
|
|
2017-07-03 23:04:26: localsToUdpate: -
|
|
2017-07-03 23:04:26: localsToDelete: -
|
|
2017-07-03 23:04:26: createLocal: -
|
|
2017-07-03 23:04:26: updateLocal: -
|
|
2017-07-03 23:04:26: deleteLocal: -
|
|
2017-07-03 23:04:26: createRemote: -
|
|
2017-07-03 23:04:26: updateRemote: -
|
|
2017-07-03 23:04:26: deleteRemote: -
|
|
2017-07-03 23:04:26: itemConflict: -
|
|
2017-07-03 23:04:26: noteConflict: 1
|
|
2017-07-03 23:04:26: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:26: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:26: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:26: Total folders: 1
|
|
2017-07-03 23:04:26: Total notes: 2
|
|
2017-07-03 23:04:26: Total resources: 0
|
|
2017-07-03 23:04:26: SELECT * FROM notes WHERE is_conflict = 1
|
|
2017-07-03 23:04:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:26: ["da5b309620784279818039e4746e9ca1"]
|
|
2017-07-03 23:04:26: BEGIN TRANSACTION
|
|
2017-07-03 23:04:26: DELETE FROM notes
|
|
2017-07-03 23:04:26: DELETE FROM folders
|
|
2017-07-03 23:04:26: DELETE FROM resources
|
|
2017-07-03 23:04:26: DELETE FROM tags
|
|
2017-07-03 23:04:26: DELETE FROM note_tags
|
|
2017-07-03 23:04:26: COMMIT
|
|
2017-07-03 23:04:26: SELECT * FROM settings
|
|
2017-07-03 23:04:26: BEGIN TRANSACTION
|
|
2017-07-03 23:04:26: DELETE FROM notes
|
|
2017-07-03 23:04:26: DELETE FROM folders
|
|
2017-07-03 23:04:26: DELETE FROM resources
|
|
2017-07-03 23:04:26: DELETE FROM tags
|
|
2017-07-03 23:04:26: DELETE FROM note_tags
|
|
2017-07-03 23:04:26: COMMIT
|
|
2017-07-03 23:04:27: SELECT * FROM settings
|
|
2017-07-03 23:04:27: SELECT * FROM settings
|
|
2017-07-03 23:04:27: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:27: ["folder1",1499119467292,"c12ec5bcfff34498b3c1fa822264e849",1499119467292]
|
|
2017-07-03 23:04:27: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:27: ["c12ec5bcfff34498b3c1fa822264e849","un","joplin","SET_ME",1499119467421,"93d9d9e85e1d473e8ca497ab331b0d09",1499119467421]
|
|
2017-07-03 23:04:27: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:27: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:27: Starting synchronization... [1499119467606]
|
|
2017-07-03 23:04:27: mkdir /root/.sync
|
|
2017-07-03 23:04:27: mkdir /root/.resource
|
|
2017-07-03 23:04:27: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:27: stat /root/c12ec5bcfff34498b3c1fa822264e849.md
|
|
2017-07-03 23:04:27: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c12ec5bcfff34498b3c1fa822264e849, "folder1")
|
|
2017-07-03 23:04:27: put /root/.sync/c12ec5bcfff34498b3c1fa822264e849.md_1499119467625
|
|
2017-07-03 23:04:27: setTimestamp /root/.sync/c12ec5bcfff34498b3c1fa822264e849.md_1499119467625
|
|
2017-07-03 23:04:27: move /root/.sync/c12ec5bcfff34498b3c1fa822264e849.md_1499119467625 => /root/c12ec5bcfff34498b3c1fa822264e849.md
|
|
2017-07-03 23:04:27: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:27: [1499119467633,"c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:27: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:27: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:27: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:27: stat /root/93d9d9e85e1d473e8ca497ab331b0d09.md
|
|
2017-07-03 23:04:27: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 93d9d9e85e1d473e8ca497ab331b0d09, "un")
|
|
2017-07-03 23:04:27: put /root/.sync/93d9d9e85e1d473e8ca497ab331b0d09.md_1499119467781
|
|
2017-07-03 23:04:27: setTimestamp /root/.sync/93d9d9e85e1d473e8ca497ab331b0d09.md_1499119467781
|
|
2017-07-03 23:04:27: move /root/.sync/93d9d9e85e1d473e8ca497ab331b0d09.md_1499119467781 => /root/93d9d9e85e1d473e8ca497ab331b0d09.md
|
|
2017-07-03 23:04:27: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:27: [1499119467789,"93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:27: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:27: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:27: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:27: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:27: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:27: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:27: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:27: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:27: list /root
|
|
2017-07-03 23:04:27: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:27: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:27: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:27: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:27: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:27: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:27: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:27: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:27: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:27: Synchronization complete [1499119467606]:
|
|
2017-07-03 23:04:27: remotesToUpdate: 2
|
|
2017-07-03 23:04:27: remotesToDelete: -
|
|
2017-07-03 23:04:27: localsToUdpate: -
|
|
2017-07-03 23:04:27: localsToDelete: -
|
|
2017-07-03 23:04:27: createLocal: -
|
|
2017-07-03 23:04:27: updateLocal: -
|
|
2017-07-03 23:04:27: deleteLocal: -
|
|
2017-07-03 23:04:27: createRemote: 2
|
|
2017-07-03 23:04:27: updateRemote: -
|
|
2017-07-03 23:04:27: deleteRemote: -
|
|
2017-07-03 23:04:27: itemConflict: -
|
|
2017-07-03 23:04:28: noteConflict: -
|
|
2017-07-03 23:04:28: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:28: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:28: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:28: Total folders: 1
|
|
2017-07-03 23:04:28: Total notes: 1
|
|
2017-07-03 23:04:28: Total resources: 0
|
|
2017-07-03 23:04:28: SELECT * FROM settings
|
|
2017-07-03 23:04:28: Starting synchronization... [1499119468231]
|
|
2017-07-03 23:04:28: mkdir /root/.sync
|
|
2017-07-03 23:04:28: mkdir /root/.resource
|
|
2017-07-03 23:04:28: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:28: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:28: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:28: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:28: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:28: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:28: list /root
|
|
2017-07-03 23:04:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:28: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:28: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:28: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:28: get /root/c12ec5bcfff34498b3c1fa822264e849.md
|
|
2017-07-03 23:04:28: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:28: ["c12ec5bcfff34498b3c1fa822264e849","folder1","1499119467292","1499119467292",1499119468305]
|
|
2017-07-03 23:04:28: Sync: createLocal: remote exists but local does not: (Remote c12ec5bcfff34498b3c1fa822264e849, "folder1")
|
|
2017-07-03 23:04:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:28: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:28: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:28: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:28: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:28: get /root/93d9d9e85e1d473e8ca497ab331b0d09.md
|
|
2017-07-03 23:04:28: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:28: ["93d9d9e85e1d473e8ca497ab331b0d09","c12ec5bcfff34498b3c1fa822264e849","un","","1499119467421","1499119467421",1499119468553,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:04:28: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:28: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:28: Sync: createLocal: remote exists but local does not: (Remote 93d9d9e85e1d473e8ca497ab331b0d09, "un")
|
|
2017-07-03 23:04:28: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:28: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:28: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:28: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:28: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:28: Synchronization complete [1499119468231]:
|
|
2017-07-03 23:04:28: remotesToUpdate: -
|
|
2017-07-03 23:04:28: remotesToDelete: -
|
|
2017-07-03 23:04:28: localsToUdpate: 2
|
|
2017-07-03 23:04:28: localsToDelete: -
|
|
2017-07-03 23:04:28: createLocal: 2
|
|
2017-07-03 23:04:28: updateLocal: -
|
|
2017-07-03 23:04:28: deleteLocal: -
|
|
2017-07-03 23:04:28: createRemote: -
|
|
2017-07-03 23:04:28: updateRemote: -
|
|
2017-07-03 23:04:28: deleteRemote: -
|
|
2017-07-03 23:04:28: itemConflict: -
|
|
2017-07-03 23:04:28: noteConflict: -
|
|
2017-07-03 23:04:28: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:28: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:28: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:28: Total folders: 1
|
|
2017-07-03 23:04:28: Total notes: 1
|
|
2017-07-03 23:04:28: Total resources: 0
|
|
2017-07-03 23:04:29: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:29: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:29: UPDATE `folders` SET `parent_id`=?, `title`=?, `created_time`=?, `updated_time`=?, `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:29: ["","folder1 UPDATE CLIENT 2",1499119467292,1499119469082,1499119468305,"c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:29: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:29: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:29: Starting synchronization... [1499119469248]
|
|
2017-07-03 23:04:29: mkdir /root/.sync
|
|
2017-07-03 23:04:29: mkdir /root/.resource
|
|
2017-07-03 23:04:29: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:29: stat /root/c12ec5bcfff34498b3c1fa822264e849.md
|
|
2017-07-03 23:04:29: Sync: updateRemote: local has changes: (Local c12ec5bcfff34498b3c1fa822264e849, "folder1 UPDATE CLIENT 2"): (Remote )
|
|
2017-07-03 23:04:29: put /root/.sync/c12ec5bcfff34498b3c1fa822264e849.md_1499119469290
|
|
2017-07-03 23:04:29: setTimestamp /root/.sync/c12ec5bcfff34498b3c1fa822264e849.md_1499119469290
|
|
2017-07-03 23:04:29: move /root/.sync/c12ec5bcfff34498b3c1fa822264e849.md_1499119469290 => /root/c12ec5bcfff34498b3c1fa822264e849.md
|
|
2017-07-03 23:04:29: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:29: [1499119469317,"c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:29: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:29: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:29: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:29: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:29: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:29: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:29: list /root
|
|
2017-07-03 23:04:29: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:29: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:29: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:29: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:29: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:29: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:29: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:29: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:29: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:29: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:29: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:29: Synchronization complete [1499119469248]:
|
|
2017-07-03 23:04:29: remotesToUpdate: 1
|
|
2017-07-03 23:04:29: remotesToDelete: -
|
|
2017-07-03 23:04:29: localsToUdpate: -
|
|
2017-07-03 23:04:29: localsToDelete: -
|
|
2017-07-03 23:04:29: createLocal: -
|
|
2017-07-03 23:04:29: updateLocal: -
|
|
2017-07-03 23:04:29: deleteLocal: -
|
|
2017-07-03 23:04:29: createRemote: -
|
|
2017-07-03 23:04:29: updateRemote: 1
|
|
2017-07-03 23:04:29: deleteRemote: -
|
|
2017-07-03 23:04:29: itemConflict: -
|
|
2017-07-03 23:04:29: noteConflict: -
|
|
2017-07-03 23:04:29: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:29: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:29: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:29: Total folders: 1
|
|
2017-07-03 23:04:29: Total notes: 1
|
|
2017-07-03 23:04:29: Total resources: 0
|
|
2017-07-03 23:04:29: SELECT * FROM settings
|
|
2017-07-03 23:04:29: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:29: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:29: UPDATE `folders` SET `parent_id`=?, `title`=?, `created_time`=?, `updated_time`=?, `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:29: ["","folder1 UPDATE CLIENT 1",1499119467292,1499119469973,1499119467633,"c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:30: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:30: Starting synchronization... [1499119470275]
|
|
2017-07-03 23:04:30: mkdir /root/.sync
|
|
2017-07-03 23:04:30: mkdir /root/.resource
|
|
2017-07-03 23:04:30: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:30: stat /root/c12ec5bcfff34498b3c1fa822264e849.md
|
|
2017-07-03 23:04:30: Sync: itemConflict: both remote and local have changes: (Local c12ec5bcfff34498b3c1fa822264e849, "folder1 UPDATE CLIENT 1"): (Remote )
|
|
2017-07-03 23:04:30: get /root/c12ec5bcfff34498b3c1fa822264e849.md
|
|
2017-07-03 23:04:30: UPDATE `folders` SET `title`=?, `created_time`=?, `updated_time`=?, `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:30: ["folder1 UPDATE CLIENT 2","1499119467292","1499119469082",1499119470325,"c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:30: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:30: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:30: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:30: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:30: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:30: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:30: list /root
|
|
2017-07-03 23:04:30: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:30: ["93d9d9e85e1d473e8ca497ab331b0d09"]
|
|
2017-07-03 23:04:30: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:30: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:30: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:30: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:30: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:30: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:30: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:30: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:30: Synchronization complete [1499119470275]:
|
|
2017-07-03 23:04:30: remotesToUpdate: 1
|
|
2017-07-03 23:04:30: remotesToDelete: -
|
|
2017-07-03 23:04:30: localsToUdpate: -
|
|
2017-07-03 23:04:30: localsToDelete: -
|
|
2017-07-03 23:04:30: createLocal: -
|
|
2017-07-03 23:04:30: updateLocal: -
|
|
2017-07-03 23:04:30: deleteLocal: -
|
|
2017-07-03 23:04:30: createRemote: -
|
|
2017-07-03 23:04:30: updateRemote: -
|
|
2017-07-03 23:04:30: deleteRemote: -
|
|
2017-07-03 23:04:30: itemConflict: 1
|
|
2017-07-03 23:04:30: noteConflict: -
|
|
2017-07-03 23:04:30: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:30: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:30: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:30: Total folders: 1
|
|
2017-07-03 23:04:30: Total notes: 1
|
|
2017-07-03 23:04:30: Total resources: 0
|
|
2017-07-03 23:04:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:30: ["c12ec5bcfff34498b3c1fa822264e849"]
|
|
2017-07-03 23:04:30: BEGIN TRANSACTION
|
|
2017-07-03 23:04:30: DELETE FROM notes
|
|
2017-07-03 23:04:30: DELETE FROM folders
|
|
2017-07-03 23:04:30: DELETE FROM resources
|
|
2017-07-03 23:04:30: DELETE FROM tags
|
|
2017-07-03 23:04:30: DELETE FROM note_tags
|
|
2017-07-03 23:04:30: COMMIT
|
|
2017-07-03 23:04:30: SELECT * FROM settings
|
|
2017-07-03 23:04:30: BEGIN TRANSACTION
|
|
2017-07-03 23:04:30: DELETE FROM notes
|
|
2017-07-03 23:04:30: DELETE FROM folders
|
|
2017-07-03 23:04:30: DELETE FROM resources
|
|
2017-07-03 23:04:30: DELETE FROM tags
|
|
2017-07-03 23:04:30: DELETE FROM note_tags
|
|
2017-07-03 23:04:30: COMMIT
|
|
2017-07-03 23:04:31: SELECT * FROM settings
|
|
2017-07-03 23:04:31: SELECT * FROM settings
|
|
2017-07-03 23:04:31: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:31: ["folder1",1499119471426,"2497c6fea83a456cbc2b33d416994e11",1499119471426]
|
|
2017-07-03 23:04:31: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:31: ["2497c6fea83a456cbc2b33d416994e11","un","joplin","SET_ME",1499119471764,"23c6be2b13d243ebbaff14ba8746e73b",1499119471764]
|
|
2017-07-03 23:04:31: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:31: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:31: Starting synchronization... [1499119471985]
|
|
2017-07-03 23:04:31: mkdir /root/.sync
|
|
2017-07-03 23:04:32: mkdir /root/.resource
|
|
2017-07-03 23:04:32: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: stat /root/2497c6fea83a456cbc2b33d416994e11.md
|
|
2017-07-03 23:04:32: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 2497c6fea83a456cbc2b33d416994e11, "folder1")
|
|
2017-07-03 23:04:32: put /root/.sync/2497c6fea83a456cbc2b33d416994e11.md_1499119472034
|
|
2017-07-03 23:04:32: setTimestamp /root/.sync/2497c6fea83a456cbc2b33d416994e11.md_1499119472034
|
|
2017-07-03 23:04:32: move /root/.sync/2497c6fea83a456cbc2b33d416994e11.md_1499119472034 => /root/2497c6fea83a456cbc2b33d416994e11.md
|
|
2017-07-03 23:04:32: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:32: [1499119472054,"2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:32: stat /root/23c6be2b13d243ebbaff14ba8746e73b.md
|
|
2017-07-03 23:04:32: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 23c6be2b13d243ebbaff14ba8746e73b, "un")
|
|
2017-07-03 23:04:32: put /root/.sync/23c6be2b13d243ebbaff14ba8746e73b.md_1499119472239
|
|
2017-07-03 23:04:32: setTimestamp /root/.sync/23c6be2b13d243ebbaff14ba8746e73b.md_1499119472239
|
|
2017-07-03 23:04:32: move /root/.sync/23c6be2b13d243ebbaff14ba8746e73b.md_1499119472239 => /root/23c6be2b13d243ebbaff14ba8746e73b.md
|
|
2017-07-03 23:04:32: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:32: [1499119472252,"23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:32: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:32: list /root
|
|
2017-07-03 23:04:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:32: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:32: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:32: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:32: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:32: Synchronization complete [1499119471985]:
|
|
2017-07-03 23:04:32: remotesToUpdate: 2
|
|
2017-07-03 23:04:32: remotesToDelete: -
|
|
2017-07-03 23:04:32: localsToUdpate: -
|
|
2017-07-03 23:04:32: localsToDelete: -
|
|
2017-07-03 23:04:32: createLocal: -
|
|
2017-07-03 23:04:32: updateLocal: -
|
|
2017-07-03 23:04:32: deleteLocal: -
|
|
2017-07-03 23:04:32: createRemote: 2
|
|
2017-07-03 23:04:32: updateRemote: -
|
|
2017-07-03 23:04:32: deleteRemote: -
|
|
2017-07-03 23:04:32: itemConflict: -
|
|
2017-07-03 23:04:32: noteConflict: -
|
|
2017-07-03 23:04:32: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:32: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:32: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:32: Total folders: 1
|
|
2017-07-03 23:04:32: Total notes: 1
|
|
2017-07-03 23:04:32: Total resources: 0
|
|
2017-07-03 23:04:32: SELECT * FROM settings
|
|
2017-07-03 23:04:32: Starting synchronization... [1499119472826]
|
|
2017-07-03 23:04:32: mkdir /root/.sync
|
|
2017-07-03 23:04:32: mkdir /root/.resource
|
|
2017-07-03 23:04:32: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:32: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:32: list /root
|
|
2017-07-03 23:04:32: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:32: get /root/2497c6fea83a456cbc2b33d416994e11.md
|
|
2017-07-03 23:04:32: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:32: ["2497c6fea83a456cbc2b33d416994e11","folder1","1499119471426","1499119471426",1499119472967]
|
|
2017-07-03 23:04:33: Sync: createLocal: remote exists but local does not: (Remote 2497c6fea83a456cbc2b33d416994e11, "folder1")
|
|
2017-07-03 23:04:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:33: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:33: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:33: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:33: get /root/23c6be2b13d243ebbaff14ba8746e73b.md
|
|
2017-07-03 23:04:33: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b","2497c6fea83a456cbc2b33d416994e11","un","","1499119471764","1499119471764",1499119473212,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:04:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:33: Sync: createLocal: remote exists but local does not: (Remote 23c6be2b13d243ebbaff14ba8746e73b, "un")
|
|
2017-07-03 23:04:33: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:33: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:33: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:33: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:33: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:33: Synchronization complete [1499119472826]:
|
|
2017-07-03 23:04:33: remotesToUpdate: -
|
|
2017-07-03 23:04:33: remotesToDelete: -
|
|
2017-07-03 23:04:33: localsToUdpate: 2
|
|
2017-07-03 23:04:33: localsToDelete: -
|
|
2017-07-03 23:04:33: createLocal: 2
|
|
2017-07-03 23:04:33: updateLocal: -
|
|
2017-07-03 23:04:33: deleteLocal: -
|
|
2017-07-03 23:04:33: createRemote: -
|
|
2017-07-03 23:04:33: updateRemote: -
|
|
2017-07-03 23:04:33: deleteRemote: -
|
|
2017-07-03 23:04:33: itemConflict: -
|
|
2017-07-03 23:04:33: noteConflict: -
|
|
2017-07-03 23:04:33: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:33: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:33: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:33: Total folders: 1
|
|
2017-07-03 23:04:33: Total notes: 1
|
|
2017-07-03 23:04:33: Total resources: 0
|
|
2017-07-03 23:04:33: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:04:33: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:33: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:33: [1,"23c6be2b13d243ebbaff14ba8746e73b",1499119473911]
|
|
2017-07-03 23:04:34: Starting synchronization... [1499119474050]
|
|
2017-07-03 23:04:34: mkdir /root/.sync
|
|
2017-07-03 23:04:34: mkdir /root/.resource
|
|
2017-07-03 23:04:34: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:34: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:34: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:34: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:34: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:34: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:34: Sync: deleteRemote: local has been deleted: (Remote 23c6be2b13d243ebbaff14ba8746e73b)
|
|
2017-07-03 23:04:34: delete /root/23c6be2b13d243ebbaff14ba8746e73b.md
|
|
2017-07-03 23:04:34: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:34: ["23c6be2b13d243ebbaff14ba8746e73b"]
|
|
2017-07-03 23:04:34: list /root
|
|
2017-07-03 23:04:34: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:34: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:34: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:34: ["2497c6fea83a456cbc2b33d416994e11"]
|
|
2017-07-03 23:04:34: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:34: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:34: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:34: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:34: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:34: Synchronization complete [1499119474050]:
|
|
2017-07-03 23:04:34: remotesToUpdate: -
|
|
2017-07-03 23:04:34: remotesToDelete: 1
|
|
2017-07-03 23:04:34: localsToUdpate: -
|
|
2017-07-03 23:04:34: localsToDelete: -
|
|
2017-07-03 23:04:34: createLocal: -
|
|
2017-07-03 23:04:34: updateLocal: -
|
|
2017-07-03 23:04:34: deleteLocal: -
|
|
2017-07-03 23:04:34: createRemote: -
|
|
2017-07-03 23:04:34: updateRemote: -
|
|
2017-07-03 23:04:34: deleteRemote: 1
|
|
2017-07-03 23:04:34: itemConflict: -
|
|
2017-07-03 23:04:34: noteConflict: -
|
|
2017-07-03 23:04:34: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:34: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:34: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:34: Total folders: 1
|
|
2017-07-03 23:04:34: Total notes: 0
|
|
2017-07-03 23:04:34: Total resources: 0
|
|
2017-07-03 23:04:34: list /root
|
|
2017-07-03 23:04:34: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:34: BEGIN TRANSACTION
|
|
2017-07-03 23:04:34: DELETE FROM notes
|
|
2017-07-03 23:04:34: DELETE FROM folders
|
|
2017-07-03 23:04:34: DELETE FROM resources
|
|
2017-07-03 23:04:34: DELETE FROM tags
|
|
2017-07-03 23:04:34: DELETE FROM note_tags
|
|
2017-07-03 23:04:34: COMMIT
|
|
2017-07-03 23:04:34: SELECT * FROM settings
|
|
2017-07-03 23:04:34: BEGIN TRANSACTION
|
|
2017-07-03 23:04:34: DELETE FROM notes
|
|
2017-07-03 23:04:34: DELETE FROM folders
|
|
2017-07-03 23:04:34: DELETE FROM resources
|
|
2017-07-03 23:04:34: DELETE FROM tags
|
|
2017-07-03 23:04:34: DELETE FROM note_tags
|
|
2017-07-03 23:04:34: COMMIT
|
|
2017-07-03 23:04:34: SELECT * FROM settings
|
|
2017-07-03 23:04:35: SELECT * FROM settings
|
|
2017-07-03 23:04:35: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:35: ["folder1",1499119475147,"5c9d2141486b4ff1aae4bbaaa48749c8",1499119475147]
|
|
2017-07-03 23:04:35: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:35: ["5c9d2141486b4ff1aae4bbaaa48749c8","un","joplin","SET_ME",1499119475305,"8e9474a9e17d4af48c9f456c0fbcc2e9",1499119475305]
|
|
2017-07-03 23:04:35: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:35: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:35: Starting synchronization... [1499119475551]
|
|
2017-07-03 23:04:35: mkdir /root/.sync
|
|
2017-07-03 23:04:35: mkdir /root/.resource
|
|
2017-07-03 23:04:35: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:35: stat /root/5c9d2141486b4ff1aae4bbaaa48749c8.md
|
|
2017-07-03 23:04:35: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 5c9d2141486b4ff1aae4bbaaa48749c8, "folder1")
|
|
2017-07-03 23:04:35: put /root/.sync/5c9d2141486b4ff1aae4bbaaa48749c8.md_1499119475630
|
|
2017-07-03 23:04:35: setTimestamp /root/.sync/5c9d2141486b4ff1aae4bbaaa48749c8.md_1499119475630
|
|
2017-07-03 23:04:35: move /root/.sync/5c9d2141486b4ff1aae4bbaaa48749c8.md_1499119475630 => /root/5c9d2141486b4ff1aae4bbaaa48749c8.md
|
|
2017-07-03 23:04:35: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:35: [1499119475647,"5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:35: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:35: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:35: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:35: stat /root/8e9474a9e17d4af48c9f456c0fbcc2e9.md
|
|
2017-07-03 23:04:35: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 8e9474a9e17d4af48c9f456c0fbcc2e9, "un")
|
|
2017-07-03 23:04:35: put /root/.sync/8e9474a9e17d4af48c9f456c0fbcc2e9.md_1499119475841
|
|
2017-07-03 23:04:35: setTimestamp /root/.sync/8e9474a9e17d4af48c9f456c0fbcc2e9.md_1499119475841
|
|
2017-07-03 23:04:35: move /root/.sync/8e9474a9e17d4af48c9f456c0fbcc2e9.md_1499119475841 => /root/8e9474a9e17d4af48c9f456c0fbcc2e9.md
|
|
2017-07-03 23:04:35: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:35: [1499119475854,"8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:36: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:36: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:36: list /root
|
|
2017-07-03 23:04:36: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:36: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:36: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:36: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:36: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:36: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:36: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:36: Synchronization complete [1499119475551]:
|
|
2017-07-03 23:04:36: remotesToUpdate: 2
|
|
2017-07-03 23:04:36: remotesToDelete: -
|
|
2017-07-03 23:04:36: localsToUdpate: -
|
|
2017-07-03 23:04:36: localsToDelete: -
|
|
2017-07-03 23:04:36: createLocal: -
|
|
2017-07-03 23:04:36: updateLocal: -
|
|
2017-07-03 23:04:36: deleteLocal: -
|
|
2017-07-03 23:04:36: createRemote: 2
|
|
2017-07-03 23:04:36: updateRemote: -
|
|
2017-07-03 23:04:36: deleteRemote: -
|
|
2017-07-03 23:04:36: itemConflict: -
|
|
2017-07-03 23:04:36: noteConflict: -
|
|
2017-07-03 23:04:36: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:36: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:36: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:36: Total folders: 1
|
|
2017-07-03 23:04:36: Total notes: 1
|
|
2017-07-03 23:04:36: Total resources: 0
|
|
2017-07-03 23:04:36: SELECT * FROM settings
|
|
2017-07-03 23:04:36: Starting synchronization... [1499119476393]
|
|
2017-07-03 23:04:36: mkdir /root/.sync
|
|
2017-07-03 23:04:36: mkdir /root/.resource
|
|
2017-07-03 23:04:36: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:36: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:36: list /root
|
|
2017-07-03 23:04:36: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:36: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:36: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:36: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:36: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:36: get /root/5c9d2141486b4ff1aae4bbaaa48749c8.md
|
|
2017-07-03 23:04:36: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:36: ["5c9d2141486b4ff1aae4bbaaa48749c8","folder1","1499119475147","1499119475147",1499119476517]
|
|
2017-07-03 23:04:36: Sync: createLocal: remote exists but local does not: (Remote 5c9d2141486b4ff1aae4bbaaa48749c8, "folder1")
|
|
2017-07-03 23:04:36: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:36: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:36: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:36: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:36: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:36: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:36: get /root/8e9474a9e17d4af48c9f456c0fbcc2e9.md
|
|
2017-07-03 23:04:36: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:36: ["8e9474a9e17d4af48c9f456c0fbcc2e9","5c9d2141486b4ff1aae4bbaaa48749c8","un","","1499119475305","1499119475305",1499119476901,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:04:37: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:37: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:37: Sync: createLocal: remote exists but local does not: (Remote 8e9474a9e17d4af48c9f456c0fbcc2e9, "un")
|
|
2017-07-03 23:04:37: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:37: Synchronization complete [1499119476393]:
|
|
2017-07-03 23:04:37: remotesToUpdate: -
|
|
2017-07-03 23:04:37: remotesToDelete: -
|
|
2017-07-03 23:04:37: localsToUdpate: 2
|
|
2017-07-03 23:04:37: localsToDelete: -
|
|
2017-07-03 23:04:37: createLocal: 2
|
|
2017-07-03 23:04:37: updateLocal: -
|
|
2017-07-03 23:04:37: deleteLocal: -
|
|
2017-07-03 23:04:37: createRemote: -
|
|
2017-07-03 23:04:37: updateRemote: -
|
|
2017-07-03 23:04:37: deleteRemote: -
|
|
2017-07-03 23:04:37: itemConflict: -
|
|
2017-07-03 23:04:37: noteConflict: -
|
|
2017-07-03 23:04:37: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:37: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:37: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:37: Total folders: 1
|
|
2017-07-03 23:04:37: Total notes: 1
|
|
2017-07-03 23:04:37: Total resources: 0
|
|
2017-07-03 23:04:37: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:04:37: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:37: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:37: [1,"8e9474a9e17d4af48c9f456c0fbcc2e9",1499119477520]
|
|
2017-07-03 23:04:37: Starting synchronization... [1499119477646]
|
|
2017-07-03 23:04:37: mkdir /root/.sync
|
|
2017-07-03 23:04:37: mkdir /root/.resource
|
|
2017-07-03 23:04:37: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:37: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:37: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:37: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:37: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:37: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:37: Sync: deleteRemote: local has been deleted: (Remote 8e9474a9e17d4af48c9f456c0fbcc2e9)
|
|
2017-07-03 23:04:37: delete /root/8e9474a9e17d4af48c9f456c0fbcc2e9.md
|
|
2017-07-03 23:04:37: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:37: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:37: list /root
|
|
2017-07-03 23:04:37: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:37: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:37: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:37: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:37: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:37: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:37: Synchronization complete [1499119477646]:
|
|
2017-07-03 23:04:37: remotesToUpdate: -
|
|
2017-07-03 23:04:37: remotesToDelete: 1
|
|
2017-07-03 23:04:37: localsToUdpate: -
|
|
2017-07-03 23:04:37: localsToDelete: -
|
|
2017-07-03 23:04:37: createLocal: -
|
|
2017-07-03 23:04:37: updateLocal: -
|
|
2017-07-03 23:04:37: deleteLocal: -
|
|
2017-07-03 23:04:37: createRemote: -
|
|
2017-07-03 23:04:37: updateRemote: -
|
|
2017-07-03 23:04:37: deleteRemote: 1
|
|
2017-07-03 23:04:37: itemConflict: -
|
|
2017-07-03 23:04:37: noteConflict: -
|
|
2017-07-03 23:04:37: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:37: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:38: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:38: Total folders: 1
|
|
2017-07-03 23:04:38: Total notes: 0
|
|
2017-07-03 23:04:38: Total resources: 0
|
|
2017-07-03 23:04:38: SELECT * FROM settings
|
|
2017-07-03 23:04:38: Starting synchronization... [1499119478232]
|
|
2017-07-03 23:04:38: mkdir /root/.sync
|
|
2017-07-03 23:04:38: mkdir /root/.resource
|
|
2017-07-03 23:04:38: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:38: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:38: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:38: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:38: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:38: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:38: list /root
|
|
2017-07-03 23:04:38: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:38: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:38: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:38: ["5c9d2141486b4ff1aae4bbaaa48749c8"]
|
|
2017-07-03 23:04:38: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:38: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:38: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:38: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:38: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:38: Sync: deleteLocal: remote has been deleted: (Local 8e9474a9e17d4af48c9f456c0fbcc2e9)
|
|
2017-07-03 23:04:38: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:04:38: ["8e9474a9e17d4af48c9f456c0fbcc2e9"]
|
|
2017-07-03 23:04:38: Synchronization complete [1499119478232]:
|
|
2017-07-03 23:04:38: remotesToUpdate: -
|
|
2017-07-03 23:04:38: remotesToDelete: -
|
|
2017-07-03 23:04:38: localsToUdpate: -
|
|
2017-07-03 23:04:38: localsToDelete: 1
|
|
2017-07-03 23:04:38: createLocal: -
|
|
2017-07-03 23:04:38: updateLocal: -
|
|
2017-07-03 23:04:38: deleteLocal: 1
|
|
2017-07-03 23:04:38: createRemote: -
|
|
2017-07-03 23:04:38: updateRemote: -
|
|
2017-07-03 23:04:38: deleteRemote: -
|
|
2017-07-03 23:04:38: itemConflict: -
|
|
2017-07-03 23:04:38: noteConflict: -
|
|
2017-07-03 23:04:38: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:38: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:38: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:38: Total folders: 1
|
|
2017-07-03 23:04:38: Total notes: 0
|
|
2017-07-03 23:04:38: Total resources: 0
|
|
2017-07-03 23:04:38: SELECT * FROM `folders`
|
|
2017-07-03 23:04:38: SELECT * FROM `notes`
|
|
2017-07-03 23:04:38: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:38: BEGIN TRANSACTION
|
|
2017-07-03 23:04:38: DELETE FROM notes
|
|
2017-07-03 23:04:38: DELETE FROM folders
|
|
2017-07-03 23:04:38: DELETE FROM resources
|
|
2017-07-03 23:04:38: DELETE FROM tags
|
|
2017-07-03 23:04:38: DELETE FROM note_tags
|
|
2017-07-03 23:04:38: COMMIT
|
|
2017-07-03 23:04:38: SELECT * FROM settings
|
|
2017-07-03 23:04:39: BEGIN TRANSACTION
|
|
2017-07-03 23:04:39: DELETE FROM notes
|
|
2017-07-03 23:04:39: DELETE FROM folders
|
|
2017-07-03 23:04:39: DELETE FROM resources
|
|
2017-07-03 23:04:39: DELETE FROM tags
|
|
2017-07-03 23:04:39: DELETE FROM note_tags
|
|
2017-07-03 23:04:39: COMMIT
|
|
2017-07-03 23:04:39: SELECT * FROM settings
|
|
2017-07-03 23:04:39: SELECT * FROM settings
|
|
2017-07-03 23:04:39: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:39: ["folder1",1499119479573,"c1aad753aff94f19959b1149a50e074c",1499119479573]
|
|
2017-07-03 23:04:39: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:39: ["folder2",1499119479777,"807e4a3bcfca439ea877608ffd171183",1499119479777]
|
|
2017-07-03 23:04:39: Starting synchronization... [1499119479947]
|
|
2017-07-03 23:04:39: mkdir /root/.sync
|
|
2017-07-03 23:04:39: mkdir /root/.resource
|
|
2017-07-03 23:04:39: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:39: stat /root/c1aad753aff94f19959b1149a50e074c.md
|
|
2017-07-03 23:04:39: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c1aad753aff94f19959b1149a50e074c, "folder1")
|
|
2017-07-03 23:04:39: put /root/.sync/c1aad753aff94f19959b1149a50e074c.md_1499119479997
|
|
2017-07-03 23:04:40: setTimestamp /root/.sync/c1aad753aff94f19959b1149a50e074c.md_1499119479997
|
|
2017-07-03 23:04:40: move /root/.sync/c1aad753aff94f19959b1149a50e074c.md_1499119479997 => /root/c1aad753aff94f19959b1149a50e074c.md
|
|
2017-07-03 23:04:40: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:40: [1499119480012,"c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: stat /root/807e4a3bcfca439ea877608ffd171183.md
|
|
2017-07-03 23:04:40: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 807e4a3bcfca439ea877608ffd171183, "folder2")
|
|
2017-07-03 23:04:40: put /root/.sync/807e4a3bcfca439ea877608ffd171183.md_1499119480277
|
|
2017-07-03 23:04:40: setTimestamp /root/.sync/807e4a3bcfca439ea877608ffd171183.md_1499119480277
|
|
2017-07-03 23:04:40: move /root/.sync/807e4a3bcfca439ea877608ffd171183.md_1499119480277 => /root/807e4a3bcfca439ea877608ffd171183.md
|
|
2017-07-03 23:04:40: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:40: [1499119480311,"807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:40: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:40: list /root
|
|
2017-07-03 23:04:40: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:40: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:40: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:40: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:40: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:40: Synchronization complete [1499119479947]:
|
|
2017-07-03 23:04:40: remotesToUpdate: 2
|
|
2017-07-03 23:04:40: remotesToDelete: -
|
|
2017-07-03 23:04:40: localsToUdpate: -
|
|
2017-07-03 23:04:40: localsToDelete: -
|
|
2017-07-03 23:04:40: createLocal: -
|
|
2017-07-03 23:04:40: updateLocal: -
|
|
2017-07-03 23:04:40: deleteLocal: -
|
|
2017-07-03 23:04:40: createRemote: 2
|
|
2017-07-03 23:04:40: updateRemote: -
|
|
2017-07-03 23:04:40: deleteRemote: -
|
|
2017-07-03 23:04:40: itemConflict: -
|
|
2017-07-03 23:04:40: noteConflict: -
|
|
2017-07-03 23:04:40: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:40: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:40: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:40: Total folders: 2
|
|
2017-07-03 23:04:40: Total notes: 0
|
|
2017-07-03 23:04:40: Total resources: 0
|
|
2017-07-03 23:04:40: SELECT * FROM settings
|
|
2017-07-03 23:04:40: Starting synchronization... [1499119480786]
|
|
2017-07-03 23:04:40: mkdir /root/.sync
|
|
2017-07-03 23:04:40: mkdir /root/.resource
|
|
2017-07-03 23:04:40: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:40: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:40: list /root
|
|
2017-07-03 23:04:40: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:40: get /root/c1aad753aff94f19959b1149a50e074c.md
|
|
2017-07-03 23:04:40: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:40: ["c1aad753aff94f19959b1149a50e074c","folder1","1499119479573","1499119479573",1499119480947]
|
|
2017-07-03 23:04:41: Sync: createLocal: remote exists but local does not: (Remote c1aad753aff94f19959b1149a50e074c, "folder1")
|
|
2017-07-03 23:04:41: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: get /root/807e4a3bcfca439ea877608ffd171183.md
|
|
2017-07-03 23:04:41: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183","folder2","1499119479777","1499119479777",1499119481294]
|
|
2017-07-03 23:04:41: Sync: createLocal: remote exists but local does not: (Remote 807e4a3bcfca439ea877608ffd171183, "folder2")
|
|
2017-07-03 23:04:41: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:41: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:41: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:41: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:41: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:41: Synchronization complete [1499119480786]:
|
|
2017-07-03 23:04:41: remotesToUpdate: -
|
|
2017-07-03 23:04:41: remotesToDelete: -
|
|
2017-07-03 23:04:41: localsToUdpate: 2
|
|
2017-07-03 23:04:41: localsToDelete: -
|
|
2017-07-03 23:04:41: createLocal: 2
|
|
2017-07-03 23:04:41: updateLocal: -
|
|
2017-07-03 23:04:41: deleteLocal: -
|
|
2017-07-03 23:04:41: createRemote: -
|
|
2017-07-03 23:04:41: updateRemote: -
|
|
2017-07-03 23:04:41: deleteRemote: -
|
|
2017-07-03 23:04:41: itemConflict: -
|
|
2017-07-03 23:04:41: noteConflict: -
|
|
2017-07-03 23:04:41: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:41: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:41: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:41: Total folders: 2
|
|
2017-07-03 23:04:41: Total notes: 0
|
|
2017-07-03 23:04:41: Total resources: 0
|
|
2017-07-03 23:04:41: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:04:41: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:41: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:41: [2,"807e4a3bcfca439ea877608ffd171183",1499119481971]
|
|
2017-07-03 23:04:42: Starting synchronization... [1499119482118]
|
|
2017-07-03 23:04:42: mkdir /root/.sync
|
|
2017-07-03 23:04:42: mkdir /root/.resource
|
|
2017-07-03 23:04:42: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:42: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:42: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:42: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:42: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:42: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:42: Sync: deleteRemote: local has been deleted: (Remote 807e4a3bcfca439ea877608ffd171183)
|
|
2017-07-03 23:04:42: delete /root/807e4a3bcfca439ea877608ffd171183.md
|
|
2017-07-03 23:04:42: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:42: ["807e4a3bcfca439ea877608ffd171183"]
|
|
2017-07-03 23:04:42: list /root
|
|
2017-07-03 23:04:42: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:42: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:42: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:42: ["c1aad753aff94f19959b1149a50e074c"]
|
|
2017-07-03 23:04:42: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:42: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:42: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:42: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:42: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:42: Synchronization complete [1499119482118]:
|
|
2017-07-03 23:04:42: remotesToUpdate: -
|
|
2017-07-03 23:04:42: remotesToDelete: 1
|
|
2017-07-03 23:04:42: localsToUdpate: -
|
|
2017-07-03 23:04:42: localsToDelete: -
|
|
2017-07-03 23:04:42: createLocal: -
|
|
2017-07-03 23:04:42: updateLocal: -
|
|
2017-07-03 23:04:42: deleteLocal: -
|
|
2017-07-03 23:04:42: createRemote: -
|
|
2017-07-03 23:04:42: updateRemote: -
|
|
2017-07-03 23:04:42: deleteRemote: 1
|
|
2017-07-03 23:04:42: itemConflict: -
|
|
2017-07-03 23:04:42: noteConflict: -
|
|
2017-07-03 23:04:42: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:42: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:42: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:42: Total folders: 1
|
|
2017-07-03 23:04:42: Total notes: 0
|
|
2017-07-03 23:04:42: Total resources: 0
|
|
2017-07-03 23:04:42: SELECT * FROM `folders`
|
|
2017-07-03 23:04:42: SELECT * FROM `notes`
|
|
2017-07-03 23:04:42: list /root
|
|
2017-07-03 23:04:42: stat /root/c1aad753aff94f19959b1149a50e074c.md
|
|
2017-07-03 23:04:42: get /root/c1aad753aff94f19959b1149a50e074c.md
|
|
2017-07-03 23:04:42: BEGIN TRANSACTION
|
|
2017-07-03 23:04:42: DELETE FROM notes
|
|
2017-07-03 23:04:42: DELETE FROM folders
|
|
2017-07-03 23:04:42: DELETE FROM resources
|
|
2017-07-03 23:04:42: DELETE FROM tags
|
|
2017-07-03 23:04:42: DELETE FROM note_tags
|
|
2017-07-03 23:04:42: COMMIT
|
|
2017-07-03 23:04:42: SELECT * FROM settings
|
|
2017-07-03 23:04:42: BEGIN TRANSACTION
|
|
2017-07-03 23:04:42: DELETE FROM notes
|
|
2017-07-03 23:04:42: DELETE FROM folders
|
|
2017-07-03 23:04:42: DELETE FROM resources
|
|
2017-07-03 23:04:42: DELETE FROM tags
|
|
2017-07-03 23:04:42: DELETE FROM note_tags
|
|
2017-07-03 23:04:42: COMMIT
|
|
2017-07-03 23:04:43: SELECT * FROM settings
|
|
2017-07-03 23:04:43: SELECT * FROM settings
|
|
2017-07-03 23:04:43: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:43: ["folder1",1499119483244,"e5e9e27dad6b4803ad25260b7ed67e78",1499119483244]
|
|
2017-07-03 23:04:43: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:43: ["folder2",1499119483413,"d838a25b1633446e862f712f71c6b3a5",1499119483414]
|
|
2017-07-03 23:04:43: Starting synchronization... [1499119483572]
|
|
2017-07-03 23:04:43: mkdir /root/.sync
|
|
2017-07-03 23:04:43: mkdir /root/.resource
|
|
2017-07-03 23:04:43: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:43: stat /root/e5e9e27dad6b4803ad25260b7ed67e78.md
|
|
2017-07-03 23:04:43: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e5e9e27dad6b4803ad25260b7ed67e78, "folder1")
|
|
2017-07-03 23:04:43: put /root/.sync/e5e9e27dad6b4803ad25260b7ed67e78.md_1499119483615
|
|
2017-07-03 23:04:43: setTimestamp /root/.sync/e5e9e27dad6b4803ad25260b7ed67e78.md_1499119483615
|
|
2017-07-03 23:04:43: move /root/.sync/e5e9e27dad6b4803ad25260b7ed67e78.md_1499119483615 => /root/e5e9e27dad6b4803ad25260b7ed67e78.md
|
|
2017-07-03 23:04:43: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:43: [1499119483624,"e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:43: stat /root/d838a25b1633446e862f712f71c6b3a5.md
|
|
2017-07-03 23:04:43: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local d838a25b1633446e862f712f71c6b3a5, "folder2")
|
|
2017-07-03 23:04:43: put /root/.sync/d838a25b1633446e862f712f71c6b3a5.md_1499119483851
|
|
2017-07-03 23:04:43: setTimestamp /root/.sync/d838a25b1633446e862f712f71c6b3a5.md_1499119483851
|
|
2017-07-03 23:04:43: move /root/.sync/d838a25b1633446e862f712f71c6b3a5.md_1499119483851 => /root/d838a25b1633446e862f712f71c6b3a5.md
|
|
2017-07-03 23:04:43: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:43: [1499119483872,"d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:44: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:44: list /root
|
|
2017-07-03 23:04:44: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:44: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:44: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:44: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:44: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:44: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:44: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:44: Synchronization complete [1499119483572]:
|
|
2017-07-03 23:04:44: remotesToUpdate: 2
|
|
2017-07-03 23:04:44: remotesToDelete: -
|
|
2017-07-03 23:04:44: localsToUdpate: -
|
|
2017-07-03 23:04:44: localsToDelete: -
|
|
2017-07-03 23:04:44: createLocal: -
|
|
2017-07-03 23:04:44: updateLocal: -
|
|
2017-07-03 23:04:44: deleteLocal: -
|
|
2017-07-03 23:04:44: createRemote: 2
|
|
2017-07-03 23:04:44: updateRemote: -
|
|
2017-07-03 23:04:44: deleteRemote: -
|
|
2017-07-03 23:04:44: itemConflict: -
|
|
2017-07-03 23:04:44: noteConflict: -
|
|
2017-07-03 23:04:44: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:44: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:44: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:44: Total folders: 2
|
|
2017-07-03 23:04:44: Total notes: 0
|
|
2017-07-03 23:04:44: Total resources: 0
|
|
2017-07-03 23:04:44: SELECT * FROM settings
|
|
2017-07-03 23:04:44: Starting synchronization... [1499119484416]
|
|
2017-07-03 23:04:44: mkdir /root/.sync
|
|
2017-07-03 23:04:44: mkdir /root/.resource
|
|
2017-07-03 23:04:44: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:44: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:44: list /root
|
|
2017-07-03 23:04:44: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:44: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:44: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:44: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:44: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:44: get /root/e5e9e27dad6b4803ad25260b7ed67e78.md
|
|
2017-07-03 23:04:44: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:44: ["e5e9e27dad6b4803ad25260b7ed67e78","folder1","1499119483244","1499119483244",1499119484552]
|
|
2017-07-03 23:04:44: Sync: createLocal: remote exists but local does not: (Remote e5e9e27dad6b4803ad25260b7ed67e78, "folder1")
|
|
2017-07-03 23:04:44: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:44: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:44: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:44: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:44: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:44: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:44: get /root/d838a25b1633446e862f712f71c6b3a5.md
|
|
2017-07-03 23:04:44: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:44: ["d838a25b1633446e862f712f71c6b3a5","folder2","1499119483414","1499119483413",1499119484794]
|
|
2017-07-03 23:04:44: Sync: createLocal: remote exists but local does not: (Remote d838a25b1633446e862f712f71c6b3a5, "folder2")
|
|
2017-07-03 23:04:44: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:44: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:44: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:44: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:45: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:45: Synchronization complete [1499119484416]:
|
|
2017-07-03 23:04:45: remotesToUpdate: -
|
|
2017-07-03 23:04:45: remotesToDelete: -
|
|
2017-07-03 23:04:45: localsToUdpate: 2
|
|
2017-07-03 23:04:45: localsToDelete: -
|
|
2017-07-03 23:04:45: createLocal: 2
|
|
2017-07-03 23:04:45: updateLocal: -
|
|
2017-07-03 23:04:45: deleteLocal: -
|
|
2017-07-03 23:04:45: createRemote: -
|
|
2017-07-03 23:04:45: updateRemote: -
|
|
2017-07-03 23:04:45: deleteRemote: -
|
|
2017-07-03 23:04:45: itemConflict: -
|
|
2017-07-03 23:04:45: noteConflict: -
|
|
2017-07-03 23:04:45: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:45: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:45: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:45: Total folders: 2
|
|
2017-07-03 23:04:45: Total notes: 0
|
|
2017-07-03 23:04:45: Total resources: 0
|
|
2017-07-03 23:04:45: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:45: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:45: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:04:45: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:45: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:04:45: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:45: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:45: [2,"d838a25b1633446e862f712f71c6b3a5",1499119485379]
|
|
2017-07-03 23:04:45: Starting synchronization... [1499119485509]
|
|
2017-07-03 23:04:45: mkdir /root/.sync
|
|
2017-07-03 23:04:45: mkdir /root/.resource
|
|
2017-07-03 23:04:45: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:45: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:45: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:45: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:45: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:45: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:45: Sync: deleteRemote: local has been deleted: (Remote d838a25b1633446e862f712f71c6b3a5)
|
|
2017-07-03 23:04:45: delete /root/d838a25b1633446e862f712f71c6b3a5.md
|
|
2017-07-03 23:04:45: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:45: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:45: list /root
|
|
2017-07-03 23:04:45: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:45: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:45: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:45: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:45: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:45: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:45: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:45: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:45: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:45: Synchronization complete [1499119485509]:
|
|
2017-07-03 23:04:45: remotesToUpdate: -
|
|
2017-07-03 23:04:45: remotesToDelete: 1
|
|
2017-07-03 23:04:45: localsToUdpate: -
|
|
2017-07-03 23:04:45: localsToDelete: -
|
|
2017-07-03 23:04:45: createLocal: -
|
|
2017-07-03 23:04:45: updateLocal: -
|
|
2017-07-03 23:04:45: deleteLocal: -
|
|
2017-07-03 23:04:45: createRemote: -
|
|
2017-07-03 23:04:45: updateRemote: -
|
|
2017-07-03 23:04:45: deleteRemote: 1
|
|
2017-07-03 23:04:45: itemConflict: -
|
|
2017-07-03 23:04:45: noteConflict: -
|
|
2017-07-03 23:04:45: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:45: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:45: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:45: Total folders: 1
|
|
2017-07-03 23:04:45: Total notes: 0
|
|
2017-07-03 23:04:45: Total resources: 0
|
|
2017-07-03 23:04:46: SELECT * FROM settings
|
|
2017-07-03 23:04:46: Starting synchronization... [1499119486149]
|
|
2017-07-03 23:04:46: mkdir /root/.sync
|
|
2017-07-03 23:04:46: mkdir /root/.resource
|
|
2017-07-03 23:04:46: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:46: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:46: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:46: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:46: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:46: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:46: list /root
|
|
2017-07-03 23:04:46: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:46: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:46: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:46: ["e5e9e27dad6b4803ad25260b7ed67e78"]
|
|
2017-07-03 23:04:46: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:46: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:46: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:46: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:46: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:46: Sync: deleteLocal: remote has been deleted: (Local d838a25b1633446e862f712f71c6b3a5)
|
|
2017-07-03 23:04:46: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:46: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:46: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:04:46: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:46: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:04:46: ["d838a25b1633446e862f712f71c6b3a5"]
|
|
2017-07-03 23:04:46: Synchronization complete [1499119486149]:
|
|
2017-07-03 23:04:46: remotesToUpdate: -
|
|
2017-07-03 23:04:46: remotesToDelete: -
|
|
2017-07-03 23:04:46: localsToUdpate: -
|
|
2017-07-03 23:04:46: localsToDelete: 1
|
|
2017-07-03 23:04:46: createLocal: -
|
|
2017-07-03 23:04:46: updateLocal: -
|
|
2017-07-03 23:04:46: deleteLocal: 1
|
|
2017-07-03 23:04:46: createRemote: -
|
|
2017-07-03 23:04:46: updateRemote: -
|
|
2017-07-03 23:04:46: deleteRemote: -
|
|
2017-07-03 23:04:46: itemConflict: -
|
|
2017-07-03 23:04:46: noteConflict: -
|
|
2017-07-03 23:04:46: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:46: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:46: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:46: Total folders: 1
|
|
2017-07-03 23:04:46: Total notes: 0
|
|
2017-07-03 23:04:46: Total resources: 0
|
|
2017-07-03 23:04:46: SELECT * FROM `folders`
|
|
2017-07-03 23:04:46: SELECT * FROM `notes`
|
|
2017-07-03 23:04:46: list /root
|
|
2017-07-03 23:04:46: stat /root/e5e9e27dad6b4803ad25260b7ed67e78.md
|
|
2017-07-03 23:04:46: get /root/e5e9e27dad6b4803ad25260b7ed67e78.md
|
|
2017-07-03 23:04:46: BEGIN TRANSACTION
|
|
2017-07-03 23:04:46: DELETE FROM notes
|
|
2017-07-03 23:04:46: DELETE FROM folders
|
|
2017-07-03 23:04:46: DELETE FROM resources
|
|
2017-07-03 23:04:46: DELETE FROM tags
|
|
2017-07-03 23:04:46: DELETE FROM note_tags
|
|
2017-07-03 23:04:46: COMMIT
|
|
2017-07-03 23:04:46: SELECT * FROM settings
|
|
2017-07-03 23:04:46: BEGIN TRANSACTION
|
|
2017-07-03 23:04:46: DELETE FROM notes
|
|
2017-07-03 23:04:46: DELETE FROM folders
|
|
2017-07-03 23:04:46: DELETE FROM resources
|
|
2017-07-03 23:04:46: DELETE FROM tags
|
|
2017-07-03 23:04:46: DELETE FROM note_tags
|
|
2017-07-03 23:04:46: COMMIT
|
|
2017-07-03 23:04:47: SELECT * FROM settings
|
|
2017-07-03 23:04:47: SELECT * FROM settings
|
|
2017-07-03 23:04:47: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:47: ["folder1",1499119487436,"838590ff79b941e6909e69aa21dfa3e3",1499119487436]
|
|
2017-07-03 23:04:47: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:47: ["folder2",1499119487622,"cfaef4256ae44ace8ad73e24feda40d1",1499119487622]
|
|
2017-07-03 23:04:47: Starting synchronization... [1499119487789]
|
|
2017-07-03 23:04:47: mkdir /root/.sync
|
|
2017-07-03 23:04:47: mkdir /root/.resource
|
|
2017-07-03 23:04:47: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:47: stat /root/838590ff79b941e6909e69aa21dfa3e3.md
|
|
2017-07-03 23:04:47: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 838590ff79b941e6909e69aa21dfa3e3, "folder1")
|
|
2017-07-03 23:04:47: put /root/.sync/838590ff79b941e6909e69aa21dfa3e3.md_1499119487839
|
|
2017-07-03 23:04:47: setTimestamp /root/.sync/838590ff79b941e6909e69aa21dfa3e3.md_1499119487839
|
|
2017-07-03 23:04:47: move /root/.sync/838590ff79b941e6909e69aa21dfa3e3.md_1499119487839 => /root/838590ff79b941e6909e69aa21dfa3e3.md
|
|
2017-07-03 23:04:47: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:47: [1499119487849,"838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: stat /root/cfaef4256ae44ace8ad73e24feda40d1.md
|
|
2017-07-03 23:04:48: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local cfaef4256ae44ace8ad73e24feda40d1, "folder2")
|
|
2017-07-03 23:04:48: put /root/.sync/cfaef4256ae44ace8ad73e24feda40d1.md_1499119488036
|
|
2017-07-03 23:04:48: setTimestamp /root/.sync/cfaef4256ae44ace8ad73e24feda40d1.md_1499119488036
|
|
2017-07-03 23:04:48: move /root/.sync/cfaef4256ae44ace8ad73e24feda40d1.md_1499119488036 => /root/cfaef4256ae44ace8ad73e24feda40d1.md
|
|
2017-07-03 23:04:48: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:48: [1499119488063,"cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:48: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:48: list /root
|
|
2017-07-03 23:04:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:48: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:48: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:48: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:48: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:48: Synchronization complete [1499119487789]:
|
|
2017-07-03 23:04:48: remotesToUpdate: 2
|
|
2017-07-03 23:04:48: remotesToDelete: -
|
|
2017-07-03 23:04:48: localsToUdpate: -
|
|
2017-07-03 23:04:48: localsToDelete: -
|
|
2017-07-03 23:04:48: createLocal: -
|
|
2017-07-03 23:04:48: updateLocal: -
|
|
2017-07-03 23:04:48: deleteLocal: -
|
|
2017-07-03 23:04:48: createRemote: 2
|
|
2017-07-03 23:04:48: updateRemote: -
|
|
2017-07-03 23:04:48: deleteRemote: -
|
|
2017-07-03 23:04:48: itemConflict: -
|
|
2017-07-03 23:04:48: noteConflict: -
|
|
2017-07-03 23:04:48: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:48: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:48: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:48: Total folders: 2
|
|
2017-07-03 23:04:48: Total notes: 0
|
|
2017-07-03 23:04:48: Total resources: 0
|
|
2017-07-03 23:04:48: SELECT * FROM settings
|
|
2017-07-03 23:04:48: Starting synchronization... [1499119488563]
|
|
2017-07-03 23:04:48: mkdir /root/.sync
|
|
2017-07-03 23:04:48: mkdir /root/.resource
|
|
2017-07-03 23:04:48: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:48: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:48: list /root
|
|
2017-07-03 23:04:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:48: get /root/838590ff79b941e6909e69aa21dfa3e3.md
|
|
2017-07-03 23:04:48: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:48: ["838590ff79b941e6909e69aa21dfa3e3","folder1","1499119487436","1499119487436",1499119488714]
|
|
2017-07-03 23:04:48: Sync: createLocal: remote exists but local does not: (Remote 838590ff79b941e6909e69aa21dfa3e3, "folder1")
|
|
2017-07-03 23:04:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:48: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:48: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:48: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:48: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:48: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:48: get /root/cfaef4256ae44ace8ad73e24feda40d1.md
|
|
2017-07-03 23:04:48: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:48: ["cfaef4256ae44ace8ad73e24feda40d1","folder2","1499119487622","1499119487622",1499119488969]
|
|
2017-07-03 23:04:49: Sync: createLocal: remote exists but local does not: (Remote cfaef4256ae44ace8ad73e24feda40d1, "folder2")
|
|
2017-07-03 23:04:49: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:49: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:49: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:49: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:49: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:49: Synchronization complete [1499119488563]:
|
|
2017-07-03 23:04:49: remotesToUpdate: -
|
|
2017-07-03 23:04:49: remotesToDelete: -
|
|
2017-07-03 23:04:49: localsToUdpate: 2
|
|
2017-07-03 23:04:49: localsToDelete: -
|
|
2017-07-03 23:04:49: createLocal: 2
|
|
2017-07-03 23:04:49: updateLocal: -
|
|
2017-07-03 23:04:49: deleteLocal: -
|
|
2017-07-03 23:04:49: createRemote: -
|
|
2017-07-03 23:04:49: updateRemote: -
|
|
2017-07-03 23:04:49: deleteRemote: -
|
|
2017-07-03 23:04:49: itemConflict: -
|
|
2017-07-03 23:04:49: noteConflict: -
|
|
2017-07-03 23:04:49: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:49: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:49: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:49: Total folders: 2
|
|
2017-07-03 23:04:49: Total notes: 0
|
|
2017-07-03 23:04:49: Total resources: 0
|
|
2017-07-03 23:04:49: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:49: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:49: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:04:49: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:49: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:04:49: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:49: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:49: [2,"838590ff79b941e6909e69aa21dfa3e3",1499119489563]
|
|
2017-07-03 23:04:49: SELECT * FROM settings
|
|
2017-07-03 23:04:49: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:49: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:49: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:04:49: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:49: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:04:49: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:50: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:50: [2,"cfaef4256ae44ace8ad73e24feda40d1",1499119490126]
|
|
2017-07-03 23:04:50: Starting synchronization... [1499119490235]
|
|
2017-07-03 23:04:50: mkdir /root/.sync
|
|
2017-07-03 23:04:50: mkdir /root/.resource
|
|
2017-07-03 23:04:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:50: Sync: deleteRemote: local has been deleted: (Remote cfaef4256ae44ace8ad73e24feda40d1)
|
|
2017-07-03 23:04:50: delete /root/cfaef4256ae44ace8ad73e24feda40d1.md
|
|
2017-07-03 23:04:50: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:50: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:50: list /root
|
|
2017-07-03 23:04:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:50: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:50: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:50: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:50: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:50: Synchronization complete [1499119490235]:
|
|
2017-07-03 23:04:50: remotesToUpdate: -
|
|
2017-07-03 23:04:50: remotesToDelete: 1
|
|
2017-07-03 23:04:50: localsToUdpate: -
|
|
2017-07-03 23:04:50: localsToDelete: -
|
|
2017-07-03 23:04:50: createLocal: -
|
|
2017-07-03 23:04:50: updateLocal: -
|
|
2017-07-03 23:04:50: deleteLocal: -
|
|
2017-07-03 23:04:50: createRemote: -
|
|
2017-07-03 23:04:50: updateRemote: -
|
|
2017-07-03 23:04:50: deleteRemote: 1
|
|
2017-07-03 23:04:50: itemConflict: -
|
|
2017-07-03 23:04:50: noteConflict: -
|
|
2017-07-03 23:04:50: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:50: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:50: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:50: Total folders: 1
|
|
2017-07-03 23:04:50: Total notes: 0
|
|
2017-07-03 23:04:50: Total resources: 0
|
|
2017-07-03 23:04:50: SELECT * FROM settings
|
|
2017-07-03 23:04:50: Starting synchronization... [1499119490770]
|
|
2017-07-03 23:04:50: mkdir /root/.sync
|
|
2017-07-03 23:04:50: mkdir /root/.resource
|
|
2017-07-03 23:04:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:50: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:50: Sync: deleteRemote: local has been deleted: (Remote 838590ff79b941e6909e69aa21dfa3e3)
|
|
2017-07-03 23:04:50: delete /root/838590ff79b941e6909e69aa21dfa3e3.md
|
|
2017-07-03 23:04:50: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:50: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:50: list /root
|
|
2017-07-03 23:04:50: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:50: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:50: Sync: deleteLocal: remote has been deleted: (Local cfaef4256ae44ace8ad73e24feda40d1)
|
|
2017-07-03 23:04:50: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:51: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:51: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:04:51: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:51: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:04:51: ["cfaef4256ae44ace8ad73e24feda40d1"]
|
|
2017-07-03 23:04:51: Synchronization complete [1499119490770]:
|
|
2017-07-03 23:04:51: remotesToUpdate: -
|
|
2017-07-03 23:04:51: remotesToDelete: 1
|
|
2017-07-03 23:04:51: localsToUdpate: -
|
|
2017-07-03 23:04:51: localsToDelete: 1
|
|
2017-07-03 23:04:51: createLocal: -
|
|
2017-07-03 23:04:51: updateLocal: -
|
|
2017-07-03 23:04:51: deleteLocal: 1
|
|
2017-07-03 23:04:51: createRemote: -
|
|
2017-07-03 23:04:51: updateRemote: -
|
|
2017-07-03 23:04:51: deleteRemote: 1
|
|
2017-07-03 23:04:51: itemConflict: -
|
|
2017-07-03 23:04:51: noteConflict: -
|
|
2017-07-03 23:04:51: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:51: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:51: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:51: Total folders: 0
|
|
2017-07-03 23:04:51: Total notes: 0
|
|
2017-07-03 23:04:51: Total resources: 0
|
|
2017-07-03 23:04:51: SELECT * FROM `folders`
|
|
2017-07-03 23:04:51: SELECT * FROM `notes`
|
|
2017-07-03 23:04:51: SELECT * FROM settings
|
|
2017-07-03 23:04:51: Starting synchronization... [1499119491464]
|
|
2017-07-03 23:04:51: mkdir /root/.sync
|
|
2017-07-03 23:04:51: mkdir /root/.resource
|
|
2017-07-03 23:04:51: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:51: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:51: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:51: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:51: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:51: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:51: list /root
|
|
2017-07-03 23:04:51: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:51: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:51: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:51: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:51: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:51: Sync: deleteLocal: remote has been deleted: (Local 838590ff79b941e6909e69aa21dfa3e3)
|
|
2017-07-03 23:04:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:51: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:51: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:04:51: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:51: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:04:51: ["838590ff79b941e6909e69aa21dfa3e3"]
|
|
2017-07-03 23:04:51: Synchronization complete [1499119491464]:
|
|
2017-07-03 23:04:51: remotesToUpdate: -
|
|
2017-07-03 23:04:51: remotesToDelete: -
|
|
2017-07-03 23:04:51: localsToUdpate: -
|
|
2017-07-03 23:04:51: localsToDelete: 1
|
|
2017-07-03 23:04:51: createLocal: -
|
|
2017-07-03 23:04:51: updateLocal: -
|
|
2017-07-03 23:04:51: deleteLocal: 1
|
|
2017-07-03 23:04:51: createRemote: -
|
|
2017-07-03 23:04:51: updateRemote: -
|
|
2017-07-03 23:04:51: deleteRemote: -
|
|
2017-07-03 23:04:51: itemConflict: -
|
|
2017-07-03 23:04:51: noteConflict: -
|
|
2017-07-03 23:04:51: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:51: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:51: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:51: Total folders: 0
|
|
2017-07-03 23:04:51: Total notes: 0
|
|
2017-07-03 23:04:51: Total resources: 0
|
|
2017-07-03 23:04:51: SELECT * FROM `folders`
|
|
2017-07-03 23:04:51: SELECT * FROM `notes`
|
|
2017-07-03 23:04:51: BEGIN TRANSACTION
|
|
2017-07-03 23:04:51: DELETE FROM notes
|
|
2017-07-03 23:04:51: DELETE FROM folders
|
|
2017-07-03 23:04:51: DELETE FROM resources
|
|
2017-07-03 23:04:51: DELETE FROM tags
|
|
2017-07-03 23:04:51: DELETE FROM note_tags
|
|
2017-07-03 23:04:51: COMMIT
|
|
2017-07-03 23:04:52: SELECT * FROM settings
|
|
2017-07-03 23:04:52: BEGIN TRANSACTION
|
|
2017-07-03 23:04:52: DELETE FROM notes
|
|
2017-07-03 23:04:52: DELETE FROM folders
|
|
2017-07-03 23:04:52: DELETE FROM resources
|
|
2017-07-03 23:04:52: DELETE FROM tags
|
|
2017-07-03 23:04:52: DELETE FROM note_tags
|
|
2017-07-03 23:04:52: COMMIT
|
|
2017-07-03 23:04:52: SELECT * FROM settings
|
|
2017-07-03 23:04:52: SELECT * FROM settings
|
|
2017-07-03 23:04:52: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:52: ["folder1",1499119492647,"446c32da207e4ff486a8f45a449bdac9",1499119492647]
|
|
2017-07-03 23:04:52: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:52: ["446c32da207e4ff486a8f45a449bdac9","un","joplin","SET_ME",1499119492839,"7320f5420b014b29baf86171396417d6",1499119492840]
|
|
2017-07-03 23:04:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:53: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:53: Starting synchronization... [1499119493063]
|
|
2017-07-03 23:04:53: mkdir /root/.sync
|
|
2017-07-03 23:04:53: mkdir /root/.resource
|
|
2017-07-03 23:04:53: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:53: stat /root/446c32da207e4ff486a8f45a449bdac9.md
|
|
2017-07-03 23:04:53: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 446c32da207e4ff486a8f45a449bdac9, "folder1")
|
|
2017-07-03 23:04:53: put /root/.sync/446c32da207e4ff486a8f45a449bdac9.md_1499119493104
|
|
2017-07-03 23:04:53: setTimestamp /root/.sync/446c32da207e4ff486a8f45a449bdac9.md_1499119493104
|
|
2017-07-03 23:04:53: move /root/.sync/446c32da207e4ff486a8f45a449bdac9.md_1499119493104 => /root/446c32da207e4ff486a8f45a449bdac9.md
|
|
2017-07-03 23:04:53: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:53: [1499119493117,"446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:53: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:53: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:53: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:53: stat /root/7320f5420b014b29baf86171396417d6.md
|
|
2017-07-03 23:04:53: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 7320f5420b014b29baf86171396417d6, "un")
|
|
2017-07-03 23:04:53: put /root/.sync/7320f5420b014b29baf86171396417d6.md_1499119493259
|
|
2017-07-03 23:04:53: setTimestamp /root/.sync/7320f5420b014b29baf86171396417d6.md_1499119493259
|
|
2017-07-03 23:04:53: move /root/.sync/7320f5420b014b29baf86171396417d6.md_1499119493259 => /root/7320f5420b014b29baf86171396417d6.md
|
|
2017-07-03 23:04:53: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:53: [1499119493267,"7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:53: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:53: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:53: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:53: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:53: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:53: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:53: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:53: list /root
|
|
2017-07-03 23:04:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:53: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:53: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:53: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:53: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:53: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:53: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:53: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:53: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:53: Synchronization complete [1499119493063]:
|
|
2017-07-03 23:04:53: remotesToUpdate: 2
|
|
2017-07-03 23:04:53: remotesToDelete: -
|
|
2017-07-03 23:04:53: localsToUdpate: -
|
|
2017-07-03 23:04:53: localsToDelete: -
|
|
2017-07-03 23:04:53: createLocal: -
|
|
2017-07-03 23:04:53: updateLocal: -
|
|
2017-07-03 23:04:53: deleteLocal: -
|
|
2017-07-03 23:04:53: createRemote: 2
|
|
2017-07-03 23:04:53: updateRemote: -
|
|
2017-07-03 23:04:53: deleteRemote: -
|
|
2017-07-03 23:04:53: itemConflict: -
|
|
2017-07-03 23:04:53: noteConflict: -
|
|
2017-07-03 23:04:53: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:53: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:53: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:53: Total folders: 1
|
|
2017-07-03 23:04:53: Total notes: 1
|
|
2017-07-03 23:04:53: Total resources: 0
|
|
2017-07-03 23:04:53: SELECT * FROM settings
|
|
2017-07-03 23:04:53: Starting synchronization... [1499119493965]
|
|
2017-07-03 23:04:53: mkdir /root/.sync
|
|
2017-07-03 23:04:53: mkdir /root/.resource
|
|
2017-07-03 23:04:53: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:54: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:54: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:54: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:54: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:54: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:54: list /root
|
|
2017-07-03 23:04:54: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:54: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:54: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:54: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:54: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:54: get /root/446c32da207e4ff486a8f45a449bdac9.md
|
|
2017-07-03 23:04:54: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:54: ["446c32da207e4ff486a8f45a449bdac9","folder1","1499119492647","1499119492647",1499119494093]
|
|
2017-07-03 23:04:54: Sync: createLocal: remote exists but local does not: (Remote 446c32da207e4ff486a8f45a449bdac9, "folder1")
|
|
2017-07-03 23:04:54: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:54: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:54: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:54: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:54: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:54: get /root/7320f5420b014b29baf86171396417d6.md
|
|
2017-07-03 23:04:54: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6","446c32da207e4ff486a8f45a449bdac9","un","","1499119492840","1499119492839",1499119494292,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:04:54: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:54: Sync: createLocal: remote exists but local does not: (Remote 7320f5420b014b29baf86171396417d6, "un")
|
|
2017-07-03 23:04:54: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:54: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:54: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:54: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:54: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:54: Synchronization complete [1499119493965]:
|
|
2017-07-03 23:04:54: remotesToUpdate: -
|
|
2017-07-03 23:04:54: remotesToDelete: -
|
|
2017-07-03 23:04:54: localsToUdpate: 2
|
|
2017-07-03 23:04:54: localsToDelete: -
|
|
2017-07-03 23:04:54: createLocal: 2
|
|
2017-07-03 23:04:54: updateLocal: -
|
|
2017-07-03 23:04:54: deleteLocal: -
|
|
2017-07-03 23:04:54: createRemote: -
|
|
2017-07-03 23:04:54: updateRemote: -
|
|
2017-07-03 23:04:54: deleteRemote: -
|
|
2017-07-03 23:04:54: itemConflict: -
|
|
2017-07-03 23:04:54: noteConflict: -
|
|
2017-07-03 23:04:54: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:54: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:54: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:54: Total folders: 1
|
|
2017-07-03 23:04:54: Total notes: 1
|
|
2017-07-03 23:04:54: Total resources: 0
|
|
2017-07-03 23:04:54: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:04:54: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:54: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:54: [1,"7320f5420b014b29baf86171396417d6",1499119494978]
|
|
2017-07-03 23:04:55: Starting synchronization... [1499119495136]
|
|
2017-07-03 23:04:55: mkdir /root/.sync
|
|
2017-07-03 23:04:55: mkdir /root/.resource
|
|
2017-07-03 23:04:55: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:55: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:55: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:55: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:55: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:55: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:55: Sync: deleteRemote: local has been deleted: (Remote 7320f5420b014b29baf86171396417d6)
|
|
2017-07-03 23:04:55: delete /root/7320f5420b014b29baf86171396417d6.md
|
|
2017-07-03 23:04:55: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:55: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:55: list /root
|
|
2017-07-03 23:04:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:55: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:55: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:55: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:55: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:55: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:55: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:55: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:55: Synchronization complete [1499119495136]:
|
|
2017-07-03 23:04:55: remotesToUpdate: -
|
|
2017-07-03 23:04:55: remotesToDelete: 1
|
|
2017-07-03 23:04:55: localsToUdpate: -
|
|
2017-07-03 23:04:55: localsToDelete: -
|
|
2017-07-03 23:04:55: createLocal: -
|
|
2017-07-03 23:04:55: updateLocal: -
|
|
2017-07-03 23:04:55: deleteLocal: -
|
|
2017-07-03 23:04:55: createRemote: -
|
|
2017-07-03 23:04:55: updateRemote: -
|
|
2017-07-03 23:04:55: deleteRemote: 1
|
|
2017-07-03 23:04:55: itemConflict: -
|
|
2017-07-03 23:04:55: noteConflict: -
|
|
2017-07-03 23:04:55: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:55: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:55: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:55: Total folders: 1
|
|
2017-07-03 23:04:55: Total notes: 0
|
|
2017-07-03 23:04:55: Total resources: 0
|
|
2017-07-03 23:04:55: SELECT * FROM settings
|
|
2017-07-03 23:04:55: UPDATE `notes` SET `title`=?, `updated_time`=? WHERE id=?
|
|
2017-07-03 23:04:55: ["Modified after having been deleted",1499119495713,"7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:55: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:55: Starting synchronization... [1499119495943]
|
|
2017-07-03 23:04:55: mkdir /root/.sync
|
|
2017-07-03 23:04:55: mkdir /root/.resource
|
|
2017-07-03 23:04:55: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:55: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:55: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:55: stat /root/7320f5420b014b29baf86171396417d6.md
|
|
2017-07-03 23:04:56: Sync: noteConflict: remote has been deleted, but local has changes: (Local 7320f5420b014b29baf86171396417d6, "Modified after having been deleted")
|
|
2017-07-03 23:04:56: INSERT INTO `notes` (`parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `is_conflict`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`, `id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:56: ["446c32da207e4ff486a8f45a449bdac9","Modified after having been deleted","",1499119492840,1499119495713,1499119493267,1,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"a47295951fd0428e9950ac175482d875"]
|
|
2017-07-03 23:04:56: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:56: ["a47295951fd0428e9950ac175482d875"]
|
|
2017-07-03 23:04:56: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:04:56: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:56: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:04:56: [1,"7320f5420b014b29baf86171396417d6",1499119496777]
|
|
2017-07-03 23:04:56: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:56: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:56: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:56: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:56: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:56: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:56: Sync: deleteRemote: local has been deleted: (Remote 7320f5420b014b29baf86171396417d6)
|
|
2017-07-03 23:04:56: delete /root/7320f5420b014b29baf86171396417d6.md
|
|
2017-07-03 23:04:56: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:04:56: ["7320f5420b014b29baf86171396417d6"]
|
|
2017-07-03 23:04:57: list /root
|
|
2017-07-03 23:04:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:57: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:57: ["446c32da207e4ff486a8f45a449bdac9"]
|
|
2017-07-03 23:04:57: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:57: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:57: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:57: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:57: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:57: Synchronization complete [1499119495943]:
|
|
2017-07-03 23:04:57: remotesToUpdate: 1
|
|
2017-07-03 23:04:57: remotesToDelete: 1
|
|
2017-07-03 23:04:57: localsToUdpate: -
|
|
2017-07-03 23:04:57: localsToDelete: -
|
|
2017-07-03 23:04:57: createLocal: -
|
|
2017-07-03 23:04:57: updateLocal: -
|
|
2017-07-03 23:04:57: deleteLocal: -
|
|
2017-07-03 23:04:57: createRemote: -
|
|
2017-07-03 23:04:57: updateRemote: -
|
|
2017-07-03 23:04:57: deleteRemote: 1
|
|
2017-07-03 23:04:57: itemConflict: -
|
|
2017-07-03 23:04:57: noteConflict: 1
|
|
2017-07-03 23:04:57: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:57: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:57: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:57: Total folders: 1
|
|
2017-07-03 23:04:57: Total notes: 1
|
|
2017-07-03 23:04:57: Total resources: 0
|
|
2017-07-03 23:04:57: SELECT * FROM notes WHERE is_conflict = 1
|
|
2017-07-03 23:04:57: SELECT * FROM notes WHERE is_conflict = 0
|
|
2017-07-03 23:04:57: BEGIN TRANSACTION
|
|
2017-07-03 23:04:57: DELETE FROM notes
|
|
2017-07-03 23:04:57: DELETE FROM folders
|
|
2017-07-03 23:04:57: DELETE FROM resources
|
|
2017-07-03 23:04:57: DELETE FROM tags
|
|
2017-07-03 23:04:57: DELETE FROM note_tags
|
|
2017-07-03 23:04:57: COMMIT
|
|
2017-07-03 23:04:57: SELECT * FROM settings
|
|
2017-07-03 23:04:57: BEGIN TRANSACTION
|
|
2017-07-03 23:04:57: DELETE FROM notes
|
|
2017-07-03 23:04:57: DELETE FROM folders
|
|
2017-07-03 23:04:57: DELETE FROM resources
|
|
2017-07-03 23:04:57: DELETE FROM tags
|
|
2017-07-03 23:04:57: DELETE FROM note_tags
|
|
2017-07-03 23:04:57: COMMIT
|
|
2017-07-03 23:04:57: SELECT * FROM settings
|
|
2017-07-03 23:04:57: SELECT * FROM settings
|
|
2017-07-03 23:04:57: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:57: ["folder1",1499119497916,"3f211c01e4374706a9174fb7338a15e1",1499119497917]
|
|
2017-07-03 23:04:58: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:04:58: ["folder2",1499119498090,"c0213509a78b44778c9d9e7e74548b84",1499119498090]
|
|
2017-07-03 23:04:58: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:58: ["3f211c01e4374706a9174fb7338a15e1","un","joplin","SET_ME",1499119498230,"0a9a4f0f68be412aa333105500b588bc",1499119498230]
|
|
2017-07-03 23:04:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:58: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:04:58: Starting synchronization... [1499119498445]
|
|
2017-07-03 23:04:58: mkdir /root/.sync
|
|
2017-07-03 23:04:58: mkdir /root/.resource
|
|
2017-07-03 23:04:58: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:58: stat /root/3f211c01e4374706a9174fb7338a15e1.md
|
|
2017-07-03 23:04:58: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 3f211c01e4374706a9174fb7338a15e1, "folder1")
|
|
2017-07-03 23:04:58: put /root/.sync/3f211c01e4374706a9174fb7338a15e1.md_1499119498489
|
|
2017-07-03 23:04:58: setTimestamp /root/.sync/3f211c01e4374706a9174fb7338a15e1.md_1499119498489
|
|
2017-07-03 23:04:58: move /root/.sync/3f211c01e4374706a9174fb7338a15e1.md_1499119498489 => /root/3f211c01e4374706a9174fb7338a15e1.md
|
|
2017-07-03 23:04:58: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:58: [1499119498499,"3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:58: stat /root/c0213509a78b44778c9d9e7e74548b84.md
|
|
2017-07-03 23:04:58: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c0213509a78b44778c9d9e7e74548b84, "folder2")
|
|
2017-07-03 23:04:58: put /root/.sync/c0213509a78b44778c9d9e7e74548b84.md_1499119498670
|
|
2017-07-03 23:04:58: setTimestamp /root/.sync/c0213509a78b44778c9d9e7e74548b84.md_1499119498670
|
|
2017-07-03 23:04:58: move /root/.sync/c0213509a78b44778c9d9e7e74548b84.md_1499119498670 => /root/c0213509a78b44778c9d9e7e74548b84.md
|
|
2017-07-03 23:04:58: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:58: [1499119498685,"c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:04:58: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:58: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:58: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:58: stat /root/0a9a4f0f68be412aa333105500b588bc.md
|
|
2017-07-03 23:04:58: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 0a9a4f0f68be412aa333105500b588bc, "un")
|
|
2017-07-03 23:04:58: put /root/.sync/0a9a4f0f68be412aa333105500b588bc.md_1499119498904
|
|
2017-07-03 23:04:58: setTimestamp /root/.sync/0a9a4f0f68be412aa333105500b588bc.md_1499119498904
|
|
2017-07-03 23:04:58: move /root/.sync/0a9a4f0f68be412aa333105500b588bc.md_1499119498904 => /root/0a9a4f0f68be412aa333105500b588bc.md
|
|
2017-07-03 23:04:58: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:04:58: [1499119498918,"0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:04:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:04:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:59: list /root
|
|
2017-07-03 23:04:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:59: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:04:59: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:04:59: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:04:59: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:04:59: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:04:59: Synchronization complete [1499119498445]:
|
|
2017-07-03 23:04:59: remotesToUpdate: 3
|
|
2017-07-03 23:04:59: remotesToDelete: -
|
|
2017-07-03 23:04:59: localsToUdpate: -
|
|
2017-07-03 23:04:59: localsToDelete: -
|
|
2017-07-03 23:04:59: createLocal: -
|
|
2017-07-03 23:04:59: updateLocal: -
|
|
2017-07-03 23:04:59: deleteLocal: -
|
|
2017-07-03 23:04:59: createRemote: 3
|
|
2017-07-03 23:04:59: updateRemote: -
|
|
2017-07-03 23:04:59: deleteRemote: -
|
|
2017-07-03 23:04:59: itemConflict: -
|
|
2017-07-03 23:04:59: noteConflict: -
|
|
2017-07-03 23:04:59: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:04:59: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:04:59: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:04:59: Total folders: 2
|
|
2017-07-03 23:04:59: Total notes: 1
|
|
2017-07-03 23:04:59: Total resources: 0
|
|
2017-07-03 23:04:59: SELECT * FROM settings
|
|
2017-07-03 23:04:59: Starting synchronization... [1499119499453]
|
|
2017-07-03 23:04:59: mkdir /root/.sync
|
|
2017-07-03 23:04:59: mkdir /root/.resource
|
|
2017-07-03 23:04:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:04:59: SELECT * FROM deleted_items
|
|
2017-07-03 23:04:59: list /root
|
|
2017-07-03 23:04:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:59: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:59: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:59: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:04:59: get /root/3f211c01e4374706a9174fb7338a15e1.md
|
|
2017-07-03 23:04:59: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:59: ["3f211c01e4374706a9174fb7338a15e1","folder1","1499119497917","1499119497916",1499119499543]
|
|
2017-07-03 23:04:59: Sync: createLocal: remote exists but local does not: (Remote 3f211c01e4374706a9174fb7338a15e1, "folder1")
|
|
2017-07-03 23:04:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:04:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:04:59: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:04:59: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:04:59: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:04:59: get /root/c0213509a78b44778c9d9e7e74548b84.md
|
|
2017-07-03 23:04:59: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:04:59: ["c0213509a78b44778c9d9e7e74548b84","folder2","1499119498090","1499119498090",1499119499821]
|
|
2017-07-03 23:04:59: Sync: createLocal: remote exists but local does not: (Remote c0213509a78b44778c9d9e7e74548b84, "folder2")
|
|
2017-07-03 23:04:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:04:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:04:59: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:04:59: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:00: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:00: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:00: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:00: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:00: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:00: get /root/0a9a4f0f68be412aa333105500b588bc.md
|
|
2017-07-03 23:05:00: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:00: ["0a9a4f0f68be412aa333105500b588bc","3f211c01e4374706a9174fb7338a15e1","un","","1499119498230","1499119498230",1499119500035,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:05:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:00: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:00: Sync: createLocal: remote exists but local does not: (Remote 0a9a4f0f68be412aa333105500b588bc, "un")
|
|
2017-07-03 23:05:00: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:00: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:00: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:00: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:00: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:00: Synchronization complete [1499119499453]:
|
|
2017-07-03 23:05:00: remotesToUpdate: -
|
|
2017-07-03 23:05:00: remotesToDelete: -
|
|
2017-07-03 23:05:00: localsToUdpate: 3
|
|
2017-07-03 23:05:00: localsToDelete: -
|
|
2017-07-03 23:05:00: createLocal: 3
|
|
2017-07-03 23:05:00: updateLocal: -
|
|
2017-07-03 23:05:00: deleteLocal: -
|
|
2017-07-03 23:05:00: createRemote: -
|
|
2017-07-03 23:05:00: updateRemote: -
|
|
2017-07-03 23:05:00: deleteRemote: -
|
|
2017-07-03 23:05:00: itemConflict: -
|
|
2017-07-03 23:05:00: noteConflict: -
|
|
2017-07-03 23:05:00: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:00: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:00: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:00: Total folders: 2
|
|
2017-07-03 23:05:00: Total notes: 1
|
|
2017-07-03 23:05:00: Total resources: 0
|
|
2017-07-03 23:05:00: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:00: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:00: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:05:00: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:00: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:05:00: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:00: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:05:00: [1,"0a9a4f0f68be412aa333105500b588bc",1499119500699]
|
|
2017-07-03 23:05:00: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:05:00: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:01: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:05:01: [2,"3f211c01e4374706a9174fb7338a15e1",1499119501008]
|
|
2017-07-03 23:05:01: Starting synchronization... [1499119501134]
|
|
2017-07-03 23:05:01: mkdir /root/.sync
|
|
2017-07-03 23:05:01: mkdir /root/.resource
|
|
2017-07-03 23:05:01: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:01: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:01: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:01: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:01: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:01: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:01: Sync: deleteRemote: local has been deleted: (Remote 0a9a4f0f68be412aa333105500b588bc)
|
|
2017-07-03 23:05:01: delete /root/0a9a4f0f68be412aa333105500b588bc.md
|
|
2017-07-03 23:05:01: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:05:01: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:01: Sync: deleteRemote: local has been deleted: (Remote 3f211c01e4374706a9174fb7338a15e1)
|
|
2017-07-03 23:05:01: delete /root/3f211c01e4374706a9174fb7338a15e1.md
|
|
2017-07-03 23:05:01: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:05:01: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:01: list /root
|
|
2017-07-03 23:05:01: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:01: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:05:01: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:01: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:05:01: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:01: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:01: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:01: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:01: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:01: Synchronization complete [1499119501134]:
|
|
2017-07-03 23:05:01: remotesToUpdate: -
|
|
2017-07-03 23:05:01: remotesToDelete: 2
|
|
2017-07-03 23:05:01: localsToUdpate: -
|
|
2017-07-03 23:05:01: localsToDelete: -
|
|
2017-07-03 23:05:01: createLocal: -
|
|
2017-07-03 23:05:01: updateLocal: -
|
|
2017-07-03 23:05:01: deleteLocal: -
|
|
2017-07-03 23:05:01: createRemote: -
|
|
2017-07-03 23:05:01: updateRemote: -
|
|
2017-07-03 23:05:01: deleteRemote: 2
|
|
2017-07-03 23:05:01: itemConflict: -
|
|
2017-07-03 23:05:01: noteConflict: -
|
|
2017-07-03 23:05:01: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:01: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:01: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:01: Total folders: 1
|
|
2017-07-03 23:05:01: Total notes: 0
|
|
2017-07-03 23:05:01: Total resources: 0
|
|
2017-07-03 23:05:01: SELECT * FROM settings
|
|
2017-07-03 23:05:02: UPDATE `folders` SET `title`=?, `updated_time`=? WHERE id=?
|
|
2017-07-03 23:05:02: ["Modified after having been deleted",1499119502058,"3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:02: Starting synchronization... [1499119502231]
|
|
2017-07-03 23:05:02: mkdir /root/.sync
|
|
2017-07-03 23:05:02: mkdir /root/.resource
|
|
2017-07-03 23:05:02: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:02: stat /root/3f211c01e4374706a9174fb7338a15e1.md
|
|
2017-07-03 23:05:02: Sync: itemConflict: remote has been deleted, but local has changes: (Local 3f211c01e4374706a9174fb7338a15e1, "Modified after having been deleted")
|
|
2017-07-03 23:05:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:02: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:02: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:05:02: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:02: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:05:02: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:02: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:05:02: [1,"0a9a4f0f68be412aa333105500b588bc",1499119502485]
|
|
2017-07-03 23:05:02: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:05:02: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:02: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:05:02: [2,"3f211c01e4374706a9174fb7338a15e1",1499119502831]
|
|
2017-07-03 23:05:03: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:03: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:03: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:03: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:03: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:03: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:03: Sync: deleteRemote: local has been deleted: (Remote 0a9a4f0f68be412aa333105500b588bc)
|
|
2017-07-03 23:05:03: delete /root/0a9a4f0f68be412aa333105500b588bc.md
|
|
2017-07-03 23:05:03: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:05:03: ["0a9a4f0f68be412aa333105500b588bc"]
|
|
2017-07-03 23:05:03: Sync: deleteRemote: local has been deleted: (Remote 3f211c01e4374706a9174fb7338a15e1)
|
|
2017-07-03 23:05:03: delete /root/3f211c01e4374706a9174fb7338a15e1.md
|
|
2017-07-03 23:05:03: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:05:03: ["3f211c01e4374706a9174fb7338a15e1"]
|
|
2017-07-03 23:05:03: list /root
|
|
2017-07-03 23:05:03: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:03: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:05:03: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:03: ["c0213509a78b44778c9d9e7e74548b84"]
|
|
2017-07-03 23:05:03: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:03: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:03: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:03: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:03: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:03: Synchronization complete [1499119502231]:
|
|
2017-07-03 23:05:03: remotesToUpdate: 1
|
|
2017-07-03 23:05:03: remotesToDelete: 2
|
|
2017-07-03 23:05:03: localsToUdpate: -
|
|
2017-07-03 23:05:03: localsToDelete: -
|
|
2017-07-03 23:05:03: createLocal: -
|
|
2017-07-03 23:05:03: updateLocal: -
|
|
2017-07-03 23:05:03: deleteLocal: -
|
|
2017-07-03 23:05:03: createRemote: -
|
|
2017-07-03 23:05:03: updateRemote: -
|
|
2017-07-03 23:05:03: deleteRemote: 2
|
|
2017-07-03 23:05:03: itemConflict: 1
|
|
2017-07-03 23:05:03: noteConflict: -
|
|
2017-07-03 23:05:03: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:03: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:03: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:03: Total folders: 1
|
|
2017-07-03 23:05:03: Total notes: 0
|
|
2017-07-03 23:05:03: Total resources: 0
|
|
2017-07-03 23:05:03: SELECT * FROM `folders`
|
|
2017-07-03 23:05:03: SELECT * FROM `notes`
|
|
2017-07-03 23:05:03: BEGIN TRANSACTION
|
|
2017-07-03 23:05:03: DELETE FROM notes
|
|
2017-07-03 23:05:03: DELETE FROM folders
|
|
2017-07-03 23:05:03: DELETE FROM resources
|
|
2017-07-03 23:05:03: DELETE FROM tags
|
|
2017-07-03 23:05:03: DELETE FROM note_tags
|
|
2017-07-03 23:05:03: COMMIT
|
|
2017-07-03 23:05:03: SELECT * FROM settings
|
|
2017-07-03 23:05:03: BEGIN TRANSACTION
|
|
2017-07-03 23:05:03: DELETE FROM notes
|
|
2017-07-03 23:05:03: DELETE FROM folders
|
|
2017-07-03 23:05:03: DELETE FROM resources
|
|
2017-07-03 23:05:03: DELETE FROM tags
|
|
2017-07-03 23:05:03: DELETE FROM note_tags
|
|
2017-07-03 23:05:03: COMMIT
|
|
2017-07-03 23:05:04: SELECT * FROM settings
|
|
2017-07-03 23:05:04: SELECT * FROM settings
|
|
2017-07-03 23:05:04: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:05:04: ["folder",1499119504390,"38701040cb5b48f9b57c0ac97605e482",1499119504390]
|
|
2017-07-03 23:05:04: SELECT * FROM settings
|
|
2017-07-03 23:05:04: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:05:04: ["folder",1499119504782,"31daaf00ca794c7f9865da1c6947fd1e",1499119504782]
|
|
2017-07-03 23:05:04: Starting synchronization... [1499119504940]
|
|
2017-07-03 23:05:04: mkdir /root/.sync
|
|
2017-07-03 23:05:04: mkdir /root/.resource
|
|
2017-07-03 23:05:04: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:04: stat /root/31daaf00ca794c7f9865da1c6947fd1e.md
|
|
2017-07-03 23:05:04: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 31daaf00ca794c7f9865da1c6947fd1e, "folder")
|
|
2017-07-03 23:05:04: put /root/.sync/31daaf00ca794c7f9865da1c6947fd1e.md_1499119504993
|
|
2017-07-03 23:05:04: setTimestamp /root/.sync/31daaf00ca794c7f9865da1c6947fd1e.md_1499119504993
|
|
2017-07-03 23:05:05: move /root/.sync/31daaf00ca794c7f9865da1c6947fd1e.md_1499119504993 => /root/31daaf00ca794c7f9865da1c6947fd1e.md
|
|
2017-07-03 23:05:05: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:05: [1499119505011,"31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:05: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:05: list /root
|
|
2017-07-03 23:05:05: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:05: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:05: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:05: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:05: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:05: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:05: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:05: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:05: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:05: Synchronization complete [1499119504940]:
|
|
2017-07-03 23:05:05: remotesToUpdate: 1
|
|
2017-07-03 23:05:05: remotesToDelete: -
|
|
2017-07-03 23:05:05: localsToUdpate: -
|
|
2017-07-03 23:05:05: localsToDelete: -
|
|
2017-07-03 23:05:05: createLocal: -
|
|
2017-07-03 23:05:05: updateLocal: -
|
|
2017-07-03 23:05:05: deleteLocal: -
|
|
2017-07-03 23:05:05: createRemote: 1
|
|
2017-07-03 23:05:05: updateRemote: -
|
|
2017-07-03 23:05:05: deleteRemote: -
|
|
2017-07-03 23:05:05: itemConflict: -
|
|
2017-07-03 23:05:05: noteConflict: -
|
|
2017-07-03 23:05:05: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:05: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:05: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:05: Total folders: 1
|
|
2017-07-03 23:05:05: Total notes: 0
|
|
2017-07-03 23:05:05: Total resources: 0
|
|
2017-07-03 23:05:05: SELECT * FROM settings
|
|
2017-07-03 23:05:05: Starting synchronization... [1499119505614]
|
|
2017-07-03 23:05:05: mkdir /root/.sync
|
|
2017-07-03 23:05:05: mkdir /root/.resource
|
|
2017-07-03 23:05:05: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: stat /root/38701040cb5b48f9b57c0ac97605e482.md
|
|
2017-07-03 23:05:05: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 38701040cb5b48f9b57c0ac97605e482, "folder")
|
|
2017-07-03 23:05:05: put /root/.sync/38701040cb5b48f9b57c0ac97605e482.md_1499119505658
|
|
2017-07-03 23:05:05: setTimestamp /root/.sync/38701040cb5b48f9b57c0ac97605e482.md_1499119505658
|
|
2017-07-03 23:05:05: move /root/.sync/38701040cb5b48f9b57c0ac97605e482.md_1499119505658 => /root/38701040cb5b48f9b57c0ac97605e482.md
|
|
2017-07-03 23:05:05: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:05: [1499119505669,"38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:05: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:05: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:06: list /root
|
|
2017-07-03 23:05:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: get /root/31daaf00ca794c7f9865da1c6947fd1e.md
|
|
2017-07-03 23:05:06: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e","folder","1499119504782","1499119504782",1499119506071]
|
|
2017-07-03 23:05:06: Sync: createLocal: remote exists but local does not: (Remote 31daaf00ca794c7f9865da1c6947fd1e, "folder")
|
|
2017-07-03 23:05:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:06: Synchronization complete [1499119505614]:
|
|
2017-07-03 23:05:06: remotesToUpdate: 1
|
|
2017-07-03 23:05:06: remotesToDelete: -
|
|
2017-07-03 23:05:06: localsToUdpate: 1
|
|
2017-07-03 23:05:06: localsToDelete: -
|
|
2017-07-03 23:05:06: createLocal: 1
|
|
2017-07-03 23:05:06: updateLocal: -
|
|
2017-07-03 23:05:06: deleteLocal: -
|
|
2017-07-03 23:05:06: createRemote: 1
|
|
2017-07-03 23:05:06: updateRemote: -
|
|
2017-07-03 23:05:06: deleteRemote: -
|
|
2017-07-03 23:05:06: itemConflict: -
|
|
2017-07-03 23:05:06: noteConflict: -
|
|
2017-07-03 23:05:06: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:06: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:06: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:06: Total folders: 2
|
|
2017-07-03 23:05:06: Total notes: 0
|
|
2017-07-03 23:05:06: Total resources: 0
|
|
2017-07-03 23:05:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: Starting synchronization... [1499119506409]
|
|
2017-07-03 23:05:06: mkdir /root/.sync
|
|
2017-07-03 23:05:06: mkdir /root/.resource
|
|
2017-07-03 23:05:06: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:06: list /root
|
|
2017-07-03 23:05:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:06: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:06: Synchronization complete [1499119506409]:
|
|
2017-07-03 23:05:06: remotesToUpdate: -
|
|
2017-07-03 23:05:06: remotesToDelete: -
|
|
2017-07-03 23:05:06: localsToUdpate: -
|
|
2017-07-03 23:05:06: localsToDelete: -
|
|
2017-07-03 23:05:06: createLocal: -
|
|
2017-07-03 23:05:06: updateLocal: -
|
|
2017-07-03 23:05:06: deleteLocal: -
|
|
2017-07-03 23:05:06: createRemote: -
|
|
2017-07-03 23:05:06: updateRemote: -
|
|
2017-07-03 23:05:06: deleteRemote: -
|
|
2017-07-03 23:05:06: itemConflict: -
|
|
2017-07-03 23:05:06: noteConflict: -
|
|
2017-07-03 23:05:06: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:06: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:06: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:06: Total folders: 2
|
|
2017-07-03 23:05:06: Total notes: 0
|
|
2017-07-03 23:05:06: Total resources: 0
|
|
2017-07-03 23:05:06: SELECT * FROM settings
|
|
2017-07-03 23:05:06: Starting synchronization... [1499119506870]
|
|
2017-07-03 23:05:06: mkdir /root/.sync
|
|
2017-07-03 23:05:06: mkdir /root/.resource
|
|
2017-07-03 23:05:06: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:06: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:06: list /root
|
|
2017-07-03 23:05:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:06: ["38701040cb5b48f9b57c0ac97605e482"]
|
|
2017-07-03 23:05:06: get /root/38701040cb5b48f9b57c0ac97605e482.md
|
|
2017-07-03 23:05:07: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:07: ["38701040cb5b48f9b57c0ac97605e482","folder","1499119504390","1499119504390",1499119507003]
|
|
2017-07-03 23:05:07: Sync: createLocal: remote exists but local does not: (Remote 38701040cb5b48f9b57c0ac97605e482, "folder")
|
|
2017-07-03 23:05:07: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:07: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:07: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:07: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:07: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:07: Synchronization complete [1499119506870]:
|
|
2017-07-03 23:05:07: remotesToUpdate: -
|
|
2017-07-03 23:05:07: remotesToDelete: -
|
|
2017-07-03 23:05:07: localsToUdpate: 1
|
|
2017-07-03 23:05:07: localsToDelete: -
|
|
2017-07-03 23:05:07: createLocal: 1
|
|
2017-07-03 23:05:07: updateLocal: -
|
|
2017-07-03 23:05:07: deleteLocal: -
|
|
2017-07-03 23:05:07: createRemote: -
|
|
2017-07-03 23:05:07: updateRemote: -
|
|
2017-07-03 23:05:07: deleteRemote: -
|
|
2017-07-03 23:05:07: itemConflict: -
|
|
2017-07-03 23:05:07: noteConflict: -
|
|
2017-07-03 23:05:07: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:07: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:07: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:07: Total folders: 2
|
|
2017-07-03 23:05:07: Total notes: 0
|
|
2017-07-03 23:05:07: Total resources: 0
|
|
2017-07-03 23:05:07: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:07: ["31daaf00ca794c7f9865da1c6947fd1e"]
|
|
2017-07-03 23:05:07: BEGIN TRANSACTION
|
|
2017-07-03 23:05:07: DELETE FROM notes
|
|
2017-07-03 23:05:07: DELETE FROM folders
|
|
2017-07-03 23:05:07: DELETE FROM resources
|
|
2017-07-03 23:05:07: DELETE FROM tags
|
|
2017-07-03 23:05:07: DELETE FROM note_tags
|
|
2017-07-03 23:05:07: COMMIT
|
|
2017-07-03 23:05:07: SELECT * FROM settings
|
|
2017-07-03 23:05:07: BEGIN TRANSACTION
|
|
2017-07-03 23:05:07: DELETE FROM notes
|
|
2017-07-03 23:05:07: DELETE FROM folders
|
|
2017-07-03 23:05:07: DELETE FROM resources
|
|
2017-07-03 23:05:07: DELETE FROM tags
|
|
2017-07-03 23:05:07: DELETE FROM note_tags
|
|
2017-07-03 23:05:07: COMMIT
|
|
2017-07-03 23:05:07: SELECT * FROM settings
|
|
2017-07-03 23:05:08: SELECT * FROM settings
|
|
2017-07-03 23:05:08: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:05:08: ["folder",1499119508150,"25e634ab18b549a1828dac8169ba0456",1499119508151]
|
|
2017-07-03 23:05:08: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:08: ["mynote","joplin","SET_ME",1499119508324,"8d38edd1993842b384220df6fc97af48",1499119508324]
|
|
2017-07-03 23:05:08: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:08: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:08: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:08: ["mynote2","joplin","SET_ME",1499119508601,"dab02755667b450490dd3880ea77d77b",1499119508601]
|
|
2017-07-03 23:05:08: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:08: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:08: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:05:08: ["mytag",1499119508823,"c9d265d94ff446018fef5093dc390bd3",1499119508823]
|
|
2017-07-03 23:05:08: Starting synchronization... [1499119508977]
|
|
2017-07-03 23:05:08: mkdir /root/.sync
|
|
2017-07-03 23:05:08: mkdir /root/.resource
|
|
2017-07-03 23:05:09: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: stat /root/25e634ab18b549a1828dac8169ba0456.md
|
|
2017-07-03 23:05:09: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 25e634ab18b549a1828dac8169ba0456, "folder")
|
|
2017-07-03 23:05:09: put /root/.sync/25e634ab18b549a1828dac8169ba0456.md_1499119509022
|
|
2017-07-03 23:05:09: setTimestamp /root/.sync/25e634ab18b549a1828dac8169ba0456.md_1499119509022
|
|
2017-07-03 23:05:09: move /root/.sync/25e634ab18b549a1828dac8169ba0456.md_1499119509022 => /root/25e634ab18b549a1828dac8169ba0456.md
|
|
2017-07-03 23:05:09: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:09: [1499119509034,"25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:09: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:09: stat /root/8d38edd1993842b384220df6fc97af48.md
|
|
2017-07-03 23:05:09: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 8d38edd1993842b384220df6fc97af48, "mynote")
|
|
2017-07-03 23:05:09: put /root/.sync/8d38edd1993842b384220df6fc97af48.md_1499119509212
|
|
2017-07-03 23:05:09: setTimestamp /root/.sync/8d38edd1993842b384220df6fc97af48.md_1499119509212
|
|
2017-07-03 23:05:09: move /root/.sync/8d38edd1993842b384220df6fc97af48.md_1499119509212 => /root/8d38edd1993842b384220df6fc97af48.md
|
|
2017-07-03 23:05:09: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:09: [1499119509231,"8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:09: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:09: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:09: stat /root/dab02755667b450490dd3880ea77d77b.md
|
|
2017-07-03 23:05:09: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local dab02755667b450490dd3880ea77d77b, "mynote2")
|
|
2017-07-03 23:05:09: put /root/.sync/dab02755667b450490dd3880ea77d77b.md_1499119509421
|
|
2017-07-03 23:05:09: setTimestamp /root/.sync/dab02755667b450490dd3880ea77d77b.md_1499119509421
|
|
2017-07-03 23:05:09: move /root/.sync/dab02755667b450490dd3880ea77d77b.md_1499119509421 => /root/dab02755667b450490dd3880ea77d77b.md
|
|
2017-07-03 23:05:09: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:09: [1499119509441,"dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:09: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:09: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:09: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: stat /root/c9d265d94ff446018fef5093dc390bd3.md
|
|
2017-07-03 23:05:09: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c9d265d94ff446018fef5093dc390bd3, "mytag")
|
|
2017-07-03 23:05:09: put /root/.sync/c9d265d94ff446018fef5093dc390bd3.md_1499119509681
|
|
2017-07-03 23:05:09: setTimestamp /root/.sync/c9d265d94ff446018fef5093dc390bd3.md_1499119509681
|
|
2017-07-03 23:05:09: move /root/.sync/c9d265d94ff446018fef5093dc390bd3.md_1499119509681 => /root/c9d265d94ff446018fef5093dc390bd3.md
|
|
2017-07-03 23:05:09: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:09: [1499119509691,"c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:09: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:09: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:09: list /root
|
|
2017-07-03 23:05:09: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:09: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:09: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:09: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:09: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:09: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:09: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:09: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:09: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:09: Synchronization complete [1499119508977]:
|
|
2017-07-03 23:05:10: remotesToUpdate: 4
|
|
2017-07-03 23:05:10: remotesToDelete: -
|
|
2017-07-03 23:05:10: localsToUdpate: -
|
|
2017-07-03 23:05:10: localsToDelete: -
|
|
2017-07-03 23:05:10: createLocal: -
|
|
2017-07-03 23:05:10: updateLocal: -
|
|
2017-07-03 23:05:10: deleteLocal: -
|
|
2017-07-03 23:05:10: createRemote: 4
|
|
2017-07-03 23:05:10: updateRemote: -
|
|
2017-07-03 23:05:10: deleteRemote: -
|
|
2017-07-03 23:05:10: itemConflict: -
|
|
2017-07-03 23:05:10: noteConflict: -
|
|
2017-07-03 23:05:10: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:10: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:10: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:10: Total folders: 1
|
|
2017-07-03 23:05:10: Total notes: 2
|
|
2017-07-03 23:05:10: Total resources: 0
|
|
2017-07-03 23:05:10: SELECT * FROM settings
|
|
2017-07-03 23:05:10: Starting synchronization... [1499119510275]
|
|
2017-07-03 23:05:10: mkdir /root/.sync
|
|
2017-07-03 23:05:10: mkdir /root/.resource
|
|
2017-07-03 23:05:10: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:10: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:10: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:10: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:10: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:10: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:10: list /root
|
|
2017-07-03 23:05:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:10: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:10: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:10: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:10: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:10: get /root/25e634ab18b549a1828dac8169ba0456.md
|
|
2017-07-03 23:05:10: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:10: ["25e634ab18b549a1828dac8169ba0456","folder","1499119508151","1499119508150",1499119510374]
|
|
2017-07-03 23:05:10: Sync: createLocal: remote exists but local does not: (Remote 25e634ab18b549a1828dac8169ba0456, "folder")
|
|
2017-07-03 23:05:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:10: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:10: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:10: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:10: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:10: get /root/8d38edd1993842b384220df6fc97af48.md
|
|
2017-07-03 23:05:10: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:10: ["8d38edd1993842b384220df6fc97af48","","mynote","","1499119508324","1499119508324",1499119510632,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:05:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:10: Sync: createLocal: remote exists but local does not: (Remote 8d38edd1993842b384220df6fc97af48, "mynote")
|
|
2017-07-03 23:05:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:10: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:10: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:10: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:10: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:10: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:10: get /root/dab02755667b450490dd3880ea77d77b.md
|
|
2017-07-03 23:05:10: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:10: ["dab02755667b450490dd3880ea77d77b","","mynote2","","1499119508601","1499119508601",1499119510876,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:05:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:11: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:11: Sync: createLocal: remote exists but local does not: (Remote dab02755667b450490dd3880ea77d77b, "mynote2")
|
|
2017-07-03 23:05:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:11: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:11: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:11: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:11: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:11: get /root/c9d265d94ff446018fef5093dc390bd3.md
|
|
2017-07-03 23:05:11: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3","mytag","1499119508823","1499119508823",1499119511150]
|
|
2017-07-03 23:05:11: Sync: createLocal: remote exists but local does not: (Remote c9d265d94ff446018fef5093dc390bd3, "mytag")
|
|
2017-07-03 23:05:11: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:11: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:11: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:11: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:11: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:11: Synchronization complete [1499119510275]:
|
|
2017-07-03 23:05:11: remotesToUpdate: -
|
|
2017-07-03 23:05:11: remotesToDelete: -
|
|
2017-07-03 23:05:11: localsToUdpate: 4
|
|
2017-07-03 23:05:11: localsToDelete: -
|
|
2017-07-03 23:05:11: createLocal: 4
|
|
2017-07-03 23:05:11: updateLocal: -
|
|
2017-07-03 23:05:11: deleteLocal: -
|
|
2017-07-03 23:05:11: createRemote: -
|
|
2017-07-03 23:05:11: updateRemote: -
|
|
2017-07-03 23:05:11: deleteRemote: -
|
|
2017-07-03 23:05:11: itemConflict: -
|
|
2017-07-03 23:05:11: noteConflict: -
|
|
2017-07-03 23:05:11: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:11: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:11: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:11: Total folders: 1
|
|
2017-07-03 23:05:11: Total notes: 2
|
|
2017-07-03 23:05:11: Total resources: 0
|
|
2017-07-03 23:05:11: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 23:05:11: ["mytag"]
|
|
2017-07-03 23:05:11: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3","8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:11: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:11: ["8d38edd1993842b384220df6fc97af48","c9d265d94ff446018fef5093dc390bd3",1499119511470,"81bd9df50d604b94a31418683bb1a0ad",1499119511470]
|
|
2017-07-03 23:05:11: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3","dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:11: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:11: ["dab02755667b450490dd3880ea77d77b","c9d265d94ff446018fef5093dc390bd3",1499119511627,"c125e82480de40fea32f364163d1e496",1499119511627]
|
|
2017-07-03 23:05:11: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:05:11: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:11: Starting synchronization... [1499119511762]
|
|
2017-07-03 23:05:11: mkdir /root/.sync
|
|
2017-07-03 23:05:11: mkdir /root/.resource
|
|
2017-07-03 23:05:11: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:11: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:11: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:11: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:11: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:11: stat /root/81bd9df50d604b94a31418683bb1a0ad.md
|
|
2017-07-03 23:05:11: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 81bd9df50d604b94a31418683bb1a0ad)
|
|
2017-07-03 23:05:11: put /root/.sync/81bd9df50d604b94a31418683bb1a0ad.md_1499119511840
|
|
2017-07-03 23:05:11: setTimestamp /root/.sync/81bd9df50d604b94a31418683bb1a0ad.md_1499119511840
|
|
2017-07-03 23:05:11: move /root/.sync/81bd9df50d604b94a31418683bb1a0ad.md_1499119511840 => /root/81bd9df50d604b94a31418683bb1a0ad.md
|
|
2017-07-03 23:05:11: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:11: [1499119511851,"81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:11: stat /root/c125e82480de40fea32f364163d1e496.md
|
|
2017-07-03 23:05:11: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c125e82480de40fea32f364163d1e496)
|
|
2017-07-03 23:05:11: put /root/.sync/c125e82480de40fea32f364163d1e496.md_1499119511951
|
|
2017-07-03 23:05:11: setTimestamp /root/.sync/c125e82480de40fea32f364163d1e496.md_1499119511951
|
|
2017-07-03 23:05:11: move /root/.sync/c125e82480de40fea32f364163d1e496.md_1499119511951 => /root/c125e82480de40fea32f364163d1e496.md
|
|
2017-07-03 23:05:11: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:05:11: [1499119511961,"c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:12: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:12: list /root
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:12: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:12: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:12: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:12: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:12: Synchronization complete [1499119511762]:
|
|
2017-07-03 23:05:12: remotesToUpdate: 2
|
|
2017-07-03 23:05:12: remotesToDelete: -
|
|
2017-07-03 23:05:12: localsToUdpate: -
|
|
2017-07-03 23:05:12: localsToDelete: -
|
|
2017-07-03 23:05:12: createLocal: -
|
|
2017-07-03 23:05:12: updateLocal: -
|
|
2017-07-03 23:05:12: deleteLocal: -
|
|
2017-07-03 23:05:12: createRemote: 2
|
|
2017-07-03 23:05:12: updateRemote: -
|
|
2017-07-03 23:05:12: deleteRemote: -
|
|
2017-07-03 23:05:12: itemConflict: -
|
|
2017-07-03 23:05:12: noteConflict: -
|
|
2017-07-03 23:05:12: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:12: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:12: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:12: Total folders: 1
|
|
2017-07-03 23:05:12: Total notes: 2
|
|
2017-07-03 23:05:12: Total resources: 0
|
|
2017-07-03 23:05:12: SELECT * FROM settings
|
|
2017-07-03 23:05:12: Starting synchronization... [1499119512480]
|
|
2017-07-03 23:05:12: mkdir /root/.sync
|
|
2017-07-03 23:05:12: mkdir /root/.resource
|
|
2017-07-03 23:05:12: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:12: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:12: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:12: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:12: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:12: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:12: list /root
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:12: get /root/81bd9df50d604b94a31418683bb1a0ad.md
|
|
2017-07-03 23:05:12: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:12: ["81bd9df50d604b94a31418683bb1a0ad","8d38edd1993842b384220df6fc97af48","c9d265d94ff446018fef5093dc390bd3","1499119511470","1499119511470",1499119512634]
|
|
2017-07-03 23:05:12: Sync: createLocal: remote exists but local does not: (Remote 81bd9df50d604b94a31418683bb1a0ad)
|
|
2017-07-03 23:05:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:12: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:12: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:12: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:12: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:12: get /root/c125e82480de40fea32f364163d1e496.md
|
|
2017-07-03 23:05:12: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:05:12: ["c125e82480de40fea32f364163d1e496","dab02755667b450490dd3880ea77d77b","c9d265d94ff446018fef5093dc390bd3","1499119511627","1499119511627",1499119512886]
|
|
2017-07-03 23:05:13: Sync: createLocal: remote exists but local does not: (Remote c125e82480de40fea32f364163d1e496)
|
|
2017-07-03 23:05:13: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:13: Synchronization complete [1499119512480]:
|
|
2017-07-03 23:05:13: remotesToUpdate: -
|
|
2017-07-03 23:05:13: remotesToDelete: -
|
|
2017-07-03 23:05:13: localsToUdpate: 2
|
|
2017-07-03 23:05:13: localsToDelete: -
|
|
2017-07-03 23:05:13: createLocal: 2
|
|
2017-07-03 23:05:13: updateLocal: -
|
|
2017-07-03 23:05:13: deleteLocal: -
|
|
2017-07-03 23:05:13: createRemote: -
|
|
2017-07-03 23:05:13: updateRemote: -
|
|
2017-07-03 23:05:13: deleteRemote: -
|
|
2017-07-03 23:05:13: itemConflict: -
|
|
2017-07-03 23:05:13: noteConflict: -
|
|
2017-07-03 23:05:13: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:13: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:13: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:13: Total folders: 1
|
|
2017-07-03 23:05:13: Total notes: 2
|
|
2017-07-03 23:05:13: Total resources: 0
|
|
2017-07-03 23:05:13: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:05:13: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:13: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 23:05:13: ["c9d265d94ff446018fef5093dc390bd3","8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:13: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:05:13: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:13: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:05:13: [6,"81bd9df50d604b94a31418683bb1a0ad",1499119513315]
|
|
2017-07-03 23:05:13: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:05:13: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:13: Starting synchronization... [1499119513482]
|
|
2017-07-03 23:05:13: mkdir /root/.sync
|
|
2017-07-03 23:05:13: mkdir /root/.resource
|
|
2017-07-03 23:05:13: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:13: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:13: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:13: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:13: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:13: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:13: Sync: deleteRemote: local has been deleted: (Remote 81bd9df50d604b94a31418683bb1a0ad)
|
|
2017-07-03 23:05:13: delete /root/81bd9df50d604b94a31418683bb1a0ad.md
|
|
2017-07-03 23:05:13: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:05:13: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:13: list /root
|
|
2017-07-03 23:05:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:13: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:13: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:13: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:13: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:13: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:13: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:13: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:13: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:13: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:13: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:13: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:13: Synchronization complete [1499119513482]:
|
|
2017-07-03 23:05:13: remotesToUpdate: -
|
|
2017-07-03 23:05:13: remotesToDelete: 1
|
|
2017-07-03 23:05:13: localsToUdpate: -
|
|
2017-07-03 23:05:13: localsToDelete: -
|
|
2017-07-03 23:05:13: createLocal: -
|
|
2017-07-03 23:05:13: updateLocal: -
|
|
2017-07-03 23:05:13: deleteLocal: -
|
|
2017-07-03 23:05:13: createRemote: -
|
|
2017-07-03 23:05:13: updateRemote: -
|
|
2017-07-03 23:05:13: deleteRemote: 1
|
|
2017-07-03 23:05:13: itemConflict: -
|
|
2017-07-03 23:05:13: noteConflict: -
|
|
2017-07-03 23:05:13: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:13: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:13: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:13: Total folders: 1
|
|
2017-07-03 23:05:13: Total notes: 2
|
|
2017-07-03 23:05:13: Total resources: 0
|
|
2017-07-03 23:05:14: SELECT * FROM settings
|
|
2017-07-03 23:05:14: Starting synchronization... [1499119514078]
|
|
2017-07-03 23:05:14: mkdir /root/.sync
|
|
2017-07-03 23:05:14: mkdir /root/.resource
|
|
2017-07-03 23:05:14: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:14: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:14: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:05:14: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:14: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:05:14: SELECT * FROM deleted_items
|
|
2017-07-03 23:05:14: list /root
|
|
2017-07-03 23:05:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["25e634ab18b549a1828dac8169ba0456"]
|
|
2017-07-03 23:05:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["8d38edd1993842b384220df6fc97af48"]
|
|
2017-07-03 23:05:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["dab02755667b450490dd3880ea77d77b"]
|
|
2017-07-03 23:05:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:14: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:14: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:05:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:14: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:14: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:14: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:05:14: ["c125e82480de40fea32f364163d1e496"]
|
|
2017-07-03 23:05:14: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:05:14: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:05:14: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:05:14: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:05:14: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:05:14: Sync: deleteLocal: remote has been deleted: (Local 81bd9df50d604b94a31418683bb1a0ad)
|
|
2017-07-03 23:05:14: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:05:14: ["81bd9df50d604b94a31418683bb1a0ad"]
|
|
2017-07-03 23:05:14: Synchronization complete [1499119514078]:
|
|
2017-07-03 23:05:14: remotesToUpdate: -
|
|
2017-07-03 23:05:14: remotesToDelete: -
|
|
2017-07-03 23:05:14: localsToUdpate: -
|
|
2017-07-03 23:05:14: localsToDelete: 1
|
|
2017-07-03 23:05:14: createLocal: -
|
|
2017-07-03 23:05:14: updateLocal: -
|
|
2017-07-03 23:05:14: deleteLocal: 1
|
|
2017-07-03 23:05:14: createRemote: -
|
|
2017-07-03 23:05:14: updateRemote: -
|
|
2017-07-03 23:05:14: deleteRemote: -
|
|
2017-07-03 23:05:14: itemConflict: -
|
|
2017-07-03 23:05:14: noteConflict: -
|
|
2017-07-03 23:05:14: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:05:14: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:05:14: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:05:14: Total folders: 1
|
|
2017-07-03 23:05:14: Total notes: 2
|
|
2017-07-03 23:05:14: Total resources: 0
|
|
2017-07-03 23:05:14: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:05:14: ["c9d265d94ff446018fef5093dc390bd3"]
|
|
2017-07-03 23:06:53: Database was open successfully
|
|
2017-07-03 23:06:53: Checking for database schema update...
|
|
2017-07-03 23:06:53: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:06:53: Database is new - creating the schema...
|
|
2017-07-03 23:06:53: BEGIN TRANSACTION
|
|
2017-07-03 23:06:53: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:53: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:06:53: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:06:53: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:06:53: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:53: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:06:53: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:06:53: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:06:53: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:06:53: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:06:53: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:06:53: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:06:53: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:53: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:53: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:53: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:06:53: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:06:53: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:06:53: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:06:53: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "321c2bf5b6a8436ab8d6d6fc182f29a6", "2")
|
|
2017-07-03 23:06:53: COMMIT
|
|
2017-07-03 23:06:54: Database schema created successfully
|
|
2017-07-03 23:06:54: Initializing tables...
|
|
2017-07-03 23:06:54: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:06:54: PRAGMA table_info("folders")
|
|
2017-07-03 23:06:54: PRAGMA table_info("notes")
|
|
2017-07-03 23:06:54: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:06:54: PRAGMA table_info("tags")
|
|
2017-07-03 23:06:54: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:06:54: PRAGMA table_info("resources")
|
|
2017-07-03 23:06:54: PRAGMA table_info("settings")
|
|
2017-07-03 23:06:54: PRAGMA table_info("version")
|
|
2017-07-03 23:06:54: BEGIN TRANSACTION
|
|
2017-07-03 23:06:54: DELETE FROM table_fields
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["folders","id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["folders","parent_id",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["folders","title",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["folders","created_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["folders","updated_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","parent_id",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","title",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","body",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","created_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","updated_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","author",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","source_url",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","source",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","source_application",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","application_data",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["notes","order",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["deleted_items","id",null,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["tags","id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["tags","title",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["tags","created_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["tags","updated_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["note_tags","id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["resources","id",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["resources","title",2,""]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["resources","mime",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["resources","filename",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["resources","created_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["resources","updated_time",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["settings","key",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["settings","value",2,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["settings","type",1,null]
|
|
2017-07-03 23:06:54: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:54: ["version","version",1,null]
|
|
2017-07-03 23:06:54: COMMIT
|
|
2017-07-03 23:06:54: Checking for database schema update...
|
|
2017-07-03 23:06:54: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:06:54: Current database version
|
|
2017-07-03 23:06:54: SELECT * FROM table_fields
|
|
2017-07-03 23:06:54: BEGIN TRANSACTION
|
|
2017-07-03 23:06:54: DELETE FROM notes
|
|
2017-07-03 23:06:54: DELETE FROM folders
|
|
2017-07-03 23:06:54: DELETE FROM resources
|
|
2017-07-03 23:06:54: DELETE FROM tags
|
|
2017-07-03 23:06:54: DELETE FROM note_tags
|
|
2017-07-03 23:06:54: COMMIT
|
|
2017-07-03 23:06:55: SELECT * FROM settings
|
|
2017-07-03 23:06:55: Database was open successfully
|
|
2017-07-03 23:06:55: Checking for database schema update...
|
|
2017-07-03 23:06:55: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:06:55: Database is new - creating the schema...
|
|
2017-07-03 23:06:55: BEGIN TRANSACTION
|
|
2017-07-03 23:06:55: CREATE TABLE folders ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:55: CREATE INDEX folders_title ON folders (title);
|
|
2017-07-03 23:06:55: CREATE INDEX folders_updated_time ON folders (updated_time);
|
|
2017-07-03 23:06:55: CREATE INDEX folders_sync_time ON folders (sync_time);
|
|
2017-07-03 23:06:55: CREATE TABLE notes ( id TEXT PRIMARY KEY, parent_id TEXT NOT NULL DEFAULT "", title TEXT NOT NULL DEFAULT "", body TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0, is_conflict INT NOT NULL DEFAULT 0, latitude NUMERIC NOT NULL DEFAULT 0, longitude NUMERIC NOT NULL DEFAULT 0, altitude NUMERIC NOT NULL DEFAULT 0, author TEXT NOT NULL DEFAULT "", source_url TEXT NOT NULL DEFAULT "", is_todo INT NOT NULL DEFAULT 0, todo_due INT NOT NULL DEFAULT 0, todo_completed INT NOT NULL DEFAULT 0, source TEXT NOT NULL DEFAULT "", source_application TEXT NOT NULL DEFAULT "", application_data TEXT NOT NULL DEFAULT "", `order` INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:55: CREATE INDEX notes_title ON notes (title);
|
|
2017-07-03 23:06:55: CREATE INDEX notes_updated_time ON notes (updated_time);
|
|
2017-07-03 23:06:55: CREATE INDEX notes_sync_time ON notes (sync_time);
|
|
2017-07-03 23:06:55: CREATE INDEX notes_is_conflict ON notes (is_conflict);
|
|
2017-07-03 23:06:55: CREATE INDEX notes_is_todo ON notes (is_todo);
|
|
2017-07-03 23:06:55: CREATE INDEX notes_order ON notes (`order`);
|
|
2017-07-03 23:06:55: CREATE TABLE deleted_items ( id INTEGER PRIMARY KEY, item_type INT NOT NULL, item_id TEXT NOT NULL, deleted_time INT NOT NULL);
|
|
2017-07-03 23:06:55: CREATE TABLE tags ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:55: CREATE TABLE note_tags ( id TEXT PRIMARY KEY, note_id TEXT NOT NULL, tag_id TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:55: CREATE TABLE resources ( id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", mime TEXT NOT NULL, filename TEXT NOT NULL, created_time INT NOT NULL, updated_time INT NOT NULL, sync_time INT NOT NULL DEFAULT 0);
|
|
2017-07-03 23:06:55: CREATE TABLE settings ( `key` TEXT PRIMARY KEY, `value` TEXT, `type` INT);
|
|
2017-07-03 23:06:55: CREATE TABLE table_fields ( id INTEGER PRIMARY KEY, table_name TEXT, field_name TEXT, field_type INT, field_default TEXT);
|
|
2017-07-03 23:06:55: CREATE TABLE version ( version INT);
|
|
2017-07-03 23:06:55: INSERT INTO version (version) VALUES (1);
|
|
2017-07-03 23:06:55: INSERT INTO settings (`key`, `value`, `type`) VALUES ("clientId", "02f30730515a4188ad2139698b983725", "2")
|
|
2017-07-03 23:06:55: COMMIT
|
|
2017-07-03 23:06:55: Database schema created successfully
|
|
2017-07-03 23:06:55: Initializing tables...
|
|
2017-07-03 23:06:55: SELECT name FROM sqlite_master WHERE type="table"
|
|
2017-07-03 23:06:55: PRAGMA table_info("folders")
|
|
2017-07-03 23:06:55: PRAGMA table_info("notes")
|
|
2017-07-03 23:06:55: PRAGMA table_info("deleted_items")
|
|
2017-07-03 23:06:55: PRAGMA table_info("tags")
|
|
2017-07-03 23:06:55: PRAGMA table_info("note_tags")
|
|
2017-07-03 23:06:55: PRAGMA table_info("resources")
|
|
2017-07-03 23:06:55: PRAGMA table_info("settings")
|
|
2017-07-03 23:06:55: PRAGMA table_info("version")
|
|
2017-07-03 23:06:55: BEGIN TRANSACTION
|
|
2017-07-03 23:06:55: DELETE FROM table_fields
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["folders","id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["folders","parent_id",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["folders","title",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["folders","created_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["folders","updated_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["folders","sync_time",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","parent_id",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","title",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","body",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","created_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","updated_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","sync_time",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","is_conflict",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","latitude",3,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","longitude",3,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","altitude",3,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","author",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","source_url",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","is_todo",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","todo_due",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","todo_completed",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","source",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","source_application",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","application_data",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["notes","order",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["deleted_items","id",null,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["deleted_items","item_type",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["deleted_items","item_id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["deleted_items","deleted_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["tags","id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["tags","title",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["tags","created_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["tags","updated_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["tags","sync_time",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["note_tags","id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["note_tags","note_id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["note_tags","tag_id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["note_tags","created_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["note_tags","updated_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["note_tags","sync_time",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["resources","id",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["resources","title",2,""]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["resources","mime",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["resources","filename",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["resources","created_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["resources","updated_time",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["resources","sync_time",1,"0"]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["settings","key",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["settings","value",2,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["settings","type",1,null]
|
|
2017-07-03 23:06:55: INSERT INTO `table_fields` (`table_name`, `field_name`, `field_type`, `field_default`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:55: ["version","version",1,null]
|
|
2017-07-03 23:06:55: COMMIT
|
|
2017-07-03 23:06:56: Checking for database schema update...
|
|
2017-07-03 23:06:56: SELECT * FROM version LIMIT 1
|
|
2017-07-03 23:06:56: Current database version
|
|
2017-07-03 23:06:56: SELECT * FROM table_fields
|
|
2017-07-03 23:06:56: BEGIN TRANSACTION
|
|
2017-07-03 23:06:56: DELETE FROM notes
|
|
2017-07-03 23:06:56: DELETE FROM folders
|
|
2017-07-03 23:06:56: DELETE FROM resources
|
|
2017-07-03 23:06:56: DELETE FROM tags
|
|
2017-07-03 23:06:56: DELETE FROM note_tags
|
|
2017-07-03 23:06:56: COMMIT
|
|
2017-07-03 23:06:56: SELECT * FROM settings
|
|
2017-07-03 23:06:56: SELECT * FROM settings
|
|
2017-07-03 23:06:56: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:56: ["folder1",1499119616729,"16fe8facfc944878a5a9bc781d884904",1499119616730]
|
|
2017-07-03 23:06:56: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:06:56: ["16fe8facfc944878a5a9bc781d884904","un","joplin","SET_ME",1499119616921,"dc0c1990517746ec9132225a003c17d2",1499119616922]
|
|
2017-07-03 23:06:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:06:57: ["dc0c1990517746ec9132225a003c17d2"]
|
|
2017-07-03 23:06:57: SELECT * FROM `folders`
|
|
2017-07-03 23:06:57: SELECT * FROM `notes`
|
|
2017-07-03 23:06:57: Starting synchronization... [1499119617144]
|
|
2017-07-03 23:06:57: mkdir /root/.sync
|
|
2017-07-03 23:06:57: mkdir /root/.resource
|
|
2017-07-03 23:06:57: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:57: stat /root/16fe8facfc944878a5a9bc781d884904.md
|
|
2017-07-03 23:06:57: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 16fe8facfc944878a5a9bc781d884904, "folder1")
|
|
2017-07-03 23:06:57: put /root/.sync/16fe8facfc944878a5a9bc781d884904.md_1499119617181
|
|
2017-07-03 23:06:57: setTimestamp /root/.sync/16fe8facfc944878a5a9bc781d884904.md_1499119617181
|
|
2017-07-03 23:06:57: move /root/.sync/16fe8facfc944878a5a9bc781d884904.md_1499119617181 => /root/16fe8facfc944878a5a9bc781d884904.md
|
|
2017-07-03 23:06:57: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:06:57: [1499119617191,"16fe8facfc944878a5a9bc781d884904"]
|
|
2017-07-03 23:06:57: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:57: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:57: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:06:57: stat /root/dc0c1990517746ec9132225a003c17d2.md
|
|
2017-07-03 23:06:57: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local dc0c1990517746ec9132225a003c17d2, "un")
|
|
2017-07-03 23:06:57: put /root/.sync/dc0c1990517746ec9132225a003c17d2.md_1499119617320
|
|
2017-07-03 23:06:57: setTimestamp /root/.sync/dc0c1990517746ec9132225a003c17d2.md_1499119617320
|
|
2017-07-03 23:06:57: move /root/.sync/dc0c1990517746ec9132225a003c17d2.md_1499119617320 => /root/dc0c1990517746ec9132225a003c17d2.md
|
|
2017-07-03 23:06:57: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:06:57: [1499119617328,"dc0c1990517746ec9132225a003c17d2"]
|
|
2017-07-03 23:06:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:06:57: ["dc0c1990517746ec9132225a003c17d2"]
|
|
2017-07-03 23:06:57: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:57: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:57: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:06:57: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:57: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:57: SELECT * FROM deleted_items
|
|
2017-07-03 23:06:57: list /root
|
|
2017-07-03 23:06:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:06:57: ["16fe8facfc944878a5a9bc781d884904"]
|
|
2017-07-03 23:06:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:06:57: ["16fe8facfc944878a5a9bc781d884904"]
|
|
2017-07-03 23:06:57: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:06:57: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:06:57: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:06:57: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:06:57: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:06:57: Synchronization complete [1499119617144]:
|
|
2017-07-03 23:06:57: remotesToUpdate: 2
|
|
2017-07-03 23:06:57: remotesToDelete: -
|
|
2017-07-03 23:06:57: localsToUdpate: -
|
|
2017-07-03 23:06:57: localsToDelete: -
|
|
2017-07-03 23:06:57: createLocal: -
|
|
2017-07-03 23:06:57: updateLocal: -
|
|
2017-07-03 23:06:57: deleteLocal: -
|
|
2017-07-03 23:06:57: createRemote: 2
|
|
2017-07-03 23:06:57: updateRemote: -
|
|
2017-07-03 23:06:57: deleteRemote: -
|
|
2017-07-03 23:06:57: itemConflict: -
|
|
2017-07-03 23:06:57: noteConflict: -
|
|
2017-07-03 23:06:57: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:06:57: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:06:57: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:06:57: Total folders: 1
|
|
2017-07-03 23:06:57: Total notes: 1
|
|
2017-07-03 23:06:57: Total resources: 0
|
|
2017-07-03 23:06:57: list /root
|
|
2017-07-03 23:06:57: stat /root/16fe8facfc944878a5a9bc781d884904.md
|
|
2017-07-03 23:06:57: get /root/16fe8facfc944878a5a9bc781d884904.md
|
|
2017-07-03 23:06:57: stat /root/dc0c1990517746ec9132225a003c17d2.md
|
|
2017-07-03 23:06:57: get /root/dc0c1990517746ec9132225a003c17d2.md
|
|
2017-07-03 23:06:57: BEGIN TRANSACTION
|
|
2017-07-03 23:06:57: DELETE FROM notes
|
|
2017-07-03 23:06:57: DELETE FROM folders
|
|
2017-07-03 23:06:57: DELETE FROM resources
|
|
2017-07-03 23:06:57: DELETE FROM tags
|
|
2017-07-03 23:06:57: DELETE FROM note_tags
|
|
2017-07-03 23:06:57: COMMIT
|
|
2017-07-03 23:06:57: SELECT * FROM settings
|
|
2017-07-03 23:06:57: BEGIN TRANSACTION
|
|
2017-07-03 23:06:57: DELETE FROM notes
|
|
2017-07-03 23:06:57: DELETE FROM folders
|
|
2017-07-03 23:06:57: DELETE FROM resources
|
|
2017-07-03 23:06:57: DELETE FROM tags
|
|
2017-07-03 23:06:58: DELETE FROM note_tags
|
|
2017-07-03 23:06:58: COMMIT
|
|
2017-07-03 23:06:58: SELECT * FROM settings
|
|
2017-07-03 23:06:58: SELECT * FROM settings
|
|
2017-07-03 23:06:58: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:06:58: ["folder1",1499119618507,"7e33093fffb44e43802f065098d2c14f",1499119618507]
|
|
2017-07-03 23:06:58: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:06:58: ["7e33093fffb44e43802f065098d2c14f","un","joplin","SET_ME",1499119618697,"88255d9f9c77499fba4e9b55cd529255",1499119618697]
|
|
2017-07-03 23:06:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:06:58: ["88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:06:58: Starting synchronization... [1499119618967]
|
|
2017-07-03 23:06:58: mkdir /root/.sync
|
|
2017-07-03 23:06:58: mkdir /root/.resource
|
|
2017-07-03 23:06:58: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:58: stat /root/7e33093fffb44e43802f065098d2c14f.md
|
|
2017-07-03 23:06:58: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 7e33093fffb44e43802f065098d2c14f, "folder1")
|
|
2017-07-03 23:06:59: put /root/.sync/7e33093fffb44e43802f065098d2c14f.md_1499119619004
|
|
2017-07-03 23:06:59: setTimestamp /root/.sync/7e33093fffb44e43802f065098d2c14f.md_1499119619004
|
|
2017-07-03 23:06:59: move /root/.sync/7e33093fffb44e43802f065098d2c14f.md_1499119619004 => /root/7e33093fffb44e43802f065098d2c14f.md
|
|
2017-07-03 23:06:59: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:06:59: [1499119619014,"7e33093fffb44e43802f065098d2c14f"]
|
|
2017-07-03 23:06:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:06:59: stat /root/88255d9f9c77499fba4e9b55cd529255.md
|
|
2017-07-03 23:06:59: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 88255d9f9c77499fba4e9b55cd529255, "un")
|
|
2017-07-03 23:06:59: put /root/.sync/88255d9f9c77499fba4e9b55cd529255.md_1499119619266
|
|
2017-07-03 23:06:59: setTimestamp /root/.sync/88255d9f9c77499fba4e9b55cd529255.md_1499119619266
|
|
2017-07-03 23:06:59: move /root/.sync/88255d9f9c77499fba4e9b55cd529255.md_1499119619266 => /root/88255d9f9c77499fba4e9b55cd529255.md
|
|
2017-07-03 23:06:59: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:06:59: [1499119619284,"88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:06:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:06:59: ["88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:06:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:06:59: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:59: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:06:59: SELECT * FROM deleted_items
|
|
2017-07-03 23:06:59: list /root
|
|
2017-07-03 23:06:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:06:59: ["7e33093fffb44e43802f065098d2c14f"]
|
|
2017-07-03 23:06:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:06:59: ["7e33093fffb44e43802f065098d2c14f"]
|
|
2017-07-03 23:06:59: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:06:59: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:06:59: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:06:59: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:06:59: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:06:59: Synchronization complete [1499119618967]:
|
|
2017-07-03 23:06:59: remotesToUpdate: 2
|
|
2017-07-03 23:06:59: remotesToDelete: -
|
|
2017-07-03 23:06:59: localsToUdpate: -
|
|
2017-07-03 23:06:59: localsToDelete: -
|
|
2017-07-03 23:06:59: createLocal: -
|
|
2017-07-03 23:06:59: updateLocal: -
|
|
2017-07-03 23:06:59: deleteLocal: -
|
|
2017-07-03 23:06:59: createRemote: 2
|
|
2017-07-03 23:06:59: updateRemote: -
|
|
2017-07-03 23:06:59: deleteRemote: -
|
|
2017-07-03 23:06:59: itemConflict: -
|
|
2017-07-03 23:06:59: noteConflict: -
|
|
2017-07-03 23:06:59: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:06:59: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:06:59: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:06:59: Total folders: 1
|
|
2017-07-03 23:06:59: Total notes: 1
|
|
2017-07-03 23:06:59: Total resources: 0
|
|
2017-07-03 23:06:59: UPDATE `notes` SET `title`=?, `updated_time`=? WHERE id=?
|
|
2017-07-03 23:06:59: ["un UPDATE",1499119619719,"88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:06:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:06:59: ["88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:06:59: SELECT * FROM `folders`
|
|
2017-07-03 23:06:59: SELECT * FROM `notes`
|
|
2017-07-03 23:06:59: Starting synchronization... [1499119619976]
|
|
2017-07-03 23:06:59: mkdir /root/.sync
|
|
2017-07-03 23:06:59: mkdir /root/.resource
|
|
2017-07-03 23:07:00: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:00: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:00: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:00: stat /root/88255d9f9c77499fba4e9b55cd529255.md
|
|
2017-07-03 23:07:00: Sync: updateRemote: local has changes: (Local 88255d9f9c77499fba4e9b55cd529255, "un UPDATE"): (Remote )
|
|
2017-07-03 23:07:00: put /root/.sync/88255d9f9c77499fba4e9b55cd529255.md_1499119620077
|
|
2017-07-03 23:07:00: setTimestamp /root/.sync/88255d9f9c77499fba4e9b55cd529255.md_1499119620077
|
|
2017-07-03 23:07:00: move /root/.sync/88255d9f9c77499fba4e9b55cd529255.md_1499119620077 => /root/88255d9f9c77499fba4e9b55cd529255.md
|
|
2017-07-03 23:07:00: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:00: [1499119620110,"88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:07:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:00: ["88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:07:00: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:00: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:00: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:00: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:00: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:00: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:00: list /root
|
|
2017-07-03 23:07:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:00: ["7e33093fffb44e43802f065098d2c14f"]
|
|
2017-07-03 23:07:00: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:00: ["7e33093fffb44e43802f065098d2c14f"]
|
|
2017-07-03 23:07:00: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:00: ["88255d9f9c77499fba4e9b55cd529255"]
|
|
2017-07-03 23:07:00: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:00: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:00: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:00: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:00: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:00: Synchronization complete [1499119619976]:
|
|
2017-07-03 23:07:00: remotesToUpdate: 1
|
|
2017-07-03 23:07:00: remotesToDelete: -
|
|
2017-07-03 23:07:00: localsToUdpate: -
|
|
2017-07-03 23:07:00: localsToDelete: -
|
|
2017-07-03 23:07:00: createLocal: -
|
|
2017-07-03 23:07:00: updateLocal: -
|
|
2017-07-03 23:07:00: deleteLocal: -
|
|
2017-07-03 23:07:00: createRemote: -
|
|
2017-07-03 23:07:00: updateRemote: 1
|
|
2017-07-03 23:07:00: deleteRemote: -
|
|
2017-07-03 23:07:00: itemConflict: -
|
|
2017-07-03 23:07:00: noteConflict: -
|
|
2017-07-03 23:07:00: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:00: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:00: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:00: Total folders: 1
|
|
2017-07-03 23:07:00: Total notes: 1
|
|
2017-07-03 23:07:00: Total resources: 0
|
|
2017-07-03 23:07:00: list /root
|
|
2017-07-03 23:07:00: stat /root/7e33093fffb44e43802f065098d2c14f.md
|
|
2017-07-03 23:07:00: get /root/7e33093fffb44e43802f065098d2c14f.md
|
|
2017-07-03 23:07:00: stat /root/88255d9f9c77499fba4e9b55cd529255.md
|
|
2017-07-03 23:07:00: get /root/88255d9f9c77499fba4e9b55cd529255.md
|
|
2017-07-03 23:07:00: BEGIN TRANSACTION
|
|
2017-07-03 23:07:00: DELETE FROM notes
|
|
2017-07-03 23:07:00: DELETE FROM folders
|
|
2017-07-03 23:07:00: DELETE FROM resources
|
|
2017-07-03 23:07:00: DELETE FROM tags
|
|
2017-07-03 23:07:00: DELETE FROM note_tags
|
|
2017-07-03 23:07:00: COMMIT
|
|
2017-07-03 23:07:00: SELECT * FROM settings
|
|
2017-07-03 23:07:00: BEGIN TRANSACTION
|
|
2017-07-03 23:07:00: DELETE FROM notes
|
|
2017-07-03 23:07:00: DELETE FROM folders
|
|
2017-07-03 23:07:00: DELETE FROM resources
|
|
2017-07-03 23:07:00: DELETE FROM tags
|
|
2017-07-03 23:07:00: DELETE FROM note_tags
|
|
2017-07-03 23:07:00: COMMIT
|
|
2017-07-03 23:07:00: SELECT * FROM settings
|
|
2017-07-03 23:07:01: SELECT * FROM settings
|
|
2017-07-03 23:07:01: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:01: ["folder1",1499119621210,"5e02da131929449bb3a3cb58ed3dad11",1499119621210]
|
|
2017-07-03 23:07:01: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:01: ["5e02da131929449bb3a3cb58ed3dad11","un","joplin","SET_ME",1499119621361,"b792b1a629574966afd018d59281de0d",1499119621361]
|
|
2017-07-03 23:07:01: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:01: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:01: Starting synchronization... [1499119621720]
|
|
2017-07-03 23:07:01: mkdir /root/.sync
|
|
2017-07-03 23:07:01: mkdir /root/.resource
|
|
2017-07-03 23:07:01: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:01: stat /root/5e02da131929449bb3a3cb58ed3dad11.md
|
|
2017-07-03 23:07:01: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 5e02da131929449bb3a3cb58ed3dad11, "folder1")
|
|
2017-07-03 23:07:01: put /root/.sync/5e02da131929449bb3a3cb58ed3dad11.md_1499119621767
|
|
2017-07-03 23:07:01: setTimestamp /root/.sync/5e02da131929449bb3a3cb58ed3dad11.md_1499119621767
|
|
2017-07-03 23:07:01: move /root/.sync/5e02da131929449bb3a3cb58ed3dad11.md_1499119621767 => /root/5e02da131929449bb3a3cb58ed3dad11.md
|
|
2017-07-03 23:07:01: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:01: [1499119621786,"5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:01: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:01: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:01: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:01: stat /root/b792b1a629574966afd018d59281de0d.md
|
|
2017-07-03 23:07:01: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local b792b1a629574966afd018d59281de0d, "un")
|
|
2017-07-03 23:07:01: put /root/.sync/b792b1a629574966afd018d59281de0d.md_1499119621974
|
|
2017-07-03 23:07:01: setTimestamp /root/.sync/b792b1a629574966afd018d59281de0d.md_1499119621974
|
|
2017-07-03 23:07:01: move /root/.sync/b792b1a629574966afd018d59281de0d.md_1499119621974 => /root/b792b1a629574966afd018d59281de0d.md
|
|
2017-07-03 23:07:01: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:01: [1499119621989,"b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:02: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:02: list /root
|
|
2017-07-03 23:07:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:02: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:02: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:02: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:02: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:02: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:02: Synchronization complete [1499119621720]:
|
|
2017-07-03 23:07:02: remotesToUpdate: 2
|
|
2017-07-03 23:07:02: remotesToDelete: -
|
|
2017-07-03 23:07:02: localsToUdpate: -
|
|
2017-07-03 23:07:02: localsToDelete: -
|
|
2017-07-03 23:07:02: createLocal: -
|
|
2017-07-03 23:07:02: updateLocal: -
|
|
2017-07-03 23:07:02: deleteLocal: -
|
|
2017-07-03 23:07:02: createRemote: 2
|
|
2017-07-03 23:07:02: updateRemote: -
|
|
2017-07-03 23:07:02: deleteRemote: -
|
|
2017-07-03 23:07:02: itemConflict: -
|
|
2017-07-03 23:07:02: noteConflict: -
|
|
2017-07-03 23:07:02: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:02: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:02: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:02: Total folders: 1
|
|
2017-07-03 23:07:02: Total notes: 1
|
|
2017-07-03 23:07:02: Total resources: 0
|
|
2017-07-03 23:07:02: SELECT * FROM settings
|
|
2017-07-03 23:07:02: Starting synchronization... [1499119622497]
|
|
2017-07-03 23:07:02: mkdir /root/.sync
|
|
2017-07-03 23:07:02: mkdir /root/.resource
|
|
2017-07-03 23:07:02: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:02: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:02: list /root
|
|
2017-07-03 23:07:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:02: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:02: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:02: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11"]
|
|
2017-07-03 23:07:02: get /root/5e02da131929449bb3a3cb58ed3dad11.md
|
|
2017-07-03 23:07:02: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:02: ["5e02da131929449bb3a3cb58ed3dad11","folder1","1499119621210","1499119621210",1499119622595]
|
|
2017-07-03 23:07:02: Sync: createLocal: remote exists but local does not: (Remote 5e02da131929449bb3a3cb58ed3dad11, "folder1")
|
|
2017-07-03 23:07:02: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:02: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:02: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:02: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:02: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:02: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:02: get /root/b792b1a629574966afd018d59281de0d.md
|
|
2017-07-03 23:07:02: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:02: ["b792b1a629574966afd018d59281de0d","5e02da131929449bb3a3cb58ed3dad11","un","","1499119621361","1499119621361",1499119622829,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:03: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:03: ["b792b1a629574966afd018d59281de0d"]
|
|
2017-07-03 23:07:03: Sync: createLocal: remote exists but local does not: (Remote b792b1a629574966afd018d59281de0d, "un")
|
|
2017-07-03 23:07:03: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:03: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:03: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:03: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:03: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:03: Synchronization complete [1499119622497]:
|
|
2017-07-03 23:07:03: remotesToUpdate: -
|
|
2017-07-03 23:07:03: remotesToDelete: -
|
|
2017-07-03 23:07:03: localsToUdpate: 2
|
|
2017-07-03 23:07:03: localsToDelete: -
|
|
2017-07-03 23:07:03: createLocal: 2
|
|
2017-07-03 23:07:03: updateLocal: -
|
|
2017-07-03 23:07:03: deleteLocal: -
|
|
2017-07-03 23:07:03: createRemote: -
|
|
2017-07-03 23:07:03: updateRemote: -
|
|
2017-07-03 23:07:03: deleteRemote: -
|
|
2017-07-03 23:07:03: itemConflict: -
|
|
2017-07-03 23:07:03: noteConflict: -
|
|
2017-07-03 23:07:03: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:03: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:03: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:03: Total folders: 1
|
|
2017-07-03 23:07:03: Total notes: 1
|
|
2017-07-03 23:07:03: Total resources: 0
|
|
2017-07-03 23:07:03: SELECT * FROM `folders`
|
|
2017-07-03 23:07:03: SELECT * FROM `notes`
|
|
2017-07-03 23:07:03: list /root
|
|
2017-07-03 23:07:03: stat /root/5e02da131929449bb3a3cb58ed3dad11.md
|
|
2017-07-03 23:07:03: get /root/5e02da131929449bb3a3cb58ed3dad11.md
|
|
2017-07-03 23:07:03: stat /root/b792b1a629574966afd018d59281de0d.md
|
|
2017-07-03 23:07:03: get /root/b792b1a629574966afd018d59281de0d.md
|
|
2017-07-03 23:07:03: BEGIN TRANSACTION
|
|
2017-07-03 23:07:03: DELETE FROM notes
|
|
2017-07-03 23:07:03: DELETE FROM folders
|
|
2017-07-03 23:07:03: DELETE FROM resources
|
|
2017-07-03 23:07:03: DELETE FROM tags
|
|
2017-07-03 23:07:03: DELETE FROM note_tags
|
|
2017-07-03 23:07:03: COMMIT
|
|
2017-07-03 23:07:03: SELECT * FROM settings
|
|
2017-07-03 23:07:03: BEGIN TRANSACTION
|
|
2017-07-03 23:07:03: DELETE FROM notes
|
|
2017-07-03 23:07:03: DELETE FROM folders
|
|
2017-07-03 23:07:03: DELETE FROM resources
|
|
2017-07-03 23:07:03: DELETE FROM tags
|
|
2017-07-03 23:07:03: DELETE FROM note_tags
|
|
2017-07-03 23:07:03: COMMIT
|
|
2017-07-03 23:07:03: SELECT * FROM settings
|
|
2017-07-03 23:07:03: SELECT * FROM settings
|
|
2017-07-03 23:07:03: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:04: ["folder1",1499119623991,"6d7b0e5fc33242619b3a504b21b68968",1499119623991]
|
|
2017-07-03 23:07:04: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:04: ["6d7b0e5fc33242619b3a504b21b68968","un","joplin","SET_ME",1499119624160,"7519e94644cc446ebfb3a447b3b207b8",1499119624161]
|
|
2017-07-03 23:07:04: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:04: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:04: Starting synchronization... [1499119624350]
|
|
2017-07-03 23:07:04: mkdir /root/.sync
|
|
2017-07-03 23:07:04: mkdir /root/.resource
|
|
2017-07-03 23:07:04: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:04: stat /root/6d7b0e5fc33242619b3a504b21b68968.md
|
|
2017-07-03 23:07:04: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 6d7b0e5fc33242619b3a504b21b68968, "folder1")
|
|
2017-07-03 23:07:04: put /root/.sync/6d7b0e5fc33242619b3a504b21b68968.md_1499119624419
|
|
2017-07-03 23:07:04: setTimestamp /root/.sync/6d7b0e5fc33242619b3a504b21b68968.md_1499119624419
|
|
2017-07-03 23:07:04: move /root/.sync/6d7b0e5fc33242619b3a504b21b68968.md_1499119624419 => /root/6d7b0e5fc33242619b3a504b21b68968.md
|
|
2017-07-03 23:07:04: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:04: [1499119624441,"6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:04: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:04: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:04: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:04: stat /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:04: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 7519e94644cc446ebfb3a447b3b207b8, "un")
|
|
2017-07-03 23:07:04: put /root/.sync/7519e94644cc446ebfb3a447b3b207b8.md_1499119624610
|
|
2017-07-03 23:07:04: setTimestamp /root/.sync/7519e94644cc446ebfb3a447b3b207b8.md_1499119624610
|
|
2017-07-03 23:07:04: move /root/.sync/7519e94644cc446ebfb3a447b3b207b8.md_1499119624610 => /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:04: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:04: [1499119624629,"7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:04: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:04: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:04: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:04: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:04: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:04: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:04: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:04: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:04: list /root
|
|
2017-07-03 23:07:04: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:04: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:04: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:04: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:04: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:04: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:04: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:04: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:04: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:04: Synchronization complete [1499119624350]:
|
|
2017-07-03 23:07:04: remotesToUpdate: 2
|
|
2017-07-03 23:07:04: remotesToDelete: -
|
|
2017-07-03 23:07:04: localsToUdpate: -
|
|
2017-07-03 23:07:04: localsToDelete: -
|
|
2017-07-03 23:07:04: createLocal: -
|
|
2017-07-03 23:07:04: updateLocal: -
|
|
2017-07-03 23:07:04: deleteLocal: -
|
|
2017-07-03 23:07:04: createRemote: 2
|
|
2017-07-03 23:07:04: updateRemote: -
|
|
2017-07-03 23:07:04: deleteRemote: -
|
|
2017-07-03 23:07:04: itemConflict: -
|
|
2017-07-03 23:07:04: noteConflict: -
|
|
2017-07-03 23:07:04: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:04: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:04: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:04: Total folders: 1
|
|
2017-07-03 23:07:04: Total notes: 1
|
|
2017-07-03 23:07:04: Total resources: 0
|
|
2017-07-03 23:07:05: SELECT * FROM settings
|
|
2017-07-03 23:07:05: Starting synchronization... [1499119625154]
|
|
2017-07-03 23:07:05: mkdir /root/.sync
|
|
2017-07-03 23:07:05: mkdir /root/.resource
|
|
2017-07-03 23:07:05: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:05: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:05: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:05: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:05: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:05: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:05: list /root
|
|
2017-07-03 23:07:05: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:05: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:05: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:05: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:05: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:05: get /root/6d7b0e5fc33242619b3a504b21b68968.md
|
|
2017-07-03 23:07:05: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:05: ["6d7b0e5fc33242619b3a504b21b68968","folder1","1499119623991","1499119623991",1499119625294]
|
|
2017-07-03 23:07:05: Sync: createLocal: remote exists but local does not: (Remote 6d7b0e5fc33242619b3a504b21b68968, "folder1")
|
|
2017-07-03 23:07:05: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:05: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:05: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:05: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:05: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:05: get /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:05: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:05: ["7519e94644cc446ebfb3a447b3b207b8","6d7b0e5fc33242619b3a504b21b68968","un","","1499119624161","1499119624160",1499119625632,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:05: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:05: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:05: Sync: createLocal: remote exists but local does not: (Remote 7519e94644cc446ebfb3a447b3b207b8, "un")
|
|
2017-07-03 23:07:05: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:05: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:05: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:05: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:05: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:05: Synchronization complete [1499119625154]:
|
|
2017-07-03 23:07:05: remotesToUpdate: -
|
|
2017-07-03 23:07:05: remotesToDelete: -
|
|
2017-07-03 23:07:05: localsToUdpate: 2
|
|
2017-07-03 23:07:05: localsToDelete: -
|
|
2017-07-03 23:07:05: createLocal: 2
|
|
2017-07-03 23:07:05: updateLocal: -
|
|
2017-07-03 23:07:05: deleteLocal: -
|
|
2017-07-03 23:07:05: createRemote: -
|
|
2017-07-03 23:07:05: updateRemote: -
|
|
2017-07-03 23:07:05: deleteRemote: -
|
|
2017-07-03 23:07:05: itemConflict: -
|
|
2017-07-03 23:07:05: noteConflict: -
|
|
2017-07-03 23:07:05: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:05: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:05: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:05: Total folders: 1
|
|
2017-07-03 23:07:05: Total notes: 1
|
|
2017-07-03 23:07:05: Total resources: 0
|
|
2017-07-03 23:07:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:06: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:06: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `is_conflict`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:07:06: ["6d7b0e5fc33242619b3a504b21b68968","Updated on client 2","",1499119624161,1499119626065,1499119625632,0,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:06: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:06: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:06: Starting synchronization... [1499119626305]
|
|
2017-07-03 23:07:06: mkdir /root/.sync
|
|
2017-07-03 23:07:06: mkdir /root/.resource
|
|
2017-07-03 23:07:06: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:06: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:06: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:06: stat /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:06: Sync: updateRemote: local has changes: (Local 7519e94644cc446ebfb3a447b3b207b8, "Updated on client 2"): (Remote )
|
|
2017-07-03 23:07:06: put /root/.sync/7519e94644cc446ebfb3a447b3b207b8.md_1499119626353
|
|
2017-07-03 23:07:06: setTimestamp /root/.sync/7519e94644cc446ebfb3a447b3b207b8.md_1499119626353
|
|
2017-07-03 23:07:06: move /root/.sync/7519e94644cc446ebfb3a447b3b207b8.md_1499119626353 => /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:06: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:06: [1499119626369,"7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:06: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:06: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:06: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:06: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:06: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:06: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:06: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:06: list /root
|
|
2017-07-03 23:07:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:06: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:06: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:06: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:06: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:06: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:06: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:06: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:06: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:06: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:06: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:06: Synchronization complete [1499119626305]:
|
|
2017-07-03 23:07:06: remotesToUpdate: 1
|
|
2017-07-03 23:07:06: remotesToDelete: -
|
|
2017-07-03 23:07:06: localsToUdpate: -
|
|
2017-07-03 23:07:06: localsToDelete: -
|
|
2017-07-03 23:07:06: createLocal: -
|
|
2017-07-03 23:07:06: updateLocal: -
|
|
2017-07-03 23:07:06: deleteLocal: -
|
|
2017-07-03 23:07:06: createRemote: -
|
|
2017-07-03 23:07:06: updateRemote: 1
|
|
2017-07-03 23:07:06: deleteRemote: -
|
|
2017-07-03 23:07:06: itemConflict: -
|
|
2017-07-03 23:07:06: noteConflict: -
|
|
2017-07-03 23:07:06: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:06: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:06: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:06: Total folders: 1
|
|
2017-07-03 23:07:06: Total notes: 1
|
|
2017-07-03 23:07:06: Total resources: 0
|
|
2017-07-03 23:07:07: SELECT * FROM settings
|
|
2017-07-03 23:07:07: Starting synchronization... [1499119627020]
|
|
2017-07-03 23:07:07: mkdir /root/.sync
|
|
2017-07-03 23:07:07: mkdir /root/.resource
|
|
2017-07-03 23:07:07: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:07: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:07: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:07: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:07: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:07: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:07: list /root
|
|
2017-07-03 23:07:07: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:07: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:07: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:07: ["6d7b0e5fc33242619b3a504b21b68968"]
|
|
2017-07-03 23:07:07: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:07: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:07: get /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:07: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:07:07: ["6d7b0e5fc33242619b3a504b21b68968","Updated on client 2","","1499119624161","1499119626065",1499119627190,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:07: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:07: ["7519e94644cc446ebfb3a447b3b207b8"]
|
|
2017-07-03 23:07:07: Sync: updateLocal: remote is more recent than local: (Local 7519e94644cc446ebfb3a447b3b207b8, "un"): (Remote 7519e94644cc446ebfb3a447b3b207b8, "Updated on client 2")
|
|
2017-07-03 23:07:07: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:07: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:07: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:07: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:07: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:07: Synchronization complete [1499119627020]:
|
|
2017-07-03 23:07:07: remotesToUpdate: -
|
|
2017-07-03 23:07:07: remotesToDelete: -
|
|
2017-07-03 23:07:07: localsToUdpate: 1
|
|
2017-07-03 23:07:07: localsToDelete: -
|
|
2017-07-03 23:07:07: createLocal: -
|
|
2017-07-03 23:07:07: updateLocal: 1
|
|
2017-07-03 23:07:07: deleteLocal: -
|
|
2017-07-03 23:07:07: createRemote: -
|
|
2017-07-03 23:07:07: updateRemote: -
|
|
2017-07-03 23:07:07: deleteRemote: -
|
|
2017-07-03 23:07:07: itemConflict: -
|
|
2017-07-03 23:07:07: noteConflict: -
|
|
2017-07-03 23:07:07: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:07: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:07: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:07: Total folders: 1
|
|
2017-07-03 23:07:07: Total notes: 1
|
|
2017-07-03 23:07:07: Total resources: 0
|
|
2017-07-03 23:07:07: SELECT * FROM `folders`
|
|
2017-07-03 23:07:07: SELECT * FROM `notes`
|
|
2017-07-03 23:07:07: list /root
|
|
2017-07-03 23:07:07: stat /root/6d7b0e5fc33242619b3a504b21b68968.md
|
|
2017-07-03 23:07:07: get /root/6d7b0e5fc33242619b3a504b21b68968.md
|
|
2017-07-03 23:07:07: stat /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:07: get /root/7519e94644cc446ebfb3a447b3b207b8.md
|
|
2017-07-03 23:07:07: BEGIN TRANSACTION
|
|
2017-07-03 23:07:07: DELETE FROM notes
|
|
2017-07-03 23:07:07: DELETE FROM folders
|
|
2017-07-03 23:07:07: DELETE FROM resources
|
|
2017-07-03 23:07:07: DELETE FROM tags
|
|
2017-07-03 23:07:07: DELETE FROM note_tags
|
|
2017-07-03 23:07:07: COMMIT
|
|
2017-07-03 23:07:07: SELECT * FROM settings
|
|
2017-07-03 23:07:07: BEGIN TRANSACTION
|
|
2017-07-03 23:07:07: DELETE FROM notes
|
|
2017-07-03 23:07:07: DELETE FROM folders
|
|
2017-07-03 23:07:07: DELETE FROM resources
|
|
2017-07-03 23:07:07: DELETE FROM tags
|
|
2017-07-03 23:07:07: DELETE FROM note_tags
|
|
2017-07-03 23:07:07: COMMIT
|
|
2017-07-03 23:07:08: SELECT * FROM settings
|
|
2017-07-03 23:07:08: SELECT * FROM settings
|
|
2017-07-03 23:07:08: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:08: ["folder1",1499119628287,"b38e43d330974d34bf734ecf452aded1",1499119628287]
|
|
2017-07-03 23:07:08: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:08: ["b38e43d330974d34bf734ecf452aded1","un","joplin","SET_ME",1499119628636,"5235c92a392e4614a0671d60d20dc281",1499119628636]
|
|
2017-07-03 23:07:08: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:08: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:08: Starting synchronization... [1499119628832]
|
|
2017-07-03 23:07:08: mkdir /root/.sync
|
|
2017-07-03 23:07:08: mkdir /root/.resource
|
|
2017-07-03 23:07:08: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:08: stat /root/b38e43d330974d34bf734ecf452aded1.md
|
|
2017-07-03 23:07:08: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local b38e43d330974d34bf734ecf452aded1, "folder1")
|
|
2017-07-03 23:07:08: put /root/.sync/b38e43d330974d34bf734ecf452aded1.md_1499119628904
|
|
2017-07-03 23:07:08: setTimestamp /root/.sync/b38e43d330974d34bf734ecf452aded1.md_1499119628904
|
|
2017-07-03 23:07:08: move /root/.sync/b38e43d330974d34bf734ecf452aded1.md_1499119628904 => /root/b38e43d330974d34bf734ecf452aded1.md
|
|
2017-07-03 23:07:08: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:08: [1499119628938,"b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:09: stat /root/5235c92a392e4614a0671d60d20dc281.md
|
|
2017-07-03 23:07:09: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 5235c92a392e4614a0671d60d20dc281, "un")
|
|
2017-07-03 23:07:09: put /root/.sync/5235c92a392e4614a0671d60d20dc281.md_1499119629146
|
|
2017-07-03 23:07:09: setTimestamp /root/.sync/5235c92a392e4614a0671d60d20dc281.md_1499119629146
|
|
2017-07-03 23:07:09: move /root/.sync/5235c92a392e4614a0671d60d20dc281.md_1499119629146 => /root/5235c92a392e4614a0671d60d20dc281.md
|
|
2017-07-03 23:07:09: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:09: [1499119629179,"5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:09: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:09: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:09: list /root
|
|
2017-07-03 23:07:09: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:09: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:09: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:09: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:09: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:09: Synchronization complete [1499119628832]:
|
|
2017-07-03 23:07:09: remotesToUpdate: 2
|
|
2017-07-03 23:07:09: remotesToDelete: -
|
|
2017-07-03 23:07:09: localsToUdpate: -
|
|
2017-07-03 23:07:09: localsToDelete: -
|
|
2017-07-03 23:07:09: createLocal: -
|
|
2017-07-03 23:07:09: updateLocal: -
|
|
2017-07-03 23:07:09: deleteLocal: -
|
|
2017-07-03 23:07:09: createRemote: 2
|
|
2017-07-03 23:07:09: updateRemote: -
|
|
2017-07-03 23:07:09: deleteRemote: -
|
|
2017-07-03 23:07:09: itemConflict: -
|
|
2017-07-03 23:07:09: noteConflict: -
|
|
2017-07-03 23:07:09: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:09: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:09: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:09: Total folders: 1
|
|
2017-07-03 23:07:09: Total notes: 1
|
|
2017-07-03 23:07:09: Total resources: 0
|
|
2017-07-03 23:07:09: SELECT * FROM settings
|
|
2017-07-03 23:07:09: Starting synchronization... [1499119629792]
|
|
2017-07-03 23:07:09: mkdir /root/.sync
|
|
2017-07-03 23:07:09: mkdir /root/.resource
|
|
2017-07-03 23:07:09: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:09: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:09: list /root
|
|
2017-07-03 23:07:09: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:09: get /root/b38e43d330974d34bf734ecf452aded1.md
|
|
2017-07-03 23:07:09: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:09: ["b38e43d330974d34bf734ecf452aded1","folder1","1499119628287","1499119628287",1499119629882]
|
|
2017-07-03 23:07:10: Sync: createLocal: remote exists but local does not: (Remote b38e43d330974d34bf734ecf452aded1, "folder1")
|
|
2017-07-03 23:07:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: get /root/5235c92a392e4614a0671d60d20dc281.md
|
|
2017-07-03 23:07:10: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281","b38e43d330974d34bf734ecf452aded1","un","","1499119628636","1499119628636",1499119630131,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: Sync: createLocal: remote exists but local does not: (Remote 5235c92a392e4614a0671d60d20dc281, "un")
|
|
2017-07-03 23:07:10: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:10: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:10: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:10: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:10: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:10: Synchronization complete [1499119629792]:
|
|
2017-07-03 23:07:10: remotesToUpdate: -
|
|
2017-07-03 23:07:10: remotesToDelete: -
|
|
2017-07-03 23:07:10: localsToUdpate: 2
|
|
2017-07-03 23:07:10: localsToDelete: -
|
|
2017-07-03 23:07:10: createLocal: 2
|
|
2017-07-03 23:07:10: updateLocal: -
|
|
2017-07-03 23:07:10: deleteLocal: -
|
|
2017-07-03 23:07:10: createRemote: -
|
|
2017-07-03 23:07:10: updateRemote: -
|
|
2017-07-03 23:07:10: deleteRemote: -
|
|
2017-07-03 23:07:10: itemConflict: -
|
|
2017-07-03 23:07:10: noteConflict: -
|
|
2017-07-03 23:07:10: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:10: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:10: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:10: Total folders: 1
|
|
2017-07-03 23:07:10: Total notes: 1
|
|
2017-07-03 23:07:10: Total resources: 0
|
|
2017-07-03 23:07:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `is_conflict`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:07:10: ["b38e43d330974d34bf734ecf452aded1","Updated on client 2","",1499119628636,1499119630530,1499119630131,0,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:10: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:10: Starting synchronization... [1499119630779]
|
|
2017-07-03 23:07:10: mkdir /root/.sync
|
|
2017-07-03 23:07:10: mkdir /root/.resource
|
|
2017-07-03 23:07:10: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:10: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:10: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:10: stat /root/5235c92a392e4614a0671d60d20dc281.md
|
|
2017-07-03 23:07:10: Sync: updateRemote: local has changes: (Local 5235c92a392e4614a0671d60d20dc281, "Updated on client 2"): (Remote )
|
|
2017-07-03 23:07:10: put /root/.sync/5235c92a392e4614a0671d60d20dc281.md_1499119630830
|
|
2017-07-03 23:07:10: setTimestamp /root/.sync/5235c92a392e4614a0671d60d20dc281.md_1499119630830
|
|
2017-07-03 23:07:10: move /root/.sync/5235c92a392e4614a0671d60d20dc281.md_1499119630830 => /root/5235c92a392e4614a0671d60d20dc281.md
|
|
2017-07-03 23:07:10: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:10: [1499119630845,"5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:11: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:11: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:11: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:11: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:11: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:11: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:11: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:11: list /root
|
|
2017-07-03 23:07:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:11: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:11: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:11: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:11: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:11: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:11: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:11: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:11: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:11: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:11: Synchronization complete [1499119630779]:
|
|
2017-07-03 23:07:11: remotesToUpdate: 1
|
|
2017-07-03 23:07:11: remotesToDelete: -
|
|
2017-07-03 23:07:11: localsToUdpate: -
|
|
2017-07-03 23:07:11: localsToDelete: -
|
|
2017-07-03 23:07:11: createLocal: -
|
|
2017-07-03 23:07:11: updateLocal: -
|
|
2017-07-03 23:07:11: deleteLocal: -
|
|
2017-07-03 23:07:11: createRemote: -
|
|
2017-07-03 23:07:11: updateRemote: 1
|
|
2017-07-03 23:07:11: deleteRemote: -
|
|
2017-07-03 23:07:11: itemConflict: -
|
|
2017-07-03 23:07:11: noteConflict: -
|
|
2017-07-03 23:07:11: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:11: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:11: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:11: Total folders: 1
|
|
2017-07-03 23:07:11: Total notes: 1
|
|
2017-07-03 23:07:11: Total resources: 0
|
|
2017-07-03 23:07:11: SELECT * FROM settings
|
|
2017-07-03 23:07:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:11: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:11: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `is_conflict`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:07:11: ["b38e43d330974d34bf734ecf452aded1","Updated on client 1","",1499119628636,1499119631602,1499119629179,0,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:11: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:11: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:11: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:11: Starting synchronization... [1499119631828]
|
|
2017-07-03 23:07:11: mkdir /root/.sync
|
|
2017-07-03 23:07:11: mkdir /root/.resource
|
|
2017-07-03 23:07:11: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:11: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:11: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:11: stat /root/5235c92a392e4614a0671d60d20dc281.md
|
|
2017-07-03 23:07:11: Sync: noteConflict: both remote and local have changes: (Local 5235c92a392e4614a0671d60d20dc281, "Updated on client 1"): (Remote )
|
|
2017-07-03 23:07:11: INSERT INTO `notes` (`parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `is_conflict`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`, `id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:11: ["b38e43d330974d34bf734ecf452aded1","Updated on client 1","",1499119628636,1499119631602,1499119629179,1,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"9a7a950e9e1b4788a69c777b45258567"]
|
|
2017-07-03 23:07:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:12: ["9a7a950e9e1b4788a69c777b45258567"]
|
|
2017-07-03 23:07:12: get /root/5235c92a392e4614a0671d60d20dc281.md
|
|
2017-07-03 23:07:12: UPDATE `notes` SET `parent_id`=?, `title`=?, `body`=?, `created_time`=?, `updated_time`=?, `sync_time`=?, `latitude`=?, `longitude`=?, `altitude`=?, `author`=?, `source_url`=?, `is_todo`=?, `todo_due`=?, `todo_completed`=?, `source`=?, `source_application`=?, `application_data`=?, `order`=? WHERE id=?
|
|
2017-07-03 23:07:12: ["b38e43d330974d34bf734ecf452aded1","Updated on client 2","","1499119628636","1499119630530",1499119632095,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:12: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:12: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:12: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:12: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:12: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:12: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:12: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:12: list /root
|
|
2017-07-03 23:07:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:12: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:12: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:12: ["b38e43d330974d34bf734ecf452aded1"]
|
|
2017-07-03 23:07:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:12: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:12: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:12: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:12: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:12: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:12: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:12: Synchronization complete [1499119631828]:
|
|
2017-07-03 23:07:12: remotesToUpdate: 1
|
|
2017-07-03 23:07:12: remotesToDelete: -
|
|
2017-07-03 23:07:12: localsToUdpate: -
|
|
2017-07-03 23:07:12: localsToDelete: -
|
|
2017-07-03 23:07:12: createLocal: -
|
|
2017-07-03 23:07:12: updateLocal: -
|
|
2017-07-03 23:07:12: deleteLocal: -
|
|
2017-07-03 23:07:12: createRemote: -
|
|
2017-07-03 23:07:12: updateRemote: -
|
|
2017-07-03 23:07:12: deleteRemote: -
|
|
2017-07-03 23:07:12: itemConflict: -
|
|
2017-07-03 23:07:12: noteConflict: 1
|
|
2017-07-03 23:07:12: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:12: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:12: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:12: Total folders: 1
|
|
2017-07-03 23:07:12: Total notes: 2
|
|
2017-07-03 23:07:12: Total resources: 0
|
|
2017-07-03 23:07:12: SELECT * FROM notes WHERE is_conflict = 1
|
|
2017-07-03 23:07:12: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:12: ["5235c92a392e4614a0671d60d20dc281"]
|
|
2017-07-03 23:07:12: BEGIN TRANSACTION
|
|
2017-07-03 23:07:12: DELETE FROM notes
|
|
2017-07-03 23:07:12: DELETE FROM folders
|
|
2017-07-03 23:07:12: DELETE FROM resources
|
|
2017-07-03 23:07:12: DELETE FROM tags
|
|
2017-07-03 23:07:12: DELETE FROM note_tags
|
|
2017-07-03 23:07:12: COMMIT
|
|
2017-07-03 23:07:12: SELECT * FROM settings
|
|
2017-07-03 23:07:12: BEGIN TRANSACTION
|
|
2017-07-03 23:07:12: DELETE FROM notes
|
|
2017-07-03 23:07:12: DELETE FROM folders
|
|
2017-07-03 23:07:12: DELETE FROM resources
|
|
2017-07-03 23:07:12: DELETE FROM tags
|
|
2017-07-03 23:07:12: DELETE FROM note_tags
|
|
2017-07-03 23:07:12: COMMIT
|
|
2017-07-03 23:07:12: SELECT * FROM settings
|
|
2017-07-03 23:07:13: SELECT * FROM settings
|
|
2017-07-03 23:07:13: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:13: ["folder1",1499119633192,"480fee59e32a448ab50a27ac9393b5c9",1499119633192]
|
|
2017-07-03 23:07:13: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:13: ["480fee59e32a448ab50a27ac9393b5c9","un","joplin","SET_ME",1499119633387,"64c30b42add14e509c3b26ddb056a369",1499119633387]
|
|
2017-07-03 23:07:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:13: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:13: Starting synchronization... [1499119633595]
|
|
2017-07-03 23:07:13: mkdir /root/.sync
|
|
2017-07-03 23:07:13: mkdir /root/.resource
|
|
2017-07-03 23:07:13: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:13: stat /root/480fee59e32a448ab50a27ac9393b5c9.md
|
|
2017-07-03 23:07:13: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 480fee59e32a448ab50a27ac9393b5c9, "folder1")
|
|
2017-07-03 23:07:13: put /root/.sync/480fee59e32a448ab50a27ac9393b5c9.md_1499119633630
|
|
2017-07-03 23:07:13: setTimestamp /root/.sync/480fee59e32a448ab50a27ac9393b5c9.md_1499119633630
|
|
2017-07-03 23:07:13: move /root/.sync/480fee59e32a448ab50a27ac9393b5c9.md_1499119633630 => /root/480fee59e32a448ab50a27ac9393b5c9.md
|
|
2017-07-03 23:07:13: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:13: [1499119633643,"480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:13: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:13: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:13: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:13: stat /root/64c30b42add14e509c3b26ddb056a369.md
|
|
2017-07-03 23:07:13: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 64c30b42add14e509c3b26ddb056a369, "un")
|
|
2017-07-03 23:07:13: put /root/.sync/64c30b42add14e509c3b26ddb056a369.md_1499119633828
|
|
2017-07-03 23:07:13: setTimestamp /root/.sync/64c30b42add14e509c3b26ddb056a369.md_1499119633828
|
|
2017-07-03 23:07:13: move /root/.sync/64c30b42add14e509c3b26ddb056a369.md_1499119633828 => /root/64c30b42add14e509c3b26ddb056a369.md
|
|
2017-07-03 23:07:13: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:13: [1499119633841,"64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:13: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:13: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:14: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:14: list /root
|
|
2017-07-03 23:07:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:14: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:14: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:14: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:14: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:14: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:14: Synchronization complete [1499119633595]:
|
|
2017-07-03 23:07:14: remotesToUpdate: 2
|
|
2017-07-03 23:07:14: remotesToDelete: -
|
|
2017-07-03 23:07:14: localsToUdpate: -
|
|
2017-07-03 23:07:14: localsToDelete: -
|
|
2017-07-03 23:07:14: createLocal: -
|
|
2017-07-03 23:07:14: updateLocal: -
|
|
2017-07-03 23:07:14: deleteLocal: -
|
|
2017-07-03 23:07:14: createRemote: 2
|
|
2017-07-03 23:07:14: updateRemote: -
|
|
2017-07-03 23:07:14: deleteRemote: -
|
|
2017-07-03 23:07:14: itemConflict: -
|
|
2017-07-03 23:07:14: noteConflict: -
|
|
2017-07-03 23:07:14: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:14: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:14: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:14: Total folders: 1
|
|
2017-07-03 23:07:14: Total notes: 1
|
|
2017-07-03 23:07:14: Total resources: 0
|
|
2017-07-03 23:07:14: SELECT * FROM settings
|
|
2017-07-03 23:07:14: Starting synchronization... [1499119634368]
|
|
2017-07-03 23:07:14: mkdir /root/.sync
|
|
2017-07-03 23:07:14: mkdir /root/.resource
|
|
2017-07-03 23:07:14: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:14: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:14: list /root
|
|
2017-07-03 23:07:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:14: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:14: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:14: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:14: get /root/480fee59e32a448ab50a27ac9393b5c9.md
|
|
2017-07-03 23:07:14: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:14: ["480fee59e32a448ab50a27ac9393b5c9","folder1","1499119633192","1499119633192",1499119634485]
|
|
2017-07-03 23:07:14: Sync: createLocal: remote exists but local does not: (Remote 480fee59e32a448ab50a27ac9393b5c9, "folder1")
|
|
2017-07-03 23:07:14: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:14: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:14: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:14: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:14: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:14: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:14: get /root/64c30b42add14e509c3b26ddb056a369.md
|
|
2017-07-03 23:07:14: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:14: ["64c30b42add14e509c3b26ddb056a369","480fee59e32a448ab50a27ac9393b5c9","un","","1499119633387","1499119633387",1499119634709,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:15: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:15: Sync: createLocal: remote exists but local does not: (Remote 64c30b42add14e509c3b26ddb056a369, "un")
|
|
2017-07-03 23:07:15: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:15: Synchronization complete [1499119634368]:
|
|
2017-07-03 23:07:15: remotesToUpdate: -
|
|
2017-07-03 23:07:15: remotesToDelete: -
|
|
2017-07-03 23:07:15: localsToUdpate: 2
|
|
2017-07-03 23:07:15: localsToDelete: -
|
|
2017-07-03 23:07:15: createLocal: 2
|
|
2017-07-03 23:07:15: updateLocal: -
|
|
2017-07-03 23:07:15: deleteLocal: -
|
|
2017-07-03 23:07:15: createRemote: -
|
|
2017-07-03 23:07:15: updateRemote: -
|
|
2017-07-03 23:07:15: deleteRemote: -
|
|
2017-07-03 23:07:15: itemConflict: -
|
|
2017-07-03 23:07:15: noteConflict: -
|
|
2017-07-03 23:07:15: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:15: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:15: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:15: Total folders: 1
|
|
2017-07-03 23:07:15: Total notes: 1
|
|
2017-07-03 23:07:15: Total resources: 0
|
|
2017-07-03 23:07:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:15: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:15: UPDATE `folders` SET `parent_id`=?, `title`=?, `created_time`=?, `updated_time`=?, `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:15: ["","folder1 UPDATE CLIENT 2",1499119633192,1499119635252,1499119634485,"480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:15: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:15: Starting synchronization... [1499119635410]
|
|
2017-07-03 23:07:15: mkdir /root/.sync
|
|
2017-07-03 23:07:15: mkdir /root/.resource
|
|
2017-07-03 23:07:15: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:15: stat /root/480fee59e32a448ab50a27ac9393b5c9.md
|
|
2017-07-03 23:07:15: Sync: updateRemote: local has changes: (Local 480fee59e32a448ab50a27ac9393b5c9, "folder1 UPDATE CLIENT 2"): (Remote )
|
|
2017-07-03 23:07:15: put /root/.sync/480fee59e32a448ab50a27ac9393b5c9.md_1499119635441
|
|
2017-07-03 23:07:15: setTimestamp /root/.sync/480fee59e32a448ab50a27ac9393b5c9.md_1499119635441
|
|
2017-07-03 23:07:15: move /root/.sync/480fee59e32a448ab50a27ac9393b5c9.md_1499119635441 => /root/480fee59e32a448ab50a27ac9393b5c9.md
|
|
2017-07-03 23:07:15: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:15: [1499119635450,"480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:15: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:15: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:15: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:15: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:15: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:15: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:15: list /root
|
|
2017-07-03 23:07:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:15: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:15: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:15: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:15: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:15: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:15: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:15: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:15: Synchronization complete [1499119635410]:
|
|
2017-07-03 23:07:15: remotesToUpdate: 1
|
|
2017-07-03 23:07:15: remotesToDelete: -
|
|
2017-07-03 23:07:15: localsToUdpate: -
|
|
2017-07-03 23:07:15: localsToDelete: -
|
|
2017-07-03 23:07:15: createLocal: -
|
|
2017-07-03 23:07:15: updateLocal: -
|
|
2017-07-03 23:07:15: deleteLocal: -
|
|
2017-07-03 23:07:15: createRemote: -
|
|
2017-07-03 23:07:15: updateRemote: 1
|
|
2017-07-03 23:07:15: deleteRemote: -
|
|
2017-07-03 23:07:15: itemConflict: -
|
|
2017-07-03 23:07:15: noteConflict: -
|
|
2017-07-03 23:07:15: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:15: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:15: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:15: Total folders: 1
|
|
2017-07-03 23:07:15: Total notes: 1
|
|
2017-07-03 23:07:15: Total resources: 0
|
|
2017-07-03 23:07:15: SELECT * FROM settings
|
|
2017-07-03 23:07:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:16: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:16: UPDATE `folders` SET `parent_id`=?, `title`=?, `created_time`=?, `updated_time`=?, `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:16: ["","folder1 UPDATE CLIENT 1",1499119633192,1499119636075,1499119633643,"480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:16: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:16: Starting synchronization... [1499119636324]
|
|
2017-07-03 23:07:16: mkdir /root/.sync
|
|
2017-07-03 23:07:16: mkdir /root/.resource
|
|
2017-07-03 23:07:16: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:16: stat /root/480fee59e32a448ab50a27ac9393b5c9.md
|
|
2017-07-03 23:07:16: Sync: itemConflict: both remote and local have changes: (Local 480fee59e32a448ab50a27ac9393b5c9, "folder1 UPDATE CLIENT 1"): (Remote )
|
|
2017-07-03 23:07:16: get /root/480fee59e32a448ab50a27ac9393b5c9.md
|
|
2017-07-03 23:07:16: UPDATE `folders` SET `title`=?, `created_time`=?, `updated_time`=?, `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:16: ["folder1 UPDATE CLIENT 2","1499119633192","1499119635252",1499119636384,"480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:16: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:16: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:16: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:16: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:16: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:16: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:16: list /root
|
|
2017-07-03 23:07:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:16: ["64c30b42add14e509c3b26ddb056a369"]
|
|
2017-07-03 23:07:16: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:16: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:16: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:16: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:16: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:16: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:16: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:16: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:16: Synchronization complete [1499119636324]:
|
|
2017-07-03 23:07:16: remotesToUpdate: 1
|
|
2017-07-03 23:07:16: remotesToDelete: -
|
|
2017-07-03 23:07:16: localsToUdpate: -
|
|
2017-07-03 23:07:16: localsToDelete: -
|
|
2017-07-03 23:07:16: createLocal: -
|
|
2017-07-03 23:07:16: updateLocal: -
|
|
2017-07-03 23:07:16: deleteLocal: -
|
|
2017-07-03 23:07:16: createRemote: -
|
|
2017-07-03 23:07:16: updateRemote: -
|
|
2017-07-03 23:07:16: deleteRemote: -
|
|
2017-07-03 23:07:16: itemConflict: 1
|
|
2017-07-03 23:07:16: noteConflict: -
|
|
2017-07-03 23:07:16: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:16: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:16: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:16: Total folders: 1
|
|
2017-07-03 23:07:16: Total notes: 1
|
|
2017-07-03 23:07:16: Total resources: 0
|
|
2017-07-03 23:07:16: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:16: ["480fee59e32a448ab50a27ac9393b5c9"]
|
|
2017-07-03 23:07:16: BEGIN TRANSACTION
|
|
2017-07-03 23:07:16: DELETE FROM notes
|
|
2017-07-03 23:07:16: DELETE FROM folders
|
|
2017-07-03 23:07:16: DELETE FROM resources
|
|
2017-07-03 23:07:16: DELETE FROM tags
|
|
2017-07-03 23:07:16: DELETE FROM note_tags
|
|
2017-07-03 23:07:16: COMMIT
|
|
2017-07-03 23:07:17: SELECT * FROM settings
|
|
2017-07-03 23:07:17: BEGIN TRANSACTION
|
|
2017-07-03 23:07:17: DELETE FROM notes
|
|
2017-07-03 23:07:17: DELETE FROM folders
|
|
2017-07-03 23:07:17: DELETE FROM resources
|
|
2017-07-03 23:07:17: DELETE FROM tags
|
|
2017-07-03 23:07:17: DELETE FROM note_tags
|
|
2017-07-03 23:07:17: COMMIT
|
|
2017-07-03 23:07:17: SELECT * FROM settings
|
|
2017-07-03 23:07:17: SELECT * FROM settings
|
|
2017-07-03 23:07:17: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:17: ["folder1",1499119637557,"f48c6e21a3b247be9b2d993f35281a6e",1499119637557]
|
|
2017-07-03 23:07:17: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:17: ["f48c6e21a3b247be9b2d993f35281a6e","un","joplin","SET_ME",1499119637711,"87f2423c14824d3d80bc9cc10663c0cc",1499119637712]
|
|
2017-07-03 23:07:17: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:17: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:17: Starting synchronization... [1499119637992]
|
|
2017-07-03 23:07:17: mkdir /root/.sync
|
|
2017-07-03 23:07:18: mkdir /root/.resource
|
|
2017-07-03 23:07:18: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: stat /root/f48c6e21a3b247be9b2d993f35281a6e.md
|
|
2017-07-03 23:07:18: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local f48c6e21a3b247be9b2d993f35281a6e, "folder1")
|
|
2017-07-03 23:07:18: put /root/.sync/f48c6e21a3b247be9b2d993f35281a6e.md_1499119638028
|
|
2017-07-03 23:07:18: setTimestamp /root/.sync/f48c6e21a3b247be9b2d993f35281a6e.md_1499119638028
|
|
2017-07-03 23:07:18: move /root/.sync/f48c6e21a3b247be9b2d993f35281a6e.md_1499119638028 => /root/f48c6e21a3b247be9b2d993f35281a6e.md
|
|
2017-07-03 23:07:18: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:18: [1499119638038,"f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:18: stat /root/87f2423c14824d3d80bc9cc10663c0cc.md
|
|
2017-07-03 23:07:18: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 87f2423c14824d3d80bc9cc10663c0cc, "un")
|
|
2017-07-03 23:07:18: put /root/.sync/87f2423c14824d3d80bc9cc10663c0cc.md_1499119638230
|
|
2017-07-03 23:07:18: setTimestamp /root/.sync/87f2423c14824d3d80bc9cc10663c0cc.md_1499119638230
|
|
2017-07-03 23:07:18: move /root/.sync/87f2423c14824d3d80bc9cc10663c0cc.md_1499119638230 => /root/87f2423c14824d3d80bc9cc10663c0cc.md
|
|
2017-07-03 23:07:18: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:18: [1499119638241,"87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:18: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:18: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:18: list /root
|
|
2017-07-03 23:07:18: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:18: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:18: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:18: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:18: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:18: Synchronization complete [1499119637992]:
|
|
2017-07-03 23:07:18: remotesToUpdate: 2
|
|
2017-07-03 23:07:18: remotesToDelete: -
|
|
2017-07-03 23:07:18: localsToUdpate: -
|
|
2017-07-03 23:07:18: localsToDelete: -
|
|
2017-07-03 23:07:18: createLocal: -
|
|
2017-07-03 23:07:18: updateLocal: -
|
|
2017-07-03 23:07:18: deleteLocal: -
|
|
2017-07-03 23:07:18: createRemote: 2
|
|
2017-07-03 23:07:18: updateRemote: -
|
|
2017-07-03 23:07:18: deleteRemote: -
|
|
2017-07-03 23:07:18: itemConflict: -
|
|
2017-07-03 23:07:18: noteConflict: -
|
|
2017-07-03 23:07:18: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:18: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:18: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:18: Total folders: 1
|
|
2017-07-03 23:07:18: Total notes: 1
|
|
2017-07-03 23:07:18: Total resources: 0
|
|
2017-07-03 23:07:18: SELECT * FROM settings
|
|
2017-07-03 23:07:18: Starting synchronization... [1499119638733]
|
|
2017-07-03 23:07:18: mkdir /root/.sync
|
|
2017-07-03 23:07:18: mkdir /root/.resource
|
|
2017-07-03 23:07:18: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:18: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:18: list /root
|
|
2017-07-03 23:07:18: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:18: get /root/f48c6e21a3b247be9b2d993f35281a6e.md
|
|
2017-07-03 23:07:18: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:18: ["f48c6e21a3b247be9b2d993f35281a6e","folder1","1499119637557","1499119637557",1499119638830]
|
|
2017-07-03 23:07:18: Sync: createLocal: remote exists but local does not: (Remote f48c6e21a3b247be9b2d993f35281a6e, "folder1")
|
|
2017-07-03 23:07:18: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:19: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:19: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:19: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:19: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:19: get /root/87f2423c14824d3d80bc9cc10663c0cc.md
|
|
2017-07-03 23:07:19: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc","f48c6e21a3b247be9b2d993f35281a6e","un","","1499119637712","1499119637711",1499119639045,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:19: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:19: Sync: createLocal: remote exists but local does not: (Remote 87f2423c14824d3d80bc9cc10663c0cc, "un")
|
|
2017-07-03 23:07:19: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:19: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:19: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:19: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:19: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:19: Synchronization complete [1499119638733]:
|
|
2017-07-03 23:07:19: remotesToUpdate: -
|
|
2017-07-03 23:07:19: remotesToDelete: -
|
|
2017-07-03 23:07:19: localsToUdpate: 2
|
|
2017-07-03 23:07:19: localsToDelete: -
|
|
2017-07-03 23:07:19: createLocal: 2
|
|
2017-07-03 23:07:19: updateLocal: -
|
|
2017-07-03 23:07:19: deleteLocal: -
|
|
2017-07-03 23:07:19: createRemote: -
|
|
2017-07-03 23:07:19: updateRemote: -
|
|
2017-07-03 23:07:19: deleteRemote: -
|
|
2017-07-03 23:07:19: itemConflict: -
|
|
2017-07-03 23:07:19: noteConflict: -
|
|
2017-07-03 23:07:19: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:19: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:19: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:19: Total folders: 1
|
|
2017-07-03 23:07:19: Total notes: 1
|
|
2017-07-03 23:07:19: Total resources: 0
|
|
2017-07-03 23:07:19: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:19: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:19: [1,"87f2423c14824d3d80bc9cc10663c0cc",1499119639724]
|
|
2017-07-03 23:07:19: Starting synchronization... [1499119639860]
|
|
2017-07-03 23:07:19: mkdir /root/.sync
|
|
2017-07-03 23:07:19: mkdir /root/.resource
|
|
2017-07-03 23:07:19: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:19: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:19: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:19: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:19: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:19: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:19: Sync: deleteRemote: local has been deleted: (Remote 87f2423c14824d3d80bc9cc10663c0cc)
|
|
2017-07-03 23:07:19: delete /root/87f2423c14824d3d80bc9cc10663c0cc.md
|
|
2017-07-03 23:07:19: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:19: ["87f2423c14824d3d80bc9cc10663c0cc"]
|
|
2017-07-03 23:07:20: list /root
|
|
2017-07-03 23:07:20: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:20: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:20: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:20: ["f48c6e21a3b247be9b2d993f35281a6e"]
|
|
2017-07-03 23:07:20: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:20: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:20: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:20: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:20: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:20: Synchronization complete [1499119639860]:
|
|
2017-07-03 23:07:20: remotesToUpdate: -
|
|
2017-07-03 23:07:20: remotesToDelete: 1
|
|
2017-07-03 23:07:20: localsToUdpate: -
|
|
2017-07-03 23:07:20: localsToDelete: -
|
|
2017-07-03 23:07:20: createLocal: -
|
|
2017-07-03 23:07:20: updateLocal: -
|
|
2017-07-03 23:07:20: deleteLocal: -
|
|
2017-07-03 23:07:20: createRemote: -
|
|
2017-07-03 23:07:20: updateRemote: -
|
|
2017-07-03 23:07:20: deleteRemote: 1
|
|
2017-07-03 23:07:20: itemConflict: -
|
|
2017-07-03 23:07:20: noteConflict: -
|
|
2017-07-03 23:07:20: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:20: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:20: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:20: Total folders: 1
|
|
2017-07-03 23:07:20: Total notes: 0
|
|
2017-07-03 23:07:20: Total resources: 0
|
|
2017-07-03 23:07:20: list /root
|
|
2017-07-03 23:07:20: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:20: BEGIN TRANSACTION
|
|
2017-07-03 23:07:20: DELETE FROM notes
|
|
2017-07-03 23:07:20: DELETE FROM folders
|
|
2017-07-03 23:07:20: DELETE FROM resources
|
|
2017-07-03 23:07:20: DELETE FROM tags
|
|
2017-07-03 23:07:20: DELETE FROM note_tags
|
|
2017-07-03 23:07:20: COMMIT
|
|
2017-07-03 23:07:20: SELECT * FROM settings
|
|
2017-07-03 23:07:20: BEGIN TRANSACTION
|
|
2017-07-03 23:07:20: DELETE FROM notes
|
|
2017-07-03 23:07:20: DELETE FROM folders
|
|
2017-07-03 23:07:20: DELETE FROM resources
|
|
2017-07-03 23:07:20: DELETE FROM tags
|
|
2017-07-03 23:07:20: DELETE FROM note_tags
|
|
2017-07-03 23:07:20: COMMIT
|
|
2017-07-03 23:07:20: SELECT * FROM settings
|
|
2017-07-03 23:07:21: SELECT * FROM settings
|
|
2017-07-03 23:07:21: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:21: ["folder1",1499119641029,"aa6aca048cfc4e3f94b9fe4c984740d7",1499119641029]
|
|
2017-07-03 23:07:21: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:21: ["aa6aca048cfc4e3f94b9fe4c984740d7","un","joplin","SET_ME",1499119641205,"a1cd404876dd40d9a87c2462e61006d8",1499119641205]
|
|
2017-07-03 23:07:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:21: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:21: Starting synchronization... [1499119641436]
|
|
2017-07-03 23:07:21: mkdir /root/.sync
|
|
2017-07-03 23:07:21: mkdir /root/.resource
|
|
2017-07-03 23:07:21: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:21: stat /root/aa6aca048cfc4e3f94b9fe4c984740d7.md
|
|
2017-07-03 23:07:21: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local aa6aca048cfc4e3f94b9fe4c984740d7, "folder1")
|
|
2017-07-03 23:07:21: put /root/.sync/aa6aca048cfc4e3f94b9fe4c984740d7.md_1499119641489
|
|
2017-07-03 23:07:21: setTimestamp /root/.sync/aa6aca048cfc4e3f94b9fe4c984740d7.md_1499119641489
|
|
2017-07-03 23:07:21: move /root/.sync/aa6aca048cfc4e3f94b9fe4c984740d7.md_1499119641489 => /root/aa6aca048cfc4e3f94b9fe4c984740d7.md
|
|
2017-07-03 23:07:21: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:21: [1499119641503,"aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:21: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:21: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:21: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:21: stat /root/a1cd404876dd40d9a87c2462e61006d8.md
|
|
2017-07-03 23:07:21: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local a1cd404876dd40d9a87c2462e61006d8, "un")
|
|
2017-07-03 23:07:21: put /root/.sync/a1cd404876dd40d9a87c2462e61006d8.md_1499119641675
|
|
2017-07-03 23:07:21: setTimestamp /root/.sync/a1cd404876dd40d9a87c2462e61006d8.md_1499119641675
|
|
2017-07-03 23:07:21: move /root/.sync/a1cd404876dd40d9a87c2462e61006d8.md_1499119641675 => /root/a1cd404876dd40d9a87c2462e61006d8.md
|
|
2017-07-03 23:07:21: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:21: [1499119641687,"a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:21: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:21: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:21: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:21: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:21: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:21: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:21: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:21: list /root
|
|
2017-07-03 23:07:21: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:21: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:21: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:21: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:21: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:21: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:21: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:21: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:21: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:21: Synchronization complete [1499119641436]:
|
|
2017-07-03 23:07:21: remotesToUpdate: 2
|
|
2017-07-03 23:07:21: remotesToDelete: -
|
|
2017-07-03 23:07:21: localsToUdpate: -
|
|
2017-07-03 23:07:21: localsToDelete: -
|
|
2017-07-03 23:07:21: createLocal: -
|
|
2017-07-03 23:07:21: updateLocal: -
|
|
2017-07-03 23:07:21: deleteLocal: -
|
|
2017-07-03 23:07:21: createRemote: 2
|
|
2017-07-03 23:07:21: updateRemote: -
|
|
2017-07-03 23:07:21: deleteRemote: -
|
|
2017-07-03 23:07:21: itemConflict: -
|
|
2017-07-03 23:07:21: noteConflict: -
|
|
2017-07-03 23:07:21: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:21: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:21: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:21: Total folders: 1
|
|
2017-07-03 23:07:21: Total notes: 1
|
|
2017-07-03 23:07:21: Total resources: 0
|
|
2017-07-03 23:07:22: SELECT * FROM settings
|
|
2017-07-03 23:07:22: Starting synchronization... [1499119642158]
|
|
2017-07-03 23:07:22: mkdir /root/.sync
|
|
2017-07-03 23:07:22: mkdir /root/.resource
|
|
2017-07-03 23:07:22: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:22: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:22: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:22: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:22: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:22: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:22: list /root
|
|
2017-07-03 23:07:22: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:22: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:22: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:22: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:22: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:22: get /root/aa6aca048cfc4e3f94b9fe4c984740d7.md
|
|
2017-07-03 23:07:22: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:22: ["aa6aca048cfc4e3f94b9fe4c984740d7","folder1","1499119641029","1499119641029",1499119642276]
|
|
2017-07-03 23:07:22: Sync: createLocal: remote exists but local does not: (Remote aa6aca048cfc4e3f94b9fe4c984740d7, "folder1")
|
|
2017-07-03 23:07:22: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:22: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:22: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:22: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:22: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:22: get /root/a1cd404876dd40d9a87c2462e61006d8.md
|
|
2017-07-03 23:07:22: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8","aa6aca048cfc4e3f94b9fe4c984740d7","un","","1499119641205","1499119641205",1499119642577,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:22: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:22: Sync: createLocal: remote exists but local does not: (Remote a1cd404876dd40d9a87c2462e61006d8, "un")
|
|
2017-07-03 23:07:22: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:22: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:22: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:22: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:22: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:22: Synchronization complete [1499119642158]:
|
|
2017-07-03 23:07:22: remotesToUpdate: -
|
|
2017-07-03 23:07:22: remotesToDelete: -
|
|
2017-07-03 23:07:22: localsToUdpate: 2
|
|
2017-07-03 23:07:22: localsToDelete: -
|
|
2017-07-03 23:07:22: createLocal: 2
|
|
2017-07-03 23:07:22: updateLocal: -
|
|
2017-07-03 23:07:22: deleteLocal: -
|
|
2017-07-03 23:07:22: createRemote: -
|
|
2017-07-03 23:07:22: updateRemote: -
|
|
2017-07-03 23:07:22: deleteRemote: -
|
|
2017-07-03 23:07:22: itemConflict: -
|
|
2017-07-03 23:07:22: noteConflict: -
|
|
2017-07-03 23:07:22: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:22: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:22: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:22: Total folders: 1
|
|
2017-07-03 23:07:22: Total notes: 1
|
|
2017-07-03 23:07:22: Total resources: 0
|
|
2017-07-03 23:07:22: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:07:22: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:23: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:23: [1,"a1cd404876dd40d9a87c2462e61006d8",1499119643167]
|
|
2017-07-03 23:07:23: Starting synchronization... [1499119643371]
|
|
2017-07-03 23:07:23: mkdir /root/.sync
|
|
2017-07-03 23:07:23: mkdir /root/.resource
|
|
2017-07-03 23:07:23: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:23: Sync: deleteRemote: local has been deleted: (Remote a1cd404876dd40d9a87c2462e61006d8)
|
|
2017-07-03 23:07:23: delete /root/a1cd404876dd40d9a87c2462e61006d8.md
|
|
2017-07-03 23:07:23: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:23: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:23: list /root
|
|
2017-07-03 23:07:23: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:23: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:23: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:23: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:23: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:23: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:23: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:23: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:23: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:23: Synchronization complete [1499119643371]:
|
|
2017-07-03 23:07:23: remotesToUpdate: -
|
|
2017-07-03 23:07:23: remotesToDelete: 1
|
|
2017-07-03 23:07:23: localsToUdpate: -
|
|
2017-07-03 23:07:23: localsToDelete: -
|
|
2017-07-03 23:07:23: createLocal: -
|
|
2017-07-03 23:07:23: updateLocal: -
|
|
2017-07-03 23:07:23: deleteLocal: -
|
|
2017-07-03 23:07:23: createRemote: -
|
|
2017-07-03 23:07:23: updateRemote: -
|
|
2017-07-03 23:07:23: deleteRemote: 1
|
|
2017-07-03 23:07:23: itemConflict: -
|
|
2017-07-03 23:07:23: noteConflict: -
|
|
2017-07-03 23:07:23: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:23: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:23: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:23: Total folders: 1
|
|
2017-07-03 23:07:23: Total notes: 0
|
|
2017-07-03 23:07:23: Total resources: 0
|
|
2017-07-03 23:07:23: SELECT * FROM settings
|
|
2017-07-03 23:07:23: Starting synchronization... [1499119643924]
|
|
2017-07-03 23:07:23: mkdir /root/.sync
|
|
2017-07-03 23:07:23: mkdir /root/.resource
|
|
2017-07-03 23:07:23: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:23: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:24: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:24: list /root
|
|
2017-07-03 23:07:24: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:24: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:24: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:24: ["aa6aca048cfc4e3f94b9fe4c984740d7"]
|
|
2017-07-03 23:07:24: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:24: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:24: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:24: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:24: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:24: Sync: deleteLocal: remote has been deleted: (Local a1cd404876dd40d9a87c2462e61006d8)
|
|
2017-07-03 23:07:24: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:07:24: ["a1cd404876dd40d9a87c2462e61006d8"]
|
|
2017-07-03 23:07:24: Synchronization complete [1499119643924]:
|
|
2017-07-03 23:07:24: remotesToUpdate: -
|
|
2017-07-03 23:07:24: remotesToDelete: -
|
|
2017-07-03 23:07:24: localsToUdpate: -
|
|
2017-07-03 23:07:24: localsToDelete: 1
|
|
2017-07-03 23:07:24: createLocal: -
|
|
2017-07-03 23:07:24: updateLocal: -
|
|
2017-07-03 23:07:24: deleteLocal: 1
|
|
2017-07-03 23:07:24: createRemote: -
|
|
2017-07-03 23:07:24: updateRemote: -
|
|
2017-07-03 23:07:24: deleteRemote: -
|
|
2017-07-03 23:07:24: itemConflict: -
|
|
2017-07-03 23:07:24: noteConflict: -
|
|
2017-07-03 23:07:24: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:24: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:24: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:24: Total folders: 1
|
|
2017-07-03 23:07:24: Total notes: 0
|
|
2017-07-03 23:07:24: Total resources: 0
|
|
2017-07-03 23:07:24: SELECT * FROM `folders`
|
|
2017-07-03 23:07:24: SELECT * FROM `notes`
|
|
2017-07-03 23:07:24: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:24: BEGIN TRANSACTION
|
|
2017-07-03 23:07:24: DELETE FROM notes
|
|
2017-07-03 23:07:24: DELETE FROM folders
|
|
2017-07-03 23:07:24: DELETE FROM resources
|
|
2017-07-03 23:07:24: DELETE FROM tags
|
|
2017-07-03 23:07:24: DELETE FROM note_tags
|
|
2017-07-03 23:07:24: COMMIT
|
|
2017-07-03 23:07:24: SELECT * FROM settings
|
|
2017-07-03 23:07:24: BEGIN TRANSACTION
|
|
2017-07-03 23:07:24: DELETE FROM notes
|
|
2017-07-03 23:07:24: DELETE FROM folders
|
|
2017-07-03 23:07:24: DELETE FROM resources
|
|
2017-07-03 23:07:24: DELETE FROM tags
|
|
2017-07-03 23:07:24: DELETE FROM note_tags
|
|
2017-07-03 23:07:24: COMMIT
|
|
2017-07-03 23:07:25: SELECT * FROM settings
|
|
2017-07-03 23:07:25: SELECT * FROM settings
|
|
2017-07-03 23:07:25: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:25: ["folder1",1499119645295,"d01ccf0c9a3944518587259c8024c400",1499119645295]
|
|
2017-07-03 23:07:25: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:25: ["folder2",1499119645453,"84b84c18a86a40558f50e37fcbf2ec17",1499119645453]
|
|
2017-07-03 23:07:25: Starting synchronization... [1499119645616]
|
|
2017-07-03 23:07:25: mkdir /root/.sync
|
|
2017-07-03 23:07:25: mkdir /root/.resource
|
|
2017-07-03 23:07:25: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:25: stat /root/d01ccf0c9a3944518587259c8024c400.md
|
|
2017-07-03 23:07:25: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local d01ccf0c9a3944518587259c8024c400, "folder1")
|
|
2017-07-03 23:07:25: put /root/.sync/d01ccf0c9a3944518587259c8024c400.md_1499119645652
|
|
2017-07-03 23:07:25: setTimestamp /root/.sync/d01ccf0c9a3944518587259c8024c400.md_1499119645652
|
|
2017-07-03 23:07:25: move /root/.sync/d01ccf0c9a3944518587259c8024c400.md_1499119645652 => /root/d01ccf0c9a3944518587259c8024c400.md
|
|
2017-07-03 23:07:25: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:25: [1499119645668,"d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:25: stat /root/84b84c18a86a40558f50e37fcbf2ec17.md
|
|
2017-07-03 23:07:25: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 84b84c18a86a40558f50e37fcbf2ec17, "folder2")
|
|
2017-07-03 23:07:25: put /root/.sync/84b84c18a86a40558f50e37fcbf2ec17.md_1499119645832
|
|
2017-07-03 23:07:25: setTimestamp /root/.sync/84b84c18a86a40558f50e37fcbf2ec17.md_1499119645832
|
|
2017-07-03 23:07:25: move /root/.sync/84b84c18a86a40558f50e37fcbf2ec17.md_1499119645832 => /root/84b84c18a86a40558f50e37fcbf2ec17.md
|
|
2017-07-03 23:07:25: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:25: [1499119645845,"84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:26: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:26: list /root
|
|
2017-07-03 23:07:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:26: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:26: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:26: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:26: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:26: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:26: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:26: Synchronization complete [1499119645616]:
|
|
2017-07-03 23:07:26: remotesToUpdate: 2
|
|
2017-07-03 23:07:26: remotesToDelete: -
|
|
2017-07-03 23:07:26: localsToUdpate: -
|
|
2017-07-03 23:07:26: localsToDelete: -
|
|
2017-07-03 23:07:26: createLocal: -
|
|
2017-07-03 23:07:26: updateLocal: -
|
|
2017-07-03 23:07:26: deleteLocal: -
|
|
2017-07-03 23:07:26: createRemote: 2
|
|
2017-07-03 23:07:26: updateRemote: -
|
|
2017-07-03 23:07:26: deleteRemote: -
|
|
2017-07-03 23:07:26: itemConflict: -
|
|
2017-07-03 23:07:26: noteConflict: -
|
|
2017-07-03 23:07:26: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:26: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:26: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:26: Total folders: 2
|
|
2017-07-03 23:07:26: Total notes: 0
|
|
2017-07-03 23:07:26: Total resources: 0
|
|
2017-07-03 23:07:26: SELECT * FROM settings
|
|
2017-07-03 23:07:26: Starting synchronization... [1499119646499]
|
|
2017-07-03 23:07:26: mkdir /root/.sync
|
|
2017-07-03 23:07:26: mkdir /root/.resource
|
|
2017-07-03 23:07:26: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:26: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:26: list /root
|
|
2017-07-03 23:07:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:26: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:26: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:26: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:26: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:26: get /root/d01ccf0c9a3944518587259c8024c400.md
|
|
2017-07-03 23:07:26: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:26: ["d01ccf0c9a3944518587259c8024c400","folder1","1499119645295","1499119645295",1499119646622]
|
|
2017-07-03 23:07:26: Sync: createLocal: remote exists but local does not: (Remote d01ccf0c9a3944518587259c8024c400, "folder1")
|
|
2017-07-03 23:07:26: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:26: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:26: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:26: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:26: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:26: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:26: get /root/84b84c18a86a40558f50e37fcbf2ec17.md
|
|
2017-07-03 23:07:26: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:26: ["84b84c18a86a40558f50e37fcbf2ec17","folder2","1499119645453","1499119645453",1499119646864]
|
|
2017-07-03 23:07:27: Sync: createLocal: remote exists but local does not: (Remote 84b84c18a86a40558f50e37fcbf2ec17, "folder2")
|
|
2017-07-03 23:07:27: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:27: Synchronization complete [1499119646499]:
|
|
2017-07-03 23:07:27: remotesToUpdate: -
|
|
2017-07-03 23:07:27: remotesToDelete: -
|
|
2017-07-03 23:07:27: localsToUdpate: 2
|
|
2017-07-03 23:07:27: localsToDelete: -
|
|
2017-07-03 23:07:27: createLocal: 2
|
|
2017-07-03 23:07:27: updateLocal: -
|
|
2017-07-03 23:07:27: deleteLocal: -
|
|
2017-07-03 23:07:27: createRemote: -
|
|
2017-07-03 23:07:27: updateRemote: -
|
|
2017-07-03 23:07:27: deleteRemote: -
|
|
2017-07-03 23:07:27: itemConflict: -
|
|
2017-07-03 23:07:27: noteConflict: -
|
|
2017-07-03 23:07:27: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:27: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:27: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:27: Total folders: 2
|
|
2017-07-03 23:07:27: Total notes: 0
|
|
2017-07-03 23:07:27: Total resources: 0
|
|
2017-07-03 23:07:27: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:27: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:27: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:27: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:27: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:27: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:27: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:27: [2,"84b84c18a86a40558f50e37fcbf2ec17",1499119647355]
|
|
2017-07-03 23:07:27: Starting synchronization... [1499119647465]
|
|
2017-07-03 23:07:27: mkdir /root/.sync
|
|
2017-07-03 23:07:27: mkdir /root/.resource
|
|
2017-07-03 23:07:27: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:27: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:27: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:27: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:27: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:27: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:27: Sync: deleteRemote: local has been deleted: (Remote 84b84c18a86a40558f50e37fcbf2ec17)
|
|
2017-07-03 23:07:27: delete /root/84b84c18a86a40558f50e37fcbf2ec17.md
|
|
2017-07-03 23:07:27: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:27: ["84b84c18a86a40558f50e37fcbf2ec17"]
|
|
2017-07-03 23:07:27: list /root
|
|
2017-07-03 23:07:27: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:27: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:27: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:27: ["d01ccf0c9a3944518587259c8024c400"]
|
|
2017-07-03 23:07:27: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:27: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:27: Synchronization complete [1499119647465]:
|
|
2017-07-03 23:07:27: remotesToUpdate: -
|
|
2017-07-03 23:07:27: remotesToDelete: 1
|
|
2017-07-03 23:07:27: localsToUdpate: -
|
|
2017-07-03 23:07:27: localsToDelete: -
|
|
2017-07-03 23:07:27: createLocal: -
|
|
2017-07-03 23:07:27: updateLocal: -
|
|
2017-07-03 23:07:27: deleteLocal: -
|
|
2017-07-03 23:07:27: createRemote: -
|
|
2017-07-03 23:07:27: updateRemote: -
|
|
2017-07-03 23:07:27: deleteRemote: 1
|
|
2017-07-03 23:07:27: itemConflict: -
|
|
2017-07-03 23:07:27: noteConflict: -
|
|
2017-07-03 23:07:27: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:27: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:27: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:27: Total folders: 1
|
|
2017-07-03 23:07:27: Total notes: 0
|
|
2017-07-03 23:07:27: Total resources: 0
|
|
2017-07-03 23:07:27: SELECT * FROM `folders`
|
|
2017-07-03 23:07:27: SELECT * FROM `notes`
|
|
2017-07-03 23:07:27: list /root
|
|
2017-07-03 23:07:27: stat /root/d01ccf0c9a3944518587259c8024c400.md
|
|
2017-07-03 23:07:27: get /root/d01ccf0c9a3944518587259c8024c400.md
|
|
2017-07-03 23:07:27: BEGIN TRANSACTION
|
|
2017-07-03 23:07:27: DELETE FROM notes
|
|
2017-07-03 23:07:27: DELETE FROM folders
|
|
2017-07-03 23:07:27: DELETE FROM resources
|
|
2017-07-03 23:07:27: DELETE FROM tags
|
|
2017-07-03 23:07:27: DELETE FROM note_tags
|
|
2017-07-03 23:07:27: COMMIT
|
|
2017-07-03 23:07:28: SELECT * FROM settings
|
|
2017-07-03 23:07:28: BEGIN TRANSACTION
|
|
2017-07-03 23:07:28: DELETE FROM notes
|
|
2017-07-03 23:07:28: DELETE FROM folders
|
|
2017-07-03 23:07:28: DELETE FROM resources
|
|
2017-07-03 23:07:28: DELETE FROM tags
|
|
2017-07-03 23:07:28: DELETE FROM note_tags
|
|
2017-07-03 23:07:28: COMMIT
|
|
2017-07-03 23:07:28: SELECT * FROM settings
|
|
2017-07-03 23:07:28: SELECT * FROM settings
|
|
2017-07-03 23:07:28: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:28: ["folder1",1499119648531,"a2c34f19c26a4ce1a011ed98d3bc99a3",1499119648531]
|
|
2017-07-03 23:07:28: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:28: ["folder2",1499119648697,"d3e9e2bdd22f4419b6cef564fc069e9d",1499119648697]
|
|
2017-07-03 23:07:28: Starting synchronization... [1499119648845]
|
|
2017-07-03 23:07:28: mkdir /root/.sync
|
|
2017-07-03 23:07:28: mkdir /root/.resource
|
|
2017-07-03 23:07:28: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:28: stat /root/a2c34f19c26a4ce1a011ed98d3bc99a3.md
|
|
2017-07-03 23:07:28: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local a2c34f19c26a4ce1a011ed98d3bc99a3, "folder1")
|
|
2017-07-03 23:07:28: put /root/.sync/a2c34f19c26a4ce1a011ed98d3bc99a3.md_1499119648902
|
|
2017-07-03 23:07:28: setTimestamp /root/.sync/a2c34f19c26a4ce1a011ed98d3bc99a3.md_1499119648902
|
|
2017-07-03 23:07:28: move /root/.sync/a2c34f19c26a4ce1a011ed98d3bc99a3.md_1499119648902 => /root/a2c34f19c26a4ce1a011ed98d3bc99a3.md
|
|
2017-07-03 23:07:28: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:28: [1499119648931,"a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: stat /root/d3e9e2bdd22f4419b6cef564fc069e9d.md
|
|
2017-07-03 23:07:29: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local d3e9e2bdd22f4419b6cef564fc069e9d, "folder2")
|
|
2017-07-03 23:07:29: put /root/.sync/d3e9e2bdd22f4419b6cef564fc069e9d.md_1499119649094
|
|
2017-07-03 23:07:29: setTimestamp /root/.sync/d3e9e2bdd22f4419b6cef564fc069e9d.md_1499119649094
|
|
2017-07-03 23:07:29: move /root/.sync/d3e9e2bdd22f4419b6cef564fc069e9d.md_1499119649094 => /root/d3e9e2bdd22f4419b6cef564fc069e9d.md
|
|
2017-07-03 23:07:29: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:29: [1499119649113,"d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:29: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:29: list /root
|
|
2017-07-03 23:07:29: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:29: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:29: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:29: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:29: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:29: Synchronization complete [1499119648845]:
|
|
2017-07-03 23:07:29: remotesToUpdate: 2
|
|
2017-07-03 23:07:29: remotesToDelete: -
|
|
2017-07-03 23:07:29: localsToUdpate: -
|
|
2017-07-03 23:07:29: localsToDelete: -
|
|
2017-07-03 23:07:29: createLocal: -
|
|
2017-07-03 23:07:29: updateLocal: -
|
|
2017-07-03 23:07:29: deleteLocal: -
|
|
2017-07-03 23:07:29: createRemote: 2
|
|
2017-07-03 23:07:29: updateRemote: -
|
|
2017-07-03 23:07:29: deleteRemote: -
|
|
2017-07-03 23:07:29: itemConflict: -
|
|
2017-07-03 23:07:29: noteConflict: -
|
|
2017-07-03 23:07:29: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:29: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:29: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:29: Total folders: 2
|
|
2017-07-03 23:07:29: Total notes: 0
|
|
2017-07-03 23:07:29: Total resources: 0
|
|
2017-07-03 23:07:29: SELECT * FROM settings
|
|
2017-07-03 23:07:29: Starting synchronization... [1499119649598]
|
|
2017-07-03 23:07:29: mkdir /root/.sync
|
|
2017-07-03 23:07:29: mkdir /root/.resource
|
|
2017-07-03 23:07:29: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:29: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:29: list /root
|
|
2017-07-03 23:07:29: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:29: get /root/a2c34f19c26a4ce1a011ed98d3bc99a3.md
|
|
2017-07-03 23:07:29: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:29: ["a2c34f19c26a4ce1a011ed98d3bc99a3","folder1","1499119648531","1499119648531",1499119649730]
|
|
2017-07-03 23:07:30: Sync: createLocal: remote exists but local does not: (Remote a2c34f19c26a4ce1a011ed98d3bc99a3, "folder1")
|
|
2017-07-03 23:07:30: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: get /root/d3e9e2bdd22f4419b6cef564fc069e9d.md
|
|
2017-07-03 23:07:30: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d","folder2","1499119648697","1499119648697",1499119650095]
|
|
2017-07-03 23:07:30: Sync: createLocal: remote exists but local does not: (Remote d3e9e2bdd22f4419b6cef564fc069e9d, "folder2")
|
|
2017-07-03 23:07:30: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:30: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:30: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:30: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:30: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:30: Synchronization complete [1499119649598]:
|
|
2017-07-03 23:07:30: remotesToUpdate: -
|
|
2017-07-03 23:07:30: remotesToDelete: -
|
|
2017-07-03 23:07:30: localsToUdpate: 2
|
|
2017-07-03 23:07:30: localsToDelete: -
|
|
2017-07-03 23:07:30: createLocal: 2
|
|
2017-07-03 23:07:30: updateLocal: -
|
|
2017-07-03 23:07:30: deleteLocal: -
|
|
2017-07-03 23:07:30: createRemote: -
|
|
2017-07-03 23:07:30: updateRemote: -
|
|
2017-07-03 23:07:30: deleteRemote: -
|
|
2017-07-03 23:07:30: itemConflict: -
|
|
2017-07-03 23:07:30: noteConflict: -
|
|
2017-07-03 23:07:30: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:30: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:30: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:30: Total folders: 2
|
|
2017-07-03 23:07:30: Total notes: 0
|
|
2017-07-03 23:07:30: Total resources: 0
|
|
2017-07-03 23:07:30: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:30: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:30: [2,"d3e9e2bdd22f4419b6cef564fc069e9d",1499119650681]
|
|
2017-07-03 23:07:30: Starting synchronization... [1499119650816]
|
|
2017-07-03 23:07:30: mkdir /root/.sync
|
|
2017-07-03 23:07:30: mkdir /root/.resource
|
|
2017-07-03 23:07:30: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:30: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:30: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:30: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:30: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:30: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:30: Sync: deleteRemote: local has been deleted: (Remote d3e9e2bdd22f4419b6cef564fc069e9d)
|
|
2017-07-03 23:07:30: delete /root/d3e9e2bdd22f4419b6cef564fc069e9d.md
|
|
2017-07-03 23:07:30: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:30: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:31: list /root
|
|
2017-07-03 23:07:31: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:31: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:31: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:31: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:31: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:31: Synchronization complete [1499119650816]:
|
|
2017-07-03 23:07:31: remotesToUpdate: -
|
|
2017-07-03 23:07:31: remotesToDelete: 1
|
|
2017-07-03 23:07:31: localsToUdpate: -
|
|
2017-07-03 23:07:31: localsToDelete: -
|
|
2017-07-03 23:07:31: createLocal: -
|
|
2017-07-03 23:07:31: updateLocal: -
|
|
2017-07-03 23:07:31: deleteLocal: -
|
|
2017-07-03 23:07:31: createRemote: -
|
|
2017-07-03 23:07:31: updateRemote: -
|
|
2017-07-03 23:07:31: deleteRemote: 1
|
|
2017-07-03 23:07:31: itemConflict: -
|
|
2017-07-03 23:07:31: noteConflict: -
|
|
2017-07-03 23:07:31: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:31: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:31: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:31: Total folders: 1
|
|
2017-07-03 23:07:31: Total notes: 0
|
|
2017-07-03 23:07:31: Total resources: 0
|
|
2017-07-03 23:07:31: SELECT * FROM settings
|
|
2017-07-03 23:07:31: Starting synchronization... [1499119651373]
|
|
2017-07-03 23:07:31: mkdir /root/.sync
|
|
2017-07-03 23:07:31: mkdir /root/.resource
|
|
2017-07-03 23:07:31: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:31: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:31: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:31: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:31: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:31: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:31: list /root
|
|
2017-07-03 23:07:31: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:31: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:31: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:31: ["a2c34f19c26a4ce1a011ed98d3bc99a3"]
|
|
2017-07-03 23:07:31: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:31: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:31: Sync: deleteLocal: remote has been deleted: (Local d3e9e2bdd22f4419b6cef564fc069e9d)
|
|
2017-07-03 23:07:31: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:31: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:31: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:31: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:31: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:31: ["d3e9e2bdd22f4419b6cef564fc069e9d"]
|
|
2017-07-03 23:07:31: Synchronization complete [1499119651373]:
|
|
2017-07-03 23:07:31: remotesToUpdate: -
|
|
2017-07-03 23:07:31: remotesToDelete: -
|
|
2017-07-03 23:07:31: localsToUdpate: -
|
|
2017-07-03 23:07:31: localsToDelete: 1
|
|
2017-07-03 23:07:31: createLocal: -
|
|
2017-07-03 23:07:31: updateLocal: -
|
|
2017-07-03 23:07:31: deleteLocal: 1
|
|
2017-07-03 23:07:31: createRemote: -
|
|
2017-07-03 23:07:31: updateRemote: -
|
|
2017-07-03 23:07:31: deleteRemote: -
|
|
2017-07-03 23:07:31: itemConflict: -
|
|
2017-07-03 23:07:31: noteConflict: -
|
|
2017-07-03 23:07:31: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:31: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:31: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:31: Total folders: 1
|
|
2017-07-03 23:07:31: Total notes: 0
|
|
2017-07-03 23:07:31: Total resources: 0
|
|
2017-07-03 23:07:31: SELECT * FROM `folders`
|
|
2017-07-03 23:07:31: SELECT * FROM `notes`
|
|
2017-07-03 23:07:31: list /root
|
|
2017-07-03 23:07:31: stat /root/a2c34f19c26a4ce1a011ed98d3bc99a3.md
|
|
2017-07-03 23:07:31: get /root/a2c34f19c26a4ce1a011ed98d3bc99a3.md
|
|
2017-07-03 23:07:31: BEGIN TRANSACTION
|
|
2017-07-03 23:07:31: DELETE FROM notes
|
|
2017-07-03 23:07:31: DELETE FROM folders
|
|
2017-07-03 23:07:31: DELETE FROM resources
|
|
2017-07-03 23:07:31: DELETE FROM tags
|
|
2017-07-03 23:07:31: DELETE FROM note_tags
|
|
2017-07-03 23:07:31: COMMIT
|
|
2017-07-03 23:07:32: SELECT * FROM settings
|
|
2017-07-03 23:07:32: BEGIN TRANSACTION
|
|
2017-07-03 23:07:32: DELETE FROM notes
|
|
2017-07-03 23:07:32: DELETE FROM folders
|
|
2017-07-03 23:07:32: DELETE FROM resources
|
|
2017-07-03 23:07:32: DELETE FROM tags
|
|
2017-07-03 23:07:32: DELETE FROM note_tags
|
|
2017-07-03 23:07:32: COMMIT
|
|
2017-07-03 23:07:32: SELECT * FROM settings
|
|
2017-07-03 23:07:32: SELECT * FROM settings
|
|
2017-07-03 23:07:32: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:32: ["folder1",1499119652576,"d102c5a7bb384283a5bfa8037db31f73",1499119652577]
|
|
2017-07-03 23:07:32: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:32: ["folder2",1499119652751,"b909907ecf464f3493316bae9eb49005",1499119652751]
|
|
2017-07-03 23:07:32: Starting synchronization... [1499119652895]
|
|
2017-07-03 23:07:32: mkdir /root/.sync
|
|
2017-07-03 23:07:32: mkdir /root/.resource
|
|
2017-07-03 23:07:32: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:32: stat /root/d102c5a7bb384283a5bfa8037db31f73.md
|
|
2017-07-03 23:07:32: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local d102c5a7bb384283a5bfa8037db31f73, "folder1")
|
|
2017-07-03 23:07:32: put /root/.sync/d102c5a7bb384283a5bfa8037db31f73.md_1499119652950
|
|
2017-07-03 23:07:32: setTimestamp /root/.sync/d102c5a7bb384283a5bfa8037db31f73.md_1499119652950
|
|
2017-07-03 23:07:32: move /root/.sync/d102c5a7bb384283a5bfa8037db31f73.md_1499119652950 => /root/d102c5a7bb384283a5bfa8037db31f73.md
|
|
2017-07-03 23:07:32: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:32: [1499119652965,"d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: stat /root/b909907ecf464f3493316bae9eb49005.md
|
|
2017-07-03 23:07:33: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local b909907ecf464f3493316bae9eb49005, "folder2")
|
|
2017-07-03 23:07:33: put /root/.sync/b909907ecf464f3493316bae9eb49005.md_1499119653109
|
|
2017-07-03 23:07:33: setTimestamp /root/.sync/b909907ecf464f3493316bae9eb49005.md_1499119653109
|
|
2017-07-03 23:07:33: move /root/.sync/b909907ecf464f3493316bae9eb49005.md_1499119653109 => /root/b909907ecf464f3493316bae9eb49005.md
|
|
2017-07-03 23:07:33: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:33: [1499119653128,"b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:33: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:33: list /root
|
|
2017-07-03 23:07:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:33: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:33: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:33: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:33: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:33: Synchronization complete [1499119652895]:
|
|
2017-07-03 23:07:33: remotesToUpdate: 2
|
|
2017-07-03 23:07:33: remotesToDelete: -
|
|
2017-07-03 23:07:33: localsToUdpate: -
|
|
2017-07-03 23:07:33: localsToDelete: -
|
|
2017-07-03 23:07:33: createLocal: -
|
|
2017-07-03 23:07:33: updateLocal: -
|
|
2017-07-03 23:07:33: deleteLocal: -
|
|
2017-07-03 23:07:33: createRemote: 2
|
|
2017-07-03 23:07:33: updateRemote: -
|
|
2017-07-03 23:07:33: deleteRemote: -
|
|
2017-07-03 23:07:33: itemConflict: -
|
|
2017-07-03 23:07:33: noteConflict: -
|
|
2017-07-03 23:07:33: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:33: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:33: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:33: Total folders: 2
|
|
2017-07-03 23:07:33: Total notes: 0
|
|
2017-07-03 23:07:33: Total resources: 0
|
|
2017-07-03 23:07:33: SELECT * FROM settings
|
|
2017-07-03 23:07:33: Starting synchronization... [1499119653635]
|
|
2017-07-03 23:07:33: mkdir /root/.sync
|
|
2017-07-03 23:07:33: mkdir /root/.resource
|
|
2017-07-03 23:07:33: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:33: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:33: list /root
|
|
2017-07-03 23:07:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:33: get /root/d102c5a7bb384283a5bfa8037db31f73.md
|
|
2017-07-03 23:07:33: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:33: ["d102c5a7bb384283a5bfa8037db31f73","folder1","1499119652577","1499119652576",1499119653745]
|
|
2017-07-03 23:07:33: Sync: createLocal: remote exists but local does not: (Remote d102c5a7bb384283a5bfa8037db31f73, "folder1")
|
|
2017-07-03 23:07:33: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:33: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:33: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:33: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:33: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:33: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:33: get /root/b909907ecf464f3493316bae9eb49005.md
|
|
2017-07-03 23:07:33: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:34: ["b909907ecf464f3493316bae9eb49005","folder2","1499119652751","1499119652751",1499119653997]
|
|
2017-07-03 23:07:34: Sync: createLocal: remote exists but local does not: (Remote b909907ecf464f3493316bae9eb49005, "folder2")
|
|
2017-07-03 23:07:34: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:34: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:34: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:34: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:34: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:34: Synchronization complete [1499119653635]:
|
|
2017-07-03 23:07:34: remotesToUpdate: -
|
|
2017-07-03 23:07:34: remotesToDelete: -
|
|
2017-07-03 23:07:34: localsToUdpate: 2
|
|
2017-07-03 23:07:34: localsToDelete: -
|
|
2017-07-03 23:07:34: createLocal: 2
|
|
2017-07-03 23:07:34: updateLocal: -
|
|
2017-07-03 23:07:34: deleteLocal: -
|
|
2017-07-03 23:07:34: createRemote: -
|
|
2017-07-03 23:07:34: updateRemote: -
|
|
2017-07-03 23:07:34: deleteRemote: -
|
|
2017-07-03 23:07:34: itemConflict: -
|
|
2017-07-03 23:07:34: noteConflict: -
|
|
2017-07-03 23:07:34: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:34: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:34: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:34: Total folders: 2
|
|
2017-07-03 23:07:34: Total notes: 0
|
|
2017-07-03 23:07:34: Total resources: 0
|
|
2017-07-03 23:07:34: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:34: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:34: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:34: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:34: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:34: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:34: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:34: [2,"d102c5a7bb384283a5bfa8037db31f73",1499119654649]
|
|
2017-07-03 23:07:34: SELECT * FROM settings
|
|
2017-07-03 23:07:34: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:35: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:35: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:35: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:35: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:35: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:35: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:35: [2,"b909907ecf464f3493316bae9eb49005",1499119655237]
|
|
2017-07-03 23:07:35: Starting synchronization... [1499119655493]
|
|
2017-07-03 23:07:35: mkdir /root/.sync
|
|
2017-07-03 23:07:35: mkdir /root/.resource
|
|
2017-07-03 23:07:35: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:35: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:35: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:35: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:35: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:35: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:35: Sync: deleteRemote: local has been deleted: (Remote b909907ecf464f3493316bae9eb49005)
|
|
2017-07-03 23:07:35: delete /root/b909907ecf464f3493316bae9eb49005.md
|
|
2017-07-03 23:07:35: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:35: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:35: list /root
|
|
2017-07-03 23:07:35: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:35: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:35: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:35: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:35: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:35: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:35: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:35: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:35: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:35: Synchronization complete [1499119655493]:
|
|
2017-07-03 23:07:35: remotesToUpdate: -
|
|
2017-07-03 23:07:35: remotesToDelete: 1
|
|
2017-07-03 23:07:35: localsToUdpate: -
|
|
2017-07-03 23:07:35: localsToDelete: -
|
|
2017-07-03 23:07:35: createLocal: -
|
|
2017-07-03 23:07:35: updateLocal: -
|
|
2017-07-03 23:07:35: deleteLocal: -
|
|
2017-07-03 23:07:35: createRemote: -
|
|
2017-07-03 23:07:35: updateRemote: -
|
|
2017-07-03 23:07:35: deleteRemote: 1
|
|
2017-07-03 23:07:35: itemConflict: -
|
|
2017-07-03 23:07:35: noteConflict: -
|
|
2017-07-03 23:07:35: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:35: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:35: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:35: Total folders: 1
|
|
2017-07-03 23:07:35: Total notes: 0
|
|
2017-07-03 23:07:35: Total resources: 0
|
|
2017-07-03 23:07:36: SELECT * FROM settings
|
|
2017-07-03 23:07:36: Starting synchronization... [1499119656118]
|
|
2017-07-03 23:07:36: mkdir /root/.sync
|
|
2017-07-03 23:07:36: mkdir /root/.resource
|
|
2017-07-03 23:07:36: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:36: Sync: deleteRemote: local has been deleted: (Remote d102c5a7bb384283a5bfa8037db31f73)
|
|
2017-07-03 23:07:36: delete /root/d102c5a7bb384283a5bfa8037db31f73.md
|
|
2017-07-03 23:07:36: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:36: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:36: list /root
|
|
2017-07-03 23:07:36: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:36: Sync: deleteLocal: remote has been deleted: (Local b909907ecf464f3493316bae9eb49005)
|
|
2017-07-03 23:07:36: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:36: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:36: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:36: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:36: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:36: ["b909907ecf464f3493316bae9eb49005"]
|
|
2017-07-03 23:07:36: Synchronization complete [1499119656118]:
|
|
2017-07-03 23:07:36: remotesToUpdate: -
|
|
2017-07-03 23:07:36: remotesToDelete: 1
|
|
2017-07-03 23:07:36: localsToUdpate: -
|
|
2017-07-03 23:07:36: localsToDelete: 1
|
|
2017-07-03 23:07:36: createLocal: -
|
|
2017-07-03 23:07:36: updateLocal: -
|
|
2017-07-03 23:07:36: deleteLocal: 1
|
|
2017-07-03 23:07:36: createRemote: -
|
|
2017-07-03 23:07:36: updateRemote: -
|
|
2017-07-03 23:07:36: deleteRemote: 1
|
|
2017-07-03 23:07:36: itemConflict: -
|
|
2017-07-03 23:07:36: noteConflict: -
|
|
2017-07-03 23:07:36: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:36: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:36: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:36: Total folders: 0
|
|
2017-07-03 23:07:36: Total notes: 0
|
|
2017-07-03 23:07:36: Total resources: 0
|
|
2017-07-03 23:07:36: SELECT * FROM `folders`
|
|
2017-07-03 23:07:36: SELECT * FROM `notes`
|
|
2017-07-03 23:07:36: SELECT * FROM settings
|
|
2017-07-03 23:07:36: Starting synchronization... [1499119656847]
|
|
2017-07-03 23:07:36: mkdir /root/.sync
|
|
2017-07-03 23:07:36: mkdir /root/.resource
|
|
2017-07-03 23:07:36: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:36: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:36: list /root
|
|
2017-07-03 23:07:36: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:36: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:36: Sync: deleteLocal: remote has been deleted: (Local d102c5a7bb384283a5bfa8037db31f73)
|
|
2017-07-03 23:07:36: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:36: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:36: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:36: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:36: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:36: ["d102c5a7bb384283a5bfa8037db31f73"]
|
|
2017-07-03 23:07:37: Synchronization complete [1499119656847]:
|
|
2017-07-03 23:07:37: remotesToUpdate: -
|
|
2017-07-03 23:07:37: remotesToDelete: -
|
|
2017-07-03 23:07:37: localsToUdpate: -
|
|
2017-07-03 23:07:37: localsToDelete: 1
|
|
2017-07-03 23:07:37: createLocal: -
|
|
2017-07-03 23:07:37: updateLocal: -
|
|
2017-07-03 23:07:37: deleteLocal: 1
|
|
2017-07-03 23:07:37: createRemote: -
|
|
2017-07-03 23:07:37: updateRemote: -
|
|
2017-07-03 23:07:37: deleteRemote: -
|
|
2017-07-03 23:07:37: itemConflict: -
|
|
2017-07-03 23:07:37: noteConflict: -
|
|
2017-07-03 23:07:37: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:37: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:37: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:37: Total folders: 0
|
|
2017-07-03 23:07:37: Total notes: 0
|
|
2017-07-03 23:07:37: Total resources: 0
|
|
2017-07-03 23:07:37: SELECT * FROM `folders`
|
|
2017-07-03 23:07:37: SELECT * FROM `notes`
|
|
2017-07-03 23:07:37: BEGIN TRANSACTION
|
|
2017-07-03 23:07:37: DELETE FROM notes
|
|
2017-07-03 23:07:37: DELETE FROM folders
|
|
2017-07-03 23:07:37: DELETE FROM resources
|
|
2017-07-03 23:07:37: DELETE FROM tags
|
|
2017-07-03 23:07:37: DELETE FROM note_tags
|
|
2017-07-03 23:07:37: COMMIT
|
|
2017-07-03 23:07:37: SELECT * FROM settings
|
|
2017-07-03 23:07:37: BEGIN TRANSACTION
|
|
2017-07-03 23:07:37: DELETE FROM notes
|
|
2017-07-03 23:07:37: DELETE FROM folders
|
|
2017-07-03 23:07:37: DELETE FROM resources
|
|
2017-07-03 23:07:37: DELETE FROM tags
|
|
2017-07-03 23:07:37: DELETE FROM note_tags
|
|
2017-07-03 23:07:37: COMMIT
|
|
2017-07-03 23:07:37: SELECT * FROM settings
|
|
2017-07-03 23:07:38: SELECT * FROM settings
|
|
2017-07-03 23:07:38: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:38: ["folder1",1499119658032,"43a2f83b2f754319a1010e388b42ab83",1499119658032]
|
|
2017-07-03 23:07:38: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:38: ["43a2f83b2f754319a1010e388b42ab83","un","joplin","SET_ME",1499119658189,"7269bef9ceb34b4098bc72cc06675355",1499119658189]
|
|
2017-07-03 23:07:38: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:38: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:38: Starting synchronization... [1499119658418]
|
|
2017-07-03 23:07:38: mkdir /root/.sync
|
|
2017-07-03 23:07:38: mkdir /root/.resource
|
|
2017-07-03 23:07:38: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:38: stat /root/43a2f83b2f754319a1010e388b42ab83.md
|
|
2017-07-03 23:07:38: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 43a2f83b2f754319a1010e388b42ab83, "folder1")
|
|
2017-07-03 23:07:38: put /root/.sync/43a2f83b2f754319a1010e388b42ab83.md_1499119658484
|
|
2017-07-03 23:07:38: setTimestamp /root/.sync/43a2f83b2f754319a1010e388b42ab83.md_1499119658484
|
|
2017-07-03 23:07:38: move /root/.sync/43a2f83b2f754319a1010e388b42ab83.md_1499119658484 => /root/43a2f83b2f754319a1010e388b42ab83.md
|
|
2017-07-03 23:07:38: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:38: [1499119658507,"43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:38: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:38: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:38: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:38: stat /root/7269bef9ceb34b4098bc72cc06675355.md
|
|
2017-07-03 23:07:38: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 7269bef9ceb34b4098bc72cc06675355, "un")
|
|
2017-07-03 23:07:38: put /root/.sync/7269bef9ceb34b4098bc72cc06675355.md_1499119658698
|
|
2017-07-03 23:07:38: setTimestamp /root/.sync/7269bef9ceb34b4098bc72cc06675355.md_1499119658698
|
|
2017-07-03 23:07:38: move /root/.sync/7269bef9ceb34b4098bc72cc06675355.md_1499119658698 => /root/7269bef9ceb34b4098bc72cc06675355.md
|
|
2017-07-03 23:07:38: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:38: [1499119658729,"7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:38: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:38: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:38: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:38: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:38: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:38: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:38: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:38: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:38: list /root
|
|
2017-07-03 23:07:38: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:38: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:38: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:38: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:38: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:38: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:38: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:38: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:38: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:38: Synchronization complete [1499119658418]:
|
|
2017-07-03 23:07:38: remotesToUpdate: 2
|
|
2017-07-03 23:07:38: remotesToDelete: -
|
|
2017-07-03 23:07:38: localsToUdpate: -
|
|
2017-07-03 23:07:38: localsToDelete: -
|
|
2017-07-03 23:07:38: createLocal: -
|
|
2017-07-03 23:07:38: updateLocal: -
|
|
2017-07-03 23:07:38: deleteLocal: -
|
|
2017-07-03 23:07:38: createRemote: 2
|
|
2017-07-03 23:07:38: updateRemote: -
|
|
2017-07-03 23:07:38: deleteRemote: -
|
|
2017-07-03 23:07:38: itemConflict: -
|
|
2017-07-03 23:07:38: noteConflict: -
|
|
2017-07-03 23:07:38: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:38: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:38: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:38: Total folders: 1
|
|
2017-07-03 23:07:39: Total notes: 1
|
|
2017-07-03 23:07:39: Total resources: 0
|
|
2017-07-03 23:07:39: SELECT * FROM settings
|
|
2017-07-03 23:07:39: Starting synchronization... [1499119659220]
|
|
2017-07-03 23:07:39: mkdir /root/.sync
|
|
2017-07-03 23:07:39: mkdir /root/.resource
|
|
2017-07-03 23:07:39: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:39: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:39: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:39: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:39: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:39: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:39: list /root
|
|
2017-07-03 23:07:39: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:39: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:39: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:39: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:39: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:39: get /root/43a2f83b2f754319a1010e388b42ab83.md
|
|
2017-07-03 23:07:39: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:39: ["43a2f83b2f754319a1010e388b42ab83","folder1","1499119658032","1499119658032",1499119659329]
|
|
2017-07-03 23:07:39: Sync: createLocal: remote exists but local does not: (Remote 43a2f83b2f754319a1010e388b42ab83, "folder1")
|
|
2017-07-03 23:07:39: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:39: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:39: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:39: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:39: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:39: get /root/7269bef9ceb34b4098bc72cc06675355.md
|
|
2017-07-03 23:07:39: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:39: ["7269bef9ceb34b4098bc72cc06675355","43a2f83b2f754319a1010e388b42ab83","un","","1499119658189","1499119658189",1499119659583,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:39: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:39: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:39: Sync: createLocal: remote exists but local does not: (Remote 7269bef9ceb34b4098bc72cc06675355, "un")
|
|
2017-07-03 23:07:39: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:39: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:39: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:39: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:39: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:39: Synchronization complete [1499119659220]:
|
|
2017-07-03 23:07:39: remotesToUpdate: -
|
|
2017-07-03 23:07:39: remotesToDelete: -
|
|
2017-07-03 23:07:39: localsToUdpate: 2
|
|
2017-07-03 23:07:39: localsToDelete: -
|
|
2017-07-03 23:07:39: createLocal: 2
|
|
2017-07-03 23:07:39: updateLocal: -
|
|
2017-07-03 23:07:39: deleteLocal: -
|
|
2017-07-03 23:07:39: createRemote: -
|
|
2017-07-03 23:07:39: updateRemote: -
|
|
2017-07-03 23:07:39: deleteRemote: -
|
|
2017-07-03 23:07:39: itemConflict: -
|
|
2017-07-03 23:07:39: noteConflict: -
|
|
2017-07-03 23:07:39: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:39: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:39: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:39: Total folders: 1
|
|
2017-07-03 23:07:39: Total notes: 1
|
|
2017-07-03 23:07:39: Total resources: 0
|
|
2017-07-03 23:07:40: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:07:40: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:40: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:40: [1,"7269bef9ceb34b4098bc72cc06675355",1499119660229]
|
|
2017-07-03 23:07:40: Starting synchronization... [1499119660406]
|
|
2017-07-03 23:07:40: mkdir /root/.sync
|
|
2017-07-03 23:07:40: mkdir /root/.resource
|
|
2017-07-03 23:07:40: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:40: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:40: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:40: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:40: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:40: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:40: Sync: deleteRemote: local has been deleted: (Remote 7269bef9ceb34b4098bc72cc06675355)
|
|
2017-07-03 23:07:40: delete /root/7269bef9ceb34b4098bc72cc06675355.md
|
|
2017-07-03 23:07:40: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:40: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:40: list /root
|
|
2017-07-03 23:07:40: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:40: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:40: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:40: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:40: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:40: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:40: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:40: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:40: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:40: Synchronization complete [1499119660406]:
|
|
2017-07-03 23:07:40: remotesToUpdate: -
|
|
2017-07-03 23:07:40: remotesToDelete: 1
|
|
2017-07-03 23:07:40: localsToUdpate: -
|
|
2017-07-03 23:07:40: localsToDelete: -
|
|
2017-07-03 23:07:40: createLocal: -
|
|
2017-07-03 23:07:40: updateLocal: -
|
|
2017-07-03 23:07:40: deleteLocal: -
|
|
2017-07-03 23:07:40: createRemote: -
|
|
2017-07-03 23:07:40: updateRemote: -
|
|
2017-07-03 23:07:40: deleteRemote: 1
|
|
2017-07-03 23:07:40: itemConflict: -
|
|
2017-07-03 23:07:40: noteConflict: -
|
|
2017-07-03 23:07:40: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:40: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:40: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:40: Total folders: 1
|
|
2017-07-03 23:07:40: Total notes: 0
|
|
2017-07-03 23:07:40: Total resources: 0
|
|
2017-07-03 23:07:40: SELECT * FROM settings
|
|
2017-07-03 23:07:40: UPDATE `notes` SET `title`=?, `updated_time`=? WHERE id=?
|
|
2017-07-03 23:07:40: ["Modified after having been deleted",1499119660963,"7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:41: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:41: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:41: Starting synchronization... [1499119661461]
|
|
2017-07-03 23:07:41: mkdir /root/.sync
|
|
2017-07-03 23:07:41: mkdir /root/.resource
|
|
2017-07-03 23:07:41: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:41: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:41: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:41: stat /root/7269bef9ceb34b4098bc72cc06675355.md
|
|
2017-07-03 23:07:41: Sync: noteConflict: remote has been deleted, but local has changes: (Local 7269bef9ceb34b4098bc72cc06675355, "Modified after having been deleted")
|
|
2017-07-03 23:07:41: INSERT INTO `notes` (`parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `is_conflict`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`, `id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:41: ["43a2f83b2f754319a1010e388b42ab83","Modified after having been deleted","",1499119658189,1499119660963,1499119658729,1,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0,"83739a9940c64858866f34145f2ebc35"]
|
|
2017-07-03 23:07:41: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:41: ["83739a9940c64858866f34145f2ebc35"]
|
|
2017-07-03 23:07:41: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:07:41: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:41: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:41: [1,"7269bef9ceb34b4098bc72cc06675355",1499119661969]
|
|
2017-07-03 23:07:42: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:42: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:42: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:42: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:42: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:42: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:42: Sync: deleteRemote: local has been deleted: (Remote 7269bef9ceb34b4098bc72cc06675355)
|
|
2017-07-03 23:07:42: delete /root/7269bef9ceb34b4098bc72cc06675355.md
|
|
2017-07-03 23:07:42: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:42: ["7269bef9ceb34b4098bc72cc06675355"]
|
|
2017-07-03 23:07:42: list /root
|
|
2017-07-03 23:07:42: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:42: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:42: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:42: ["43a2f83b2f754319a1010e388b42ab83"]
|
|
2017-07-03 23:07:42: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:42: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:42: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:42: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:42: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:42: Synchronization complete [1499119661461]:
|
|
2017-07-03 23:07:42: remotesToUpdate: 1
|
|
2017-07-03 23:07:42: remotesToDelete: 1
|
|
2017-07-03 23:07:42: localsToUdpate: -
|
|
2017-07-03 23:07:42: localsToDelete: -
|
|
2017-07-03 23:07:42: createLocal: -
|
|
2017-07-03 23:07:42: updateLocal: -
|
|
2017-07-03 23:07:42: deleteLocal: -
|
|
2017-07-03 23:07:42: createRemote: -
|
|
2017-07-03 23:07:42: updateRemote: -
|
|
2017-07-03 23:07:42: deleteRemote: 1
|
|
2017-07-03 23:07:42: itemConflict: -
|
|
2017-07-03 23:07:42: noteConflict: 1
|
|
2017-07-03 23:07:42: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:42: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:42: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:42: Total folders: 1
|
|
2017-07-03 23:07:42: Total notes: 1
|
|
2017-07-03 23:07:42: Total resources: 0
|
|
2017-07-03 23:07:42: SELECT * FROM notes WHERE is_conflict = 1
|
|
2017-07-03 23:07:42: SELECT * FROM notes WHERE is_conflict = 0
|
|
2017-07-03 23:07:42: BEGIN TRANSACTION
|
|
2017-07-03 23:07:42: DELETE FROM notes
|
|
2017-07-03 23:07:42: DELETE FROM folders
|
|
2017-07-03 23:07:42: DELETE FROM resources
|
|
2017-07-03 23:07:42: DELETE FROM tags
|
|
2017-07-03 23:07:42: DELETE FROM note_tags
|
|
2017-07-03 23:07:42: COMMIT
|
|
2017-07-03 23:07:42: SELECT * FROM settings
|
|
2017-07-03 23:07:42: BEGIN TRANSACTION
|
|
2017-07-03 23:07:42: DELETE FROM notes
|
|
2017-07-03 23:07:42: DELETE FROM folders
|
|
2017-07-03 23:07:42: DELETE FROM resources
|
|
2017-07-03 23:07:42: DELETE FROM tags
|
|
2017-07-03 23:07:42: DELETE FROM note_tags
|
|
2017-07-03 23:07:42: COMMIT
|
|
2017-07-03 23:07:42: SELECT * FROM settings
|
|
2017-07-03 23:07:43: SELECT * FROM settings
|
|
2017-07-03 23:07:43: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:43: ["folder1",1499119663132,"e5f56efd80be490db307abf2f3170e83",1499119663132]
|
|
2017-07-03 23:07:43: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:43: ["folder2",1499119663297,"08e63e9dea4340a1b759b0d905c050c6",1499119663297]
|
|
2017-07-03 23:07:43: INSERT INTO `notes` (`parent_id`, `title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:43: ["e5f56efd80be490db307abf2f3170e83","un","joplin","SET_ME",1499119663489,"c461f7b314a3466f9bc889b431c5a530",1499119663489]
|
|
2017-07-03 23:07:43: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:43: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:43: Starting synchronization... [1499119663676]
|
|
2017-07-03 23:07:43: mkdir /root/.sync
|
|
2017-07-03 23:07:43: mkdir /root/.resource
|
|
2017-07-03 23:07:43: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:43: stat /root/e5f56efd80be490db307abf2f3170e83.md
|
|
2017-07-03 23:07:43: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e5f56efd80be490db307abf2f3170e83, "folder1")
|
|
2017-07-03 23:07:43: put /root/.sync/e5f56efd80be490db307abf2f3170e83.md_1499119663711
|
|
2017-07-03 23:07:43: setTimestamp /root/.sync/e5f56efd80be490db307abf2f3170e83.md_1499119663711
|
|
2017-07-03 23:07:43: move /root/.sync/e5f56efd80be490db307abf2f3170e83.md_1499119663711 => /root/e5f56efd80be490db307abf2f3170e83.md
|
|
2017-07-03 23:07:43: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:43: [1499119663719,"e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:43: stat /root/08e63e9dea4340a1b759b0d905c050c6.md
|
|
2017-07-03 23:07:43: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 08e63e9dea4340a1b759b0d905c050c6, "folder2")
|
|
2017-07-03 23:07:43: put /root/.sync/08e63e9dea4340a1b759b0d905c050c6.md_1499119663879
|
|
2017-07-03 23:07:43: setTimestamp /root/.sync/08e63e9dea4340a1b759b0d905c050c6.md_1499119663879
|
|
2017-07-03 23:07:43: move /root/.sync/08e63e9dea4340a1b759b0d905c050c6.md_1499119663879 => /root/08e63e9dea4340a1b759b0d905c050c6.md
|
|
2017-07-03 23:07:43: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:43: [1499119663894,"08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:43: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:44: stat /root/c461f7b314a3466f9bc889b431c5a530.md
|
|
2017-07-03 23:07:44: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local c461f7b314a3466f9bc889b431c5a530, "un")
|
|
2017-07-03 23:07:44: put /root/.sync/c461f7b314a3466f9bc889b431c5a530.md_1499119664021
|
|
2017-07-03 23:07:44: setTimestamp /root/.sync/c461f7b314a3466f9bc889b431c5a530.md_1499119664021
|
|
2017-07-03 23:07:44: move /root/.sync/c461f7b314a3466f9bc889b431c5a530.md_1499119664021 => /root/c461f7b314a3466f9bc889b431c5a530.md
|
|
2017-07-03 23:07:44: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:44: [1499119664034,"c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:44: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:44: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:44: list /root
|
|
2017-07-03 23:07:44: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:44: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:44: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:44: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:44: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:44: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:44: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:44: Synchronization complete [1499119663676]:
|
|
2017-07-03 23:07:44: remotesToUpdate: 3
|
|
2017-07-03 23:07:44: remotesToDelete: -
|
|
2017-07-03 23:07:44: localsToUdpate: -
|
|
2017-07-03 23:07:44: localsToDelete: -
|
|
2017-07-03 23:07:44: createLocal: -
|
|
2017-07-03 23:07:44: updateLocal: -
|
|
2017-07-03 23:07:44: deleteLocal: -
|
|
2017-07-03 23:07:44: createRemote: 3
|
|
2017-07-03 23:07:44: updateRemote: -
|
|
2017-07-03 23:07:44: deleteRemote: -
|
|
2017-07-03 23:07:44: itemConflict: -
|
|
2017-07-03 23:07:44: noteConflict: -
|
|
2017-07-03 23:07:44: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:44: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:44: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:44: Total folders: 2
|
|
2017-07-03 23:07:44: Total notes: 1
|
|
2017-07-03 23:07:44: Total resources: 0
|
|
2017-07-03 23:07:44: SELECT * FROM settings
|
|
2017-07-03 23:07:44: Starting synchronization... [1499119664500]
|
|
2017-07-03 23:07:44: mkdir /root/.sync
|
|
2017-07-03 23:07:44: mkdir /root/.resource
|
|
2017-07-03 23:07:44: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:44: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:44: list /root
|
|
2017-07-03 23:07:44: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:44: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:44: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:44: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:44: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:44: get /root/e5f56efd80be490db307abf2f3170e83.md
|
|
2017-07-03 23:07:44: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:44: ["e5f56efd80be490db307abf2f3170e83","folder1","1499119663132","1499119663132",1499119664620]
|
|
2017-07-03 23:07:44: Sync: createLocal: remote exists but local does not: (Remote e5f56efd80be490db307abf2f3170e83, "folder1")
|
|
2017-07-03 23:07:44: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:44: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:44: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:44: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:44: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:44: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:44: get /root/08e63e9dea4340a1b759b0d905c050c6.md
|
|
2017-07-03 23:07:44: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:44: ["08e63e9dea4340a1b759b0d905c050c6","folder2","1499119663297","1499119663297",1499119664857]
|
|
2017-07-03 23:07:45: Sync: createLocal: remote exists but local does not: (Remote 08e63e9dea4340a1b759b0d905c050c6, "folder2")
|
|
2017-07-03 23:07:45: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:45: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:45: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:45: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:45: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:45: get /root/c461f7b314a3466f9bc889b431c5a530.md
|
|
2017-07-03 23:07:45: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530","e5f56efd80be490db307abf2f3170e83","un","","1499119663489","1499119663489",1499119665064,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:45: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:45: Sync: createLocal: remote exists but local does not: (Remote c461f7b314a3466f9bc889b431c5a530, "un")
|
|
2017-07-03 23:07:45: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:45: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:45: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:45: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:45: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:45: Synchronization complete [1499119664500]:
|
|
2017-07-03 23:07:45: remotesToUpdate: -
|
|
2017-07-03 23:07:45: remotesToDelete: -
|
|
2017-07-03 23:07:45: localsToUdpate: 3
|
|
2017-07-03 23:07:45: localsToDelete: -
|
|
2017-07-03 23:07:45: createLocal: 3
|
|
2017-07-03 23:07:45: updateLocal: -
|
|
2017-07-03 23:07:45: deleteLocal: -
|
|
2017-07-03 23:07:45: createRemote: -
|
|
2017-07-03 23:07:45: updateRemote: -
|
|
2017-07-03 23:07:45: deleteRemote: -
|
|
2017-07-03 23:07:45: itemConflict: -
|
|
2017-07-03 23:07:45: noteConflict: -
|
|
2017-07-03 23:07:45: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:45: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:45: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:45: Total folders: 2
|
|
2017-07-03 23:07:45: Total notes: 1
|
|
2017-07-03 23:07:45: Total resources: 0
|
|
2017-07-03 23:07:45: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:45: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:45: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:45: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:45: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:07:45: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:45: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:45: [1,"c461f7b314a3466f9bc889b431c5a530",1499119665766]
|
|
2017-07-03 23:07:45: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:45: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:46: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:46: [2,"e5f56efd80be490db307abf2f3170e83",1499119666081]
|
|
2017-07-03 23:07:46: Starting synchronization... [1499119666210]
|
|
2017-07-03 23:07:46: mkdir /root/.sync
|
|
2017-07-03 23:07:46: mkdir /root/.resource
|
|
2017-07-03 23:07:46: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:46: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:46: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:46: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:46: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:46: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:46: Sync: deleteRemote: local has been deleted: (Remote c461f7b314a3466f9bc889b431c5a530)
|
|
2017-07-03 23:07:46: delete /root/c461f7b314a3466f9bc889b431c5a530.md
|
|
2017-07-03 23:07:46: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:46: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:46: Sync: deleteRemote: local has been deleted: (Remote e5f56efd80be490db307abf2f3170e83)
|
|
2017-07-03 23:07:46: delete /root/e5f56efd80be490db307abf2f3170e83.md
|
|
2017-07-03 23:07:46: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:46: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:46: list /root
|
|
2017-07-03 23:07:46: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:46: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:46: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:46: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:46: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:46: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:46: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:46: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:46: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:46: Synchronization complete [1499119666210]:
|
|
2017-07-03 23:07:46: remotesToUpdate: -
|
|
2017-07-03 23:07:46: remotesToDelete: 2
|
|
2017-07-03 23:07:46: localsToUdpate: -
|
|
2017-07-03 23:07:46: localsToDelete: -
|
|
2017-07-03 23:07:46: createLocal: -
|
|
2017-07-03 23:07:46: updateLocal: -
|
|
2017-07-03 23:07:46: deleteLocal: -
|
|
2017-07-03 23:07:46: createRemote: -
|
|
2017-07-03 23:07:46: updateRemote: -
|
|
2017-07-03 23:07:46: deleteRemote: 2
|
|
2017-07-03 23:07:46: itemConflict: -
|
|
2017-07-03 23:07:46: noteConflict: -
|
|
2017-07-03 23:07:46: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:46: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:46: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:46: Total folders: 1
|
|
2017-07-03 23:07:46: Total notes: 0
|
|
2017-07-03 23:07:46: Total resources: 0
|
|
2017-07-03 23:07:46: SELECT * FROM settings
|
|
2017-07-03 23:07:46: UPDATE `folders` SET `title`=?, `updated_time`=? WHERE id=?
|
|
2017-07-03 23:07:47: ["Modified after having been deleted",1499119666990,"e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:47: Starting synchronization... [1499119667180]
|
|
2017-07-03 23:07:47: mkdir /root/.sync
|
|
2017-07-03 23:07:47: mkdir /root/.resource
|
|
2017-07-03 23:07:47: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:47: stat /root/e5f56efd80be490db307abf2f3170e83.md
|
|
2017-07-03 23:07:47: Sync: itemConflict: remote has been deleted, but local has changes: (Local e5f56efd80be490db307abf2f3170e83, "Modified after having been deleted")
|
|
2017-07-03 23:07:47: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:47: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:47: SELECT id FROM notes WHERE is_conflict = 0 AND parent_id = ?
|
|
2017-07-03 23:07:47: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:47: DELETE FROM notes WHERE id = ?
|
|
2017-07-03 23:07:47: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:47: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:47: [1,"c461f7b314a3466f9bc889b431c5a530",1499119667469]
|
|
2017-07-03 23:07:47: DELETE FROM folders WHERE id = ?
|
|
2017-07-03 23:07:47: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:47: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:47: [2,"e5f56efd80be490db307abf2f3170e83",1499119667756]
|
|
2017-07-03 23:07:47: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:47: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:47: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:47: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:47: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:47: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:48: Sync: deleteRemote: local has been deleted: (Remote c461f7b314a3466f9bc889b431c5a530)
|
|
2017-07-03 23:07:48: delete /root/c461f7b314a3466f9bc889b431c5a530.md
|
|
2017-07-03 23:07:48: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:48: ["c461f7b314a3466f9bc889b431c5a530"]
|
|
2017-07-03 23:07:48: Sync: deleteRemote: local has been deleted: (Remote e5f56efd80be490db307abf2f3170e83)
|
|
2017-07-03 23:07:48: delete /root/e5f56efd80be490db307abf2f3170e83.md
|
|
2017-07-03 23:07:48: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:48: ["e5f56efd80be490db307abf2f3170e83"]
|
|
2017-07-03 23:07:48: list /root
|
|
2017-07-03 23:07:48: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:48: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:48: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:48: ["08e63e9dea4340a1b759b0d905c050c6"]
|
|
2017-07-03 23:07:48: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:48: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:48: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:48: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:48: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:48: Synchronization complete [1499119667180]:
|
|
2017-07-03 23:07:48: remotesToUpdate: 1
|
|
2017-07-03 23:07:48: remotesToDelete: 2
|
|
2017-07-03 23:07:48: localsToUdpate: -
|
|
2017-07-03 23:07:48: localsToDelete: -
|
|
2017-07-03 23:07:48: createLocal: -
|
|
2017-07-03 23:07:48: updateLocal: -
|
|
2017-07-03 23:07:48: deleteLocal: -
|
|
2017-07-03 23:07:48: createRemote: -
|
|
2017-07-03 23:07:48: updateRemote: -
|
|
2017-07-03 23:07:48: deleteRemote: 2
|
|
2017-07-03 23:07:48: itemConflict: 1
|
|
2017-07-03 23:07:48: noteConflict: -
|
|
2017-07-03 23:07:48: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:48: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:48: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:48: Total folders: 1
|
|
2017-07-03 23:07:48: Total notes: 0
|
|
2017-07-03 23:07:48: Total resources: 0
|
|
2017-07-03 23:07:48: SELECT * FROM `folders`
|
|
2017-07-03 23:07:48: SELECT * FROM `notes`
|
|
2017-07-03 23:07:48: BEGIN TRANSACTION
|
|
2017-07-03 23:07:48: DELETE FROM notes
|
|
2017-07-03 23:07:48: DELETE FROM folders
|
|
2017-07-03 23:07:48: DELETE FROM resources
|
|
2017-07-03 23:07:48: DELETE FROM tags
|
|
2017-07-03 23:07:48: DELETE FROM note_tags
|
|
2017-07-03 23:07:48: COMMIT
|
|
2017-07-03 23:07:48: SELECT * FROM settings
|
|
2017-07-03 23:07:48: BEGIN TRANSACTION
|
|
2017-07-03 23:07:48: DELETE FROM notes
|
|
2017-07-03 23:07:48: DELETE FROM folders
|
|
2017-07-03 23:07:48: DELETE FROM resources
|
|
2017-07-03 23:07:48: DELETE FROM tags
|
|
2017-07-03 23:07:48: DELETE FROM note_tags
|
|
2017-07-03 23:07:48: COMMIT
|
|
2017-07-03 23:07:48: SELECT * FROM settings
|
|
2017-07-03 23:07:49: SELECT * FROM settings
|
|
2017-07-03 23:07:49: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:49: ["folder",1499119669109,"4b081b47d6cd473ba859edef62830710",1499119669109]
|
|
2017-07-03 23:07:49: SELECT * FROM settings
|
|
2017-07-03 23:07:49: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:49: ["folder",1499119669503,"de24c5cf48e544bdb2ba2b600cd7416e",1499119669503]
|
|
2017-07-03 23:07:49: Starting synchronization... [1499119669709]
|
|
2017-07-03 23:07:49: mkdir /root/.sync
|
|
2017-07-03 23:07:49: mkdir /root/.resource
|
|
2017-07-03 23:07:49: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:49: stat /root/de24c5cf48e544bdb2ba2b600cd7416e.md
|
|
2017-07-03 23:07:49: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local de24c5cf48e544bdb2ba2b600cd7416e, "folder")
|
|
2017-07-03 23:07:49: put /root/.sync/de24c5cf48e544bdb2ba2b600cd7416e.md_1499119669759
|
|
2017-07-03 23:07:49: setTimestamp /root/.sync/de24c5cf48e544bdb2ba2b600cd7416e.md_1499119669759
|
|
2017-07-03 23:07:49: move /root/.sync/de24c5cf48e544bdb2ba2b600cd7416e.md_1499119669759 => /root/de24c5cf48e544bdb2ba2b600cd7416e.md
|
|
2017-07-03 23:07:49: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:49: [1499119669774,"de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:49: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:49: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:49: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:49: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:49: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:49: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:49: list /root
|
|
2017-07-03 23:07:49: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:49: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:49: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:50: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:50: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:50: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:50: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:50: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:50: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:50: Synchronization complete [1499119669709]:
|
|
2017-07-03 23:07:50: remotesToUpdate: 1
|
|
2017-07-03 23:07:50: remotesToDelete: -
|
|
2017-07-03 23:07:50: localsToUdpate: -
|
|
2017-07-03 23:07:50: localsToDelete: -
|
|
2017-07-03 23:07:50: createLocal: -
|
|
2017-07-03 23:07:50: updateLocal: -
|
|
2017-07-03 23:07:50: deleteLocal: -
|
|
2017-07-03 23:07:50: createRemote: 1
|
|
2017-07-03 23:07:50: updateRemote: -
|
|
2017-07-03 23:07:50: deleteRemote: -
|
|
2017-07-03 23:07:50: itemConflict: -
|
|
2017-07-03 23:07:50: noteConflict: -
|
|
2017-07-03 23:07:50: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:50: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:50: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:50: Total folders: 1
|
|
2017-07-03 23:07:50: Total notes: 0
|
|
2017-07-03 23:07:50: Total resources: 0
|
|
2017-07-03 23:07:50: SELECT * FROM settings
|
|
2017-07-03 23:07:50: Starting synchronization... [1499119670486]
|
|
2017-07-03 23:07:50: mkdir /root/.sync
|
|
2017-07-03 23:07:50: mkdir /root/.resource
|
|
2017-07-03 23:07:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:50: stat /root/4b081b47d6cd473ba859edef62830710.md
|
|
2017-07-03 23:07:50: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 4b081b47d6cd473ba859edef62830710, "folder")
|
|
2017-07-03 23:07:50: put /root/.sync/4b081b47d6cd473ba859edef62830710.md_1499119670550
|
|
2017-07-03 23:07:50: setTimestamp /root/.sync/4b081b47d6cd473ba859edef62830710.md_1499119670550
|
|
2017-07-03 23:07:50: move /root/.sync/4b081b47d6cd473ba859edef62830710.md_1499119670550 => /root/4b081b47d6cd473ba859edef62830710.md
|
|
2017-07-03 23:07:50: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:50: [1499119670571,"4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:50: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:50: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:50: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:50: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:50: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:50: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:50: list /root
|
|
2017-07-03 23:07:50: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:50: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:50: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:50: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:50: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:50: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:50: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:50: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:50: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:50: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:50: get /root/de24c5cf48e544bdb2ba2b600cd7416e.md
|
|
2017-07-03 23:07:50: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:50: ["de24c5cf48e544bdb2ba2b600cd7416e","folder","1499119669503","1499119669503",1499119670843]
|
|
2017-07-03 23:07:50: Sync: createLocal: remote exists but local does not: (Remote de24c5cf48e544bdb2ba2b600cd7416e, "folder")
|
|
2017-07-03 23:07:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:51: Synchronization complete [1499119670486]:
|
|
2017-07-03 23:07:51: remotesToUpdate: 1
|
|
2017-07-03 23:07:51: remotesToDelete: -
|
|
2017-07-03 23:07:51: localsToUdpate: 1
|
|
2017-07-03 23:07:51: localsToDelete: -
|
|
2017-07-03 23:07:51: createLocal: 1
|
|
2017-07-03 23:07:51: updateLocal: -
|
|
2017-07-03 23:07:51: deleteLocal: -
|
|
2017-07-03 23:07:51: createRemote: 1
|
|
2017-07-03 23:07:51: updateRemote: -
|
|
2017-07-03 23:07:51: deleteRemote: -
|
|
2017-07-03 23:07:51: itemConflict: -
|
|
2017-07-03 23:07:51: noteConflict: -
|
|
2017-07-03 23:07:51: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:51: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:51: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:51: Total folders: 2
|
|
2017-07-03 23:07:51: Total notes: 0
|
|
2017-07-03 23:07:51: Total resources: 0
|
|
2017-07-03 23:07:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:51: Starting synchronization... [1499119671127]
|
|
2017-07-03 23:07:51: mkdir /root/.sync
|
|
2017-07-03 23:07:51: mkdir /root/.resource
|
|
2017-07-03 23:07:51: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:51: list /root
|
|
2017-07-03 23:07:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:51: Synchronization complete [1499119671127]:
|
|
2017-07-03 23:07:51: remotesToUpdate: -
|
|
2017-07-03 23:07:51: remotesToDelete: -
|
|
2017-07-03 23:07:51: localsToUdpate: -
|
|
2017-07-03 23:07:51: localsToDelete: -
|
|
2017-07-03 23:07:51: createLocal: -
|
|
2017-07-03 23:07:51: updateLocal: -
|
|
2017-07-03 23:07:51: deleteLocal: -
|
|
2017-07-03 23:07:51: createRemote: -
|
|
2017-07-03 23:07:51: updateRemote: -
|
|
2017-07-03 23:07:51: deleteRemote: -
|
|
2017-07-03 23:07:51: itemConflict: -
|
|
2017-07-03 23:07:51: noteConflict: -
|
|
2017-07-03 23:07:51: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:51: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:51: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:51: Total folders: 2
|
|
2017-07-03 23:07:51: Total notes: 0
|
|
2017-07-03 23:07:51: Total resources: 0
|
|
2017-07-03 23:07:51: SELECT * FROM settings
|
|
2017-07-03 23:07:51: Starting synchronization... [1499119671584]
|
|
2017-07-03 23:07:51: mkdir /root/.sync
|
|
2017-07-03 23:07:51: mkdir /root/.resource
|
|
2017-07-03 23:07:51: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:51: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:51: list /root
|
|
2017-07-03 23:07:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:51: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710"]
|
|
2017-07-03 23:07:51: get /root/4b081b47d6cd473ba859edef62830710.md
|
|
2017-07-03 23:07:51: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:51: ["4b081b47d6cd473ba859edef62830710","folder","1499119669109","1499119669109",1499119671719]
|
|
2017-07-03 23:07:51: Sync: createLocal: remote exists but local does not: (Remote 4b081b47d6cd473ba859edef62830710, "folder")
|
|
2017-07-03 23:07:51: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:51: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:52: Synchronization complete [1499119671584]:
|
|
2017-07-03 23:07:52: remotesToUpdate: -
|
|
2017-07-03 23:07:52: remotesToDelete: -
|
|
2017-07-03 23:07:52: localsToUdpate: 1
|
|
2017-07-03 23:07:52: localsToDelete: -
|
|
2017-07-03 23:07:52: createLocal: 1
|
|
2017-07-03 23:07:52: updateLocal: -
|
|
2017-07-03 23:07:52: deleteLocal: -
|
|
2017-07-03 23:07:52: createRemote: -
|
|
2017-07-03 23:07:52: updateRemote: -
|
|
2017-07-03 23:07:52: deleteRemote: -
|
|
2017-07-03 23:07:52: itemConflict: -
|
|
2017-07-03 23:07:52: noteConflict: -
|
|
2017-07-03 23:07:52: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:52: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:52: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:52: Total folders: 2
|
|
2017-07-03 23:07:52: Total notes: 0
|
|
2017-07-03 23:07:52: Total resources: 0
|
|
2017-07-03 23:07:52: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:52: ["de24c5cf48e544bdb2ba2b600cd7416e"]
|
|
2017-07-03 23:07:52: BEGIN TRANSACTION
|
|
2017-07-03 23:07:52: DELETE FROM notes
|
|
2017-07-03 23:07:52: DELETE FROM folders
|
|
2017-07-03 23:07:52: DELETE FROM resources
|
|
2017-07-03 23:07:52: DELETE FROM tags
|
|
2017-07-03 23:07:52: DELETE FROM note_tags
|
|
2017-07-03 23:07:52: COMMIT
|
|
2017-07-03 23:07:52: SELECT * FROM settings
|
|
2017-07-03 23:07:52: BEGIN TRANSACTION
|
|
2017-07-03 23:07:52: DELETE FROM notes
|
|
2017-07-03 23:07:52: DELETE FROM folders
|
|
2017-07-03 23:07:52: DELETE FROM resources
|
|
2017-07-03 23:07:52: DELETE FROM tags
|
|
2017-07-03 23:07:52: DELETE FROM note_tags
|
|
2017-07-03 23:07:52: COMMIT
|
|
2017-07-03 23:07:52: SELECT * FROM settings
|
|
2017-07-03 23:07:52: SELECT * FROM settings
|
|
2017-07-03 23:07:52: INSERT INTO `folders` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:52: ["folder",1499119672817,"97307e4108724841bf3d625b73438e30",1499119672817]
|
|
2017-07-03 23:07:53: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:53: ["mynote","joplin","SET_ME",1499119673037,"fba74654a46c4821bba11ce0b64acb08",1499119673038]
|
|
2017-07-03 23:07:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:53: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:53: INSERT INTO `notes` (`title`, `source`, `source_application`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:53: ["mynote2","joplin","SET_ME",1499119673276,"e60e8e0e3f8e44b696ef405086098a20",1499119673276]
|
|
2017-07-03 23:07:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:53: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:53: INSERT INTO `tags` (`title`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?)
|
|
2017-07-03 23:07:53: ["mytag",1499119673493,"8551831eb6ee412db7946030b0454026",1499119673493]
|
|
2017-07-03 23:07:53: Starting synchronization... [1499119673630]
|
|
2017-07-03 23:07:53: mkdir /root/.sync
|
|
2017-07-03 23:07:53: mkdir /root/.resource
|
|
2017-07-03 23:07:53: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:53: stat /root/97307e4108724841bf3d625b73438e30.md
|
|
2017-07-03 23:07:53: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 97307e4108724841bf3d625b73438e30, "folder")
|
|
2017-07-03 23:07:53: put /root/.sync/97307e4108724841bf3d625b73438e30.md_1499119673661
|
|
2017-07-03 23:07:53: setTimestamp /root/.sync/97307e4108724841bf3d625b73438e30.md_1499119673661
|
|
2017-07-03 23:07:53: move /root/.sync/97307e4108724841bf3d625b73438e30.md_1499119673661 => /root/97307e4108724841bf3d625b73438e30.md
|
|
2017-07-03 23:07:53: UPDATE `folders` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:53: [1499119673672,"97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:53: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:53: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:53: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:53: stat /root/fba74654a46c4821bba11ce0b64acb08.md
|
|
2017-07-03 23:07:53: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local fba74654a46c4821bba11ce0b64acb08, "mynote")
|
|
2017-07-03 23:07:53: put /root/.sync/fba74654a46c4821bba11ce0b64acb08.md_1499119673856
|
|
2017-07-03 23:07:53: setTimestamp /root/.sync/fba74654a46c4821bba11ce0b64acb08.md_1499119673856
|
|
2017-07-03 23:07:53: move /root/.sync/fba74654a46c4821bba11ce0b64acb08.md_1499119673856 => /root/fba74654a46c4821bba11ce0b64acb08.md
|
|
2017-07-03 23:07:53: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:53: [1499119673865,"fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:53: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:54: stat /root/e60e8e0e3f8e44b696ef405086098a20.md
|
|
2017-07-03 23:07:54: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local e60e8e0e3f8e44b696ef405086098a20, "mynote2")
|
|
2017-07-03 23:07:54: put /root/.sync/e60e8e0e3f8e44b696ef405086098a20.md_1499119674029
|
|
2017-07-03 23:07:54: setTimestamp /root/.sync/e60e8e0e3f8e44b696ef405086098a20.md_1499119674029
|
|
2017-07-03 23:07:54: move /root/.sync/e60e8e0e3f8e44b696ef405086098a20.md_1499119674029 => /root/e60e8e0e3f8e44b696ef405086098a20.md
|
|
2017-07-03 23:07:54: UPDATE `notes` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:54: [1499119674045,"e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:54: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:54: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: stat /root/8551831eb6ee412db7946030b0454026.md
|
|
2017-07-03 23:07:54: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 8551831eb6ee412db7946030b0454026, "mytag")
|
|
2017-07-03 23:07:54: put /root/.sync/8551831eb6ee412db7946030b0454026.md_1499119674273
|
|
2017-07-03 23:07:54: setTimestamp /root/.sync/8551831eb6ee412db7946030b0454026.md_1499119674273
|
|
2017-07-03 23:07:54: move /root/.sync/8551831eb6ee412db7946030b0454026.md_1499119674273 => /root/8551831eb6ee412db7946030b0454026.md
|
|
2017-07-03 23:07:54: UPDATE `tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:54: [1499119674283,"8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:54: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:54: list /root
|
|
2017-07-03 23:07:54: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:54: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:54: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:54: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:54: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:54: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:54: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:54: Synchronization complete [1499119673630]:
|
|
2017-07-03 23:07:54: remotesToUpdate: 4
|
|
2017-07-03 23:07:54: remotesToDelete: -
|
|
2017-07-03 23:07:54: localsToUdpate: -
|
|
2017-07-03 23:07:54: localsToDelete: -
|
|
2017-07-03 23:07:54: createLocal: -
|
|
2017-07-03 23:07:54: updateLocal: -
|
|
2017-07-03 23:07:54: deleteLocal: -
|
|
2017-07-03 23:07:54: createRemote: 4
|
|
2017-07-03 23:07:54: updateRemote: -
|
|
2017-07-03 23:07:54: deleteRemote: -
|
|
2017-07-03 23:07:54: itemConflict: -
|
|
2017-07-03 23:07:54: noteConflict: -
|
|
2017-07-03 23:07:54: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:54: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:54: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:54: Total folders: 1
|
|
2017-07-03 23:07:54: Total notes: 2
|
|
2017-07-03 23:07:54: Total resources: 0
|
|
2017-07-03 23:07:54: SELECT * FROM settings
|
|
2017-07-03 23:07:54: Starting synchronization... [1499119674815]
|
|
2017-07-03 23:07:54: mkdir /root/.sync
|
|
2017-07-03 23:07:54: mkdir /root/.resource
|
|
2017-07-03 23:07:54: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:54: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:54: list /root
|
|
2017-07-03 23:07:54: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:54: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:54: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:54: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:54: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:54: get /root/97307e4108724841bf3d625b73438e30.md
|
|
2017-07-03 23:07:54: INSERT INTO `folders` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:54: ["97307e4108724841bf3d625b73438e30","folder","1499119672817","1499119672817",1499119674912]
|
|
2017-07-03 23:07:55: Sync: createLocal: remote exists but local does not: (Remote 97307e4108724841bf3d625b73438e30, "folder")
|
|
2017-07-03 23:07:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:55: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:55: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:55: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:55: get /root/fba74654a46c4821bba11ce0b64acb08.md
|
|
2017-07-03 23:07:55: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:55: ["fba74654a46c4821bba11ce0b64acb08","","mynote","","1499119673038","1499119673037",1499119675371,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:55: Sync: createLocal: remote exists but local does not: (Remote fba74654a46c4821bba11ce0b64acb08, "mynote")
|
|
2017-07-03 23:07:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:55: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:55: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:55: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:55: get /root/e60e8e0e3f8e44b696ef405086098a20.md
|
|
2017-07-03 23:07:55: INSERT INTO `notes` (`id`, `parent_id`, `title`, `body`, `created_time`, `updated_time`, `sync_time`, `latitude`, `longitude`, `altitude`, `author`, `source_url`, `is_todo`, `todo_due`, `todo_completed`, `source`, `source_application`, `application_data`, `order`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:55: ["e60e8e0e3f8e44b696ef405086098a20","","mynote2","","1499119673276","1499119673276",1499119675678,"0.00000000","0.00000000","0.0000","","",0,0,0,"joplin","SET_ME","",0]
|
|
2017-07-03 23:07:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:55: Sync: createLocal: remote exists but local does not: (Remote e60e8e0e3f8e44b696ef405086098a20, "mynote2")
|
|
2017-07-03 23:07:55: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:55: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:55: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:55: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:55: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:55: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:55: get /root/8551831eb6ee412db7946030b0454026.md
|
|
2017-07-03 23:07:55: INSERT INTO `tags` (`id`, `title`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:55: ["8551831eb6ee412db7946030b0454026","mytag","1499119673493","1499119673493",1499119675916]
|
|
2017-07-03 23:07:56: Sync: createLocal: remote exists but local does not: (Remote 8551831eb6ee412db7946030b0454026, "mytag")
|
|
2017-07-03 23:07:56: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:56: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:56: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:56: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:56: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:56: Synchronization complete [1499119674815]:
|
|
2017-07-03 23:07:56: remotesToUpdate: -
|
|
2017-07-03 23:07:56: remotesToDelete: -
|
|
2017-07-03 23:07:56: localsToUdpate: 4
|
|
2017-07-03 23:07:56: localsToDelete: -
|
|
2017-07-03 23:07:56: createLocal: 4
|
|
2017-07-03 23:07:56: updateLocal: -
|
|
2017-07-03 23:07:56: deleteLocal: -
|
|
2017-07-03 23:07:56: createRemote: -
|
|
2017-07-03 23:07:56: updateRemote: -
|
|
2017-07-03 23:07:56: deleteRemote: -
|
|
2017-07-03 23:07:56: itemConflict: -
|
|
2017-07-03 23:07:56: noteConflict: -
|
|
2017-07-03 23:07:56: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:56: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:56: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:56: Total folders: 1
|
|
2017-07-03 23:07:56: Total notes: 2
|
|
2017-07-03 23:07:56: Total resources: 0
|
|
2017-07-03 23:07:56: SELECT * FROM `tags` WHERE `title` = ?
|
|
2017-07-03 23:07:56: ["mytag"]
|
|
2017-07-03 23:07:56: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:07:56: ["8551831eb6ee412db7946030b0454026","fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:56: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:56: ["fba74654a46c4821bba11ce0b64acb08","8551831eb6ee412db7946030b0454026",1499119676364,"7105136b062d4177aaa1e046cb505384",1499119676364]
|
|
2017-07-03 23:07:56: SELECT note_id FROM note_tags WHERE tag_id = ? AND note_id = ? LIMIT 1
|
|
2017-07-03 23:07:56: ["8551831eb6ee412db7946030b0454026","e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:56: INSERT INTO `note_tags` (`note_id`, `tag_id`, `updated_time`, `id`, `created_time`) VALUES (?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:56: ["e60e8e0e3f8e44b696ef405086098a20","8551831eb6ee412db7946030b0454026",1499119676536,"4673805c80824d4cbd14cbc951d8510b",1499119676536]
|
|
2017-07-03 23:07:56: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:07:56: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:56: Starting synchronization... [1499119676676]
|
|
2017-07-03 23:07:56: mkdir /root/.sync
|
|
2017-07-03 23:07:56: mkdir /root/.resource
|
|
2017-07-03 23:07:56: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:56: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:56: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:56: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:56: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:56: stat /root/7105136b062d4177aaa1e046cb505384.md
|
|
2017-07-03 23:07:56: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 7105136b062d4177aaa1e046cb505384)
|
|
2017-07-03 23:07:56: put /root/.sync/7105136b062d4177aaa1e046cb505384.md_1499119676718
|
|
2017-07-03 23:07:56: setTimestamp /root/.sync/7105136b062d4177aaa1e046cb505384.md_1499119676718
|
|
2017-07-03 23:07:56: move /root/.sync/7105136b062d4177aaa1e046cb505384.md_1499119676718 => /root/7105136b062d4177aaa1e046cb505384.md
|
|
2017-07-03 23:07:56: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:56: [1499119676727,"7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:56: stat /root/4673805c80824d4cbd14cbc951d8510b.md
|
|
2017-07-03 23:07:56: Sync: createRemote: remote does not exist, and local is new and has never been synced: (Local 4673805c80824d4cbd14cbc951d8510b)
|
|
2017-07-03 23:07:56: put /root/.sync/4673805c80824d4cbd14cbc951d8510b.md_1499119676893
|
|
2017-07-03 23:07:56: setTimestamp /root/.sync/4673805c80824d4cbd14cbc951d8510b.md_1499119676893
|
|
2017-07-03 23:07:56: move /root/.sync/4673805c80824d4cbd14cbc951d8510b.md_1499119676893 => /root/4673805c80824d4cbd14cbc951d8510b.md
|
|
2017-07-03 23:07:56: UPDATE `note_tags` SET `sync_time`=? WHERE id=?
|
|
2017-07-03 23:07:56: [1499119676920,"4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:57: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:57: list /root
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:57: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:57: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:57: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:57: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:57: Synchronization complete [1499119676676]:
|
|
2017-07-03 23:07:57: remotesToUpdate: 2
|
|
2017-07-03 23:07:57: remotesToDelete: -
|
|
2017-07-03 23:07:57: localsToUdpate: -
|
|
2017-07-03 23:07:57: localsToDelete: -
|
|
2017-07-03 23:07:57: createLocal: -
|
|
2017-07-03 23:07:57: updateLocal: -
|
|
2017-07-03 23:07:57: deleteLocal: -
|
|
2017-07-03 23:07:57: createRemote: 2
|
|
2017-07-03 23:07:57: updateRemote: -
|
|
2017-07-03 23:07:57: deleteRemote: -
|
|
2017-07-03 23:07:57: itemConflict: -
|
|
2017-07-03 23:07:57: noteConflict: -
|
|
2017-07-03 23:07:57: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:57: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:57: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:57: Total folders: 1
|
|
2017-07-03 23:07:57: Total notes: 2
|
|
2017-07-03 23:07:57: Total resources: 0
|
|
2017-07-03 23:07:57: SELECT * FROM settings
|
|
2017-07-03 23:07:57: Starting synchronization... [1499119677497]
|
|
2017-07-03 23:07:57: mkdir /root/.sync
|
|
2017-07-03 23:07:57: mkdir /root/.resource
|
|
2017-07-03 23:07:57: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:57: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:57: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:57: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:57: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:57: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:57: list /root
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:57: get /root/7105136b062d4177aaa1e046cb505384.md
|
|
2017-07-03 23:07:57: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:57: ["7105136b062d4177aaa1e046cb505384","fba74654a46c4821bba11ce0b64acb08","8551831eb6ee412db7946030b0454026","1499119676364","1499119676364",1499119677661]
|
|
2017-07-03 23:07:57: Sync: createLocal: remote exists but local does not: (Remote 7105136b062d4177aaa1e046cb505384)
|
|
2017-07-03 23:07:57: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:57: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:57: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:57: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:57: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:57: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:57: get /root/4673805c80824d4cbd14cbc951d8510b.md
|
|
2017-07-03 23:07:57: INSERT INTO `note_tags` (`id`, `note_id`, `tag_id`, `created_time`, `updated_time`, `sync_time`) VALUES (?, ?, ?, ?, ?, ?)
|
|
2017-07-03 23:07:57: ["4673805c80824d4cbd14cbc951d8510b","e60e8e0e3f8e44b696ef405086098a20","8551831eb6ee412db7946030b0454026","1499119676536","1499119676536",1499119677870]
|
|
2017-07-03 23:07:58: Sync: createLocal: remote exists but local does not: (Remote 4673805c80824d4cbd14cbc951d8510b)
|
|
2017-07-03 23:07:58: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:58: Synchronization complete [1499119677497]:
|
|
2017-07-03 23:07:58: remotesToUpdate: -
|
|
2017-07-03 23:07:58: remotesToDelete: -
|
|
2017-07-03 23:07:58: localsToUdpate: 2
|
|
2017-07-03 23:07:58: localsToDelete: -
|
|
2017-07-03 23:07:58: createLocal: 2
|
|
2017-07-03 23:07:58: updateLocal: -
|
|
2017-07-03 23:07:58: deleteLocal: -
|
|
2017-07-03 23:07:58: createRemote: -
|
|
2017-07-03 23:07:58: updateRemote: -
|
|
2017-07-03 23:07:58: deleteRemote: -
|
|
2017-07-03 23:07:58: itemConflict: -
|
|
2017-07-03 23:07:58: noteConflict: -
|
|
2017-07-03 23:07:58: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:58: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:58: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:58: Total folders: 1
|
|
2017-07-03 23:07:58: Total notes: 2
|
|
2017-07-03 23:07:58: Total resources: 0
|
|
2017-07-03 23:07:58: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:07:58: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:58: SELECT id FROM note_tags WHERE tag_id = ? and note_id = ?
|
|
2017-07-03 23:07:58: ["8551831eb6ee412db7946030b0454026","fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:58: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:07:58: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:58: INSERT INTO deleted_items (item_type, item_id, deleted_time) VALUES (?, ?, ?)
|
|
2017-07-03 23:07:58: [6,"7105136b062d4177aaa1e046cb505384",1499119678296]
|
|
2017-07-03 23:07:58: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:07:58: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:58: Starting synchronization... [1499119678495]
|
|
2017-07-03 23:07:58: mkdir /root/.sync
|
|
2017-07-03 23:07:58: mkdir /root/.resource
|
|
2017-07-03 23:07:58: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:58: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:58: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:58: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:58: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:58: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:58: Sync: deleteRemote: local has been deleted: (Remote 7105136b062d4177aaa1e046cb505384)
|
|
2017-07-03 23:07:58: delete /root/7105136b062d4177aaa1e046cb505384.md
|
|
2017-07-03 23:07:58: DELETE FROM deleted_items WHERE item_id = ?
|
|
2017-07-03 23:07:58: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:58: list /root
|
|
2017-07-03 23:07:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:58: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:58: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:58: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:58: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:58: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:58: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:58: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:58: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:58: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:58: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:58: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:58: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:58: Synchronization complete [1499119678495]:
|
|
2017-07-03 23:07:58: remotesToUpdate: -
|
|
2017-07-03 23:07:58: remotesToDelete: 1
|
|
2017-07-03 23:07:58: localsToUdpate: -
|
|
2017-07-03 23:07:58: localsToDelete: -
|
|
2017-07-03 23:07:58: createLocal: -
|
|
2017-07-03 23:07:58: updateLocal: -
|
|
2017-07-03 23:07:58: deleteLocal: -
|
|
2017-07-03 23:07:58: createRemote: -
|
|
2017-07-03 23:07:58: updateRemote: -
|
|
2017-07-03 23:07:58: deleteRemote: 1
|
|
2017-07-03 23:07:58: itemConflict: -
|
|
2017-07-03 23:07:58: noteConflict: -
|
|
2017-07-03 23:07:58: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:58: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:58: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:58: Total folders: 1
|
|
2017-07-03 23:07:58: Total notes: 2
|
|
2017-07-03 23:07:58: Total resources: 0
|
|
2017-07-03 23:07:59: SELECT * FROM settings
|
|
2017-07-03 23:07:59: Starting synchronization... [1499119679086]
|
|
2017-07-03 23:07:59: mkdir /root/.sync
|
|
2017-07-03 23:07:59: mkdir /root/.resource
|
|
2017-07-03 23:07:59: SELECT * FROM folders WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:59: SELECT * FROM resources WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:59: SELECT * FROM notes WHERE sync_time < updated_time AND is_conflict = 0 LIMIT 100
|
|
2017-07-03 23:07:59: SELECT * FROM tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:59: SELECT * FROM note_tags WHERE sync_time < updated_time LIMIT 100
|
|
2017-07-03 23:07:59: SELECT * FROM deleted_items
|
|
2017-07-03 23:07:59: list /root
|
|
2017-07-03 23:07:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["97307e4108724841bf3d625b73438e30"]
|
|
2017-07-03 23:07:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["fba74654a46c4821bba11ce0b64acb08"]
|
|
2017-07-03 23:07:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["e60e8e0e3f8e44b696ef405086098a20"]
|
|
2017-07-03 23:07:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:59: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:59: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["8551831eb6ee412db7946030b0454026"]
|
|
2017-07-03 23:07:59: SELECT * FROM `notes` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:59: SELECT * FROM `folders` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:59: SELECT * FROM `resources` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:59: SELECT * FROM `tags` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:59: SELECT * FROM `note_tags` WHERE `id` = ?
|
|
2017-07-03 23:07:59: ["4673805c80824d4cbd14cbc951d8510b"]
|
|
2017-07-03 23:07:59: SELECT id FROM folders WHERE sync_time > 0
|
|
2017-07-03 23:07:59: SELECT id FROM notes WHERE is_conflict = 0 AND sync_time > 0
|
|
2017-07-03 23:07:59: SELECT id FROM resources WHERE sync_time > 0
|
|
2017-07-03 23:07:59: SELECT id FROM tags WHERE sync_time > 0
|
|
2017-07-03 23:07:59: SELECT id FROM note_tags WHERE sync_time > 0
|
|
2017-07-03 23:07:59: Sync: deleteLocal: remote has been deleted: (Local 7105136b062d4177aaa1e046cb505384)
|
|
2017-07-03 23:07:59: DELETE FROM note_tags WHERE id = ?
|
|
2017-07-03 23:07:59: ["7105136b062d4177aaa1e046cb505384"]
|
|
2017-07-03 23:07:59: Synchronization complete [1499119679086]:
|
|
2017-07-03 23:07:59: remotesToUpdate: -
|
|
2017-07-03 23:07:59: remotesToDelete: -
|
|
2017-07-03 23:07:59: localsToUdpate: -
|
|
2017-07-03 23:07:59: localsToDelete: 1
|
|
2017-07-03 23:07:59: createLocal: -
|
|
2017-07-03 23:07:59: updateLocal: -
|
|
2017-07-03 23:07:59: deleteLocal: 1
|
|
2017-07-03 23:07:59: createRemote: -
|
|
2017-07-03 23:07:59: updateRemote: -
|
|
2017-07-03 23:07:59: deleteRemote: -
|
|
2017-07-03 23:07:59: itemConflict: -
|
|
2017-07-03 23:07:59: noteConflict: -
|
|
2017-07-03 23:07:59: SELECT count(*) as total FROM `folders`
|
|
2017-07-03 23:07:59: SELECT count(*) as total FROM `notes`
|
|
2017-07-03 23:07:59: SELECT count(*) as total FROM `resources`
|
|
2017-07-03 23:07:59: Total folders: 1
|
|
2017-07-03 23:07:59: Total notes: 2
|
|
2017-07-03 23:07:59: Total resources: 0
|
|
2017-07-03 23:07:59: SELECT note_id FROM note_tags WHERE tag_id = ?
|
|
2017-07-03 23:07:59: ["8551831eb6ee412db7946030b0454026"]
|