diff --git a/src/wormhole_mailbox_server/db-schemas/upgrade-usage-to-v2.sql b/src/wormhole_mailbox_server/db-schemas/upgrade-usage-to-v2.sql index 741ec9f..6905af2 100644 --- a/src/wormhole_mailbox_server/db-schemas/upgrade-usage-to-v2.sql +++ b/src/wormhole_mailbox_server/db-schemas/upgrade-usage-to-v2.sql @@ -11,9 +11,5 @@ CREATE TABLE `client_versions` CREATE INDEX `client_versions_time_idx` on `client_versions` (`connect_time`); CREATE INDEX `client_versions_appid_time_idx` on `client_versions` (`app_id`, `connect_time`); -DROP TABLE `version`; -CREATE TABLE `version` -( - `version` INTEGER -- contains one row, set to 2 -); +DELETE FROM `version`; INSERT INTO `version` (`version`) VALUES (2); diff --git a/src/wormhole_mailbox_server/db-schemas/usage-v1.sql b/src/wormhole_mailbox_server/db-schemas/usage-v1.sql index 95ca4cb..1e537f6 100644 --- a/src/wormhole_mailbox_server/db-schemas/usage-v1.sql +++ b/src/wormhole_mailbox_server/db-schemas/usage-v1.sql @@ -1,6 +1,6 @@ CREATE TABLE `version` ( - `version` INTEGER -- contains one row, set to 1 + `version` INTEGER -- contains one row ); CREATE TABLE `current` diff --git a/src/wormhole_mailbox_server/db-schemas/usage-v2.sql b/src/wormhole_mailbox_server/db-schemas/usage-v2.sql index 3da3b15..f6c0644 100644 --- a/src/wormhole_mailbox_server/db-schemas/usage-v2.sql +++ b/src/wormhole_mailbox_server/db-schemas/usage-v2.sql @@ -1,6 +1,6 @@ CREATE TABLE `version` ( - `version` INTEGER -- contains one row, set to 2 + `version` INTEGER -- contains one row ); CREATE TABLE `current`