Fix registration
This commit is contained in:
parent
43e5ccba3d
commit
26b26cf577
2 changed files with 6 additions and 1 deletions
|
@ -155,7 +155,7 @@ switch ($step) {
|
||||||
`id` INT PRIMARY KEY AUTO_INCREMENT,
|
`id` INT PRIMARY KEY AUTO_INCREMENT,
|
||||||
`email` VARCHAR(64) NOT NULL UNIQUE,
|
`email` VARCHAR(64) NOT NULL UNIQUE,
|
||||||
`password` VARCHAR(128) NOT NULL,
|
`password` VARCHAR(128) NOT NULL,
|
||||||
`password_reset_token` VARCHAR(128) NULL NULL,
|
`password_reset_token` VARCHAR(128) NULL DEFAULT NULL,
|
||||||
`password_reset_valid_until` DATETIME NOT NULL DEFAULT NOW(),
|
`password_reset_valid_until` DATETIME NOT NULL DEFAULT NOW(),
|
||||||
`last_login` DATETIME NOT NULL DEFAULT NOW(),
|
`last_login` DATETIME NOT NULL DEFAULT NOW(),
|
||||||
`power` INT NOT NULL DEFAULT 1,
|
`power` INT NOT NULL DEFAULT 1,
|
||||||
|
|
|
@ -26,3 +26,8 @@ SET
|
||||||
`power` = 1
|
`power` = 1
|
||||||
WHERE
|
WHERE
|
||||||
`power` = 0;
|
`power` = 0;
|
||||||
|
|
||||||
|
ALTER TABLE
|
||||||
|
`users` CHANGE COLUMN `password_reset_token` `password_reset_token` VARCHAR(40) NULL DEFAULT NULL
|
||||||
|
AFTER
|
||||||
|
`password`;
|
||||||
|
|
Loading…
Reference in a new issue