diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/sync/.gitignore b/sync/.gitignore index 034d086..a8722dd 100644 --- a/sync/.gitignore +++ b/sync/.gitignore @@ -1,8 +1,9 @@ bin -logs +logs/* +!logs/.gitkeep build vendor test.php .DS_Store attachments -node_modules +node_modules \ No newline at end of file diff --git a/sync/db/003_folders.sql b/sync/db/003_folders.sql index 9a0e9a1..1a99f42 100644 --- a/sync/db/003_folders.sql +++ b/sync/db/003_folders.sql @@ -4,9 +4,10 @@ CREATE TABLE IF NOT EXISTS `folders` ( `name` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `count` int(10) unsigned DEFAULT '0', `synced` int(10) unsigned DEFAULT '0', + `uid_validity` int(10) unsigned DEFAULT '0', `deleted` tinyint(1) unsigned DEFAULT '0', `ignored` tinyint(1) unsigned DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE( `account_id`, `name` ) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/sync/db/004_messages.sql b/sync/db/004_messages.sql index 91bc194..b57db68 100644 --- a/sync/db/004_messages.sql +++ b/sync/db/004_messages.sql @@ -5,6 +5,7 @@ CREATE TABLE IF NOT EXISTS `messages` ( `unique_id` int(10) unsigned DEFAULT NULL, `thread_id` int(10) unsigned DEFAULT NULL, `outbox_id` int(10) unsigned DEFAULT NULL, + `uid_validity` int(10) unsigned DEFAULT NULL, `date_str` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `charset` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `subject` varchar(270) COLLATE utf8mb4_unicode_ci DEFAULT NULL, @@ -49,4 +50,4 @@ CREATE TABLE IF NOT EXISTS `messages` ( INDEX (`message_id`(16)), INDEX (`in_reply_to`(16)), FULLTEXT KEY subject_text_plain (subject,text_plain) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/sync/logs/.gitkeep b/sync/logs/.gitkeep new file mode 100644 index 0000000..e69de29