From 9ecd7e8d261c03b8eaa2386f6f1aa0a1179d9d9f Mon Sep 17 00:00:00 2001 From: Viola Date: Sat, 2 Oct 2021 20:18:01 +0800 Subject: [PATCH] fix reference types error user(id) is SERIAL which has the inner type INTEGER --- .../2019-02-20-054109_create_login_history_table/up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/2019-02-20-054109_create_login_history_table/up.sql b/migrations/2019-02-20-054109_create_login_history_table/up.sql index 70118d7..74fc9af 100644 --- a/migrations/2019-02-20-054109_create_login_history_table/up.sql +++ b/migrations/2019-02-20-054109_create_login_history_table/up.sql @@ -2,6 +2,6 @@ CREATE TABLE login_history ( id SERIAL PRIMARY KEY NOT NULL, - user_id BIGINT NOT NULL REFERENCES users(id), + user_id INTEGER NOT NULL REFERENCES users(id), login_timestamp TIMESTAMP WITH TIME ZONE NOT NULL -); \ No newline at end of file +);