fix: use timestamptz
This commit is contained in:
@@ -8,8 +8,8 @@ CREATE TABLE posts (
|
||||
is_tmp BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
n_attentions INTEGER NOT NULL DEFAULT 0,
|
||||
n_comments INTEGER NOT NULL DEFAULT 0,
|
||||
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
last_comment_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
create_time TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
last_comment_time TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
is_deleted BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
is_reported BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
hot_score INTEGER NOT NULL DEFAULT 0,
|
||||
|
||||
@@ -5,7 +5,7 @@ CREATE TABLE comments (
|
||||
author_title VARCHAR NOT NULL DEFAULT '',
|
||||
is_tmp BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
content TEXT NOT NULL,
|
||||
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
create_time TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
is_deleted BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
allow_search BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
post_id INTEGER NOT NULL REFERENCES posts(id)
|
||||
|
||||
Reference in New Issue
Block a user