From c49ee47de056cad058bcf2dc2b8c19d621bc6a39 Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Sun, 31 Oct 2021 17:50:00 -0700 Subject: [PATCH] Fix PostgreSQL migration The PostgreSQL migration should have used `TIMESTAMP` rather than `DATETIME`. --- .../postgresql/2021-10-24-164321_add_2fa_incomplete/up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/postgresql/2021-10-24-164321_add_2fa_incomplete/up.sql b/migrations/postgresql/2021-10-24-164321_add_2fa_incomplete/up.sql index 5dd6f920..52a1d773 100644 --- a/migrations/postgresql/2021-10-24-164321_add_2fa_incomplete/up.sql +++ b/migrations/postgresql/2021-10-24-164321_add_2fa_incomplete/up.sql @@ -2,7 +2,7 @@ CREATE TABLE twofactor_incomplete ( user_uuid VARCHAR(40) NOT NULL REFERENCES users(uuid), device_uuid VARCHAR(40) NOT NULL, device_name TEXT NOT NULL, - login_time DATETIME NOT NULL, + login_time TIMESTAMP NOT NULL, ip_address TEXT NOT NULL, PRIMARY KEY (user_uuid, device_uuid)