using secret as primary key
This commit is contained in:
parent
b007f57dfe
commit
ec4f9b5302
@ -2,8 +2,7 @@
|
|||||||
-- NOTE: the expires column is not explicitly a date because the code required
|
-- NOTE: the expires column is not explicitly a date because the code required
|
||||||
-- to make the DATE field work with diesel is ass and looks annoying
|
-- to make the DATE field work with diesel is ass and looks annoying
|
||||||
CREATE TABLE IF NOT EXISTS `sessions` (
|
CREATE TABLE IF NOT EXISTS `sessions` (
|
||||||
`id` bigint UNSIGNED NOT NULL,
|
|
||||||
`secret` varchar(255) NOT NULL,
|
`secret` varchar(255) NOT NULL,
|
||||||
`expires` bigint UNSIGNED NOT NULL,
|
`expires` bigint UNSIGNED NOT NULL,
|
||||||
PRIMARY KEY(`id`)
|
PRIMARY KEY(`secret`)
|
||||||
);
|
);
|
Loading…
Reference in New Issue
Block a user