From fe4b7c6d80c3bde64b908ca9e458c7a2e4e440be Mon Sep 17 00:00:00 2001 From: Samuel Hawksby-Robinson Date: Wed, 28 Oct 2020 13:19:01 +0000 Subject: [PATCH] Added migrations for chat_identity_last_published register --- ...3888149_create_chat_identity_last_published_table.down.sql | 1 + ...603888149_create_chat_identity_last_published_table.up.sql | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.down.sql create mode 100644 protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.up.sql diff --git a/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.down.sql b/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.down.sql new file mode 100644 index 000000000..42b1c093d --- /dev/null +++ b/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.down.sql @@ -0,0 +1 @@ +DROP TABLE chat_identity_last_published; \ No newline at end of file diff --git a/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.up.sql b/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.up.sql new file mode 100644 index 000000000..29a0a4022 --- /dev/null +++ b/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.up.sql @@ -0,0 +1,4 @@ +CREATE TABLE IF NOT EXISTS chat_identity_last_published ( + chat_id VARCHAR NOT NULL PRIMARY KEY ON CONFLICT REPLACE, + clock_value INT NOT NULL +); \ No newline at end of file