From ba79eedf5369105d97d7dc5a4f2416065d7e476a Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Sat, 9 Jan 2021 21:00:40 +0100 Subject: [PATCH] turns out its easier to use varchar instead bool --- fullinstalldocker.sql | 2 +- usertable.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fullinstalldocker.sql b/fullinstalldocker.sql index 79bf3c7..9e8155a 100644 --- a/fullinstalldocker.sql +++ b/fullinstalldocker.sql @@ -13,7 +13,7 @@ CREATE TABLE `users` ( `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `activationcode` VARCHAR(255) NULL , `activationcode_time` TIMESTAMP NULL , - `activated` BOOLEAN , + `activated` VARCHAR(1) NOT NULL , `passwordcode` VARCHAR(255) NULL , `passwordcode_time` TIMESTAMP NULL , PRIMARY KEY (`id`), UNIQUE (`email`), UNIQUE (`username`) diff --git a/usertable.sql b/usertable.sql index b01b13d..2b0815a 100644 --- a/usertable.sql +++ b/usertable.sql @@ -9,8 +9,8 @@ CREATE TABLE `users` ( `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `activationcode` VARCHAR(255) NULL , `activationcode_time` TIMESTAMP NULL , - `activated` BOOLEAN , + `activated` VARCHAR(1) NOT NULL , `passwordcode` VARCHAR(255) NULL , `passwordcode_time` TIMESTAMP NULL , PRIMARY KEY (`id`), UNIQUE (`email`), UNIQUE (`username`) -) ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; \ No newline at end of file +) ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;