From 40a7e2b8f4e5ada0540aa5d9a05473e784361c8e Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Sun, 14 May 2023 14:09:24 +0200 Subject: [PATCH] Doc: add alter table person --- Documentation/UseCase.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/UseCase.rst b/Documentation/UseCase.rst index a8a0fa3da..85bc7f93c 100644 --- a/Documentation/UseCase.rst +++ b/Documentation/UseCase.rst @@ -90,13 +90,16 @@ Table: Person `firstName` varchar(64) NOT NULL DEFAULT '', `email` varchar(128) NOT NULL, `account` varchar(128) NOT NULL, - `auth` varchar(32) NOT NULL, + `auth` varchar(32) NOT NULL DEFAULT '', `authExpire` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1; ALTER TABLE `Person` ADD PRIMARY KEY (`id`); ALTER TABLE `Person` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; +or:: + + ALTER TABLE `person` ADD `auth` VARCHAR(32) NOT NULL DEFAULT '' AFTER `account`, ADD `auth_expired` DATETIME DEFAULT NULL AFTER `auth`; Registration ^^^^^^^^^^^^ -- GitLab