Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadar Levison <ladar@lavabit.com>2019-06-19 18:06:37 +0300
committerLadar Levison <ladar@lavabit.com>2019-06-19 18:06:37 +0300
commit9a1cce0ab1e2a37d521a040024b672f9c6a36335 (patch)
tree605735435ca9025e4e9bc4aba0badfda6152a0fd
parent6eecb18b78f27bac62d13d8b3e274c16ac17e9d1 (diff)
Update the plan column in Codes to use a varchar.
-rw-r--r--res/sql/Migration.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/sql/Migration.sql b/res/sql/Migration.sql
index 52ec4c28..25523b2c 100644
--- a/res/sql/Migration.sql
+++ b/res/sql/Migration.sql
@@ -74,6 +74,7 @@ ALTER TABLE `Realms`
ADD COLUMN `rotated` TINYINT(1) NOT NULL DEFAULT '0' AFTER `shard`;
ALTER TABLE `Codes` ADD COLUMN `years` tinyint(2) NOT NULL DEFAULT '1' AFTER `plan`;
+ALTER TABLE `Codes` CHANGE COLUMN `plan` `plan` VARCHAR(255) NOT NULL DEFAULT 'STANDARD';
ALTER TABLE `Users` ADD COLUMN `admin` tinyint(2) NOT NULL DEFAULT '0' AFTER `overquota`;