Skip to content

Commit e028f48

Browse files
committed
fix: Change last_login_at to last_login
1 parent 8ee74ad commit e028f48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎api/cmd/migrations/20210613042045_init.up.sql‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
44

55
CREATE TABLE IF NOT EXISTS users (
66
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
7-
last_login_at timestamptz NOT NULL DEFAULT now(),
7+
last_login timestamptz NOT NULL DEFAULT now(),
88
created_at timestamptz NOT NULL DEFAULT now(),
99
updated_at timestamptz NOT NULL DEFAULT now(),
1010
deleted_at timestamptz
@@ -41,7 +41,7 @@ CREATE TABLE IF NOT EXISTS mc_accounts (
4141
--gopg:split
4242

4343
CREATE TABLE IF NOT EXISTS games (
44-
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
44+
id uuid PRIMARY KEY,
4545
user_id uuid NOT NULL REFERENCES users (id) ON DELETE CASCADE,
4646
name varchar(60) NOT NULL,
4747
motd varchar(59),

0 commit comments

Comments
 (0)