Fix an SQL error when trying to register
This commit is contained in:
parent
826991de60
commit
31fe8cd0df
2 changed files with 7 additions and 1 deletions
|
@ -130,7 +130,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 DEFAULT NULL,
|
`password_reset_token` VARCHAR(128) NULL 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 0,
|
`power` INT NOT NULL DEFAULT 0,
|
||||||
|
|
|
@ -19,3 +19,9 @@ CREATE TABLE `products` (
|
||||||
REFERENCES `wishes` (`id`)
|
REFERENCES `wishes` (`id`)
|
||||||
ON DELETE CASCADE
|
ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Users
|
||||||
|
*/
|
||||||
|
ALTER TABLE `users`
|
||||||
|
CHANGE COLUMN `password_reset_token` VARCHAR(40) NULL DEFAULT NULL AFTER `password`;
|
||||||
|
|
Loading…
Reference in a new issue