Fix sessions.expires not being installed

This commit is contained in:
grandeljay 2022-11-09 11:25:56 +01:00
parent 932c6ea168
commit ddd7ce7a6d

View file

@ -261,6 +261,7 @@ switch ($step) {
`id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`user` INT NOT NULL,
`session` VARCHAR(32) NOT NULL,
`expires` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
INDEX `idx_user` (`session`),
CONSTRAINT `FK_sessions_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON DELETE CASCADE