From 2b9635a2b1037804d7f82b191bf6abbcac1344de Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 17 May 2020 16:15:27 -0700 Subject: [PATCH] removed `auto_increment` from session key id Keys are to be generated by rust safely --- server/migrations/2020-05-17-225334_sessions/up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/migrations/2020-05-17-225334_sessions/up.sql b/server/migrations/2020-05-17-225334_sessions/up.sql index acd1aeb..579bf1b 100644 --- a/server/migrations/2020-05-17-225334_sessions/up.sql +++ b/server/migrations/2020-05-17-225334_sessions/up.sql @@ -2,7 +2,7 @@ -- 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 CREATE TABLE IF NOT EXISTS `sessions` ( - `id` bigint UNSIGNED NOT NULL auto_increment, + `id` bigint UNSIGNED NOT NULL, `secret` varchar(255) NOT NULL, `expires` bigint UNSIGNED NOT NULL, PRIMARY KEY(`id`)