From 3ddd97657d663868d88d2a7c0794e2093701e52e Mon Sep 17 00:00:00 2001 From: markwu Date: Wed, 13 Dec 2023 09:14:14 +0800 Subject: [PATCH] Use TIMESTAMPTZ for date field in postgres db --- migrations/postgres/000006_create_domain_verification.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/postgres/000006_create_domain_verification.up.sql b/migrations/postgres/000006_create_domain_verification.up.sql index df23387..f82d374 100644 --- a/migrations/postgres/000006_create_domain_verification.up.sql +++ b/migrations/postgres/000006_create_domain_verification.up.sql @@ -9,7 +9,7 @@ CREATE TABLE domain_verification ( domain_prefix TEXT NOT NULL, value TEXT NOT NULL, app_id TEXT NOT NULL REFERENCES app(id), - verified_at TIMESTAMP + verified_at TIMESTAMPTZ ); CREATE UNIQUE INDEX app_domain_mapping ON domain_verification(app_id, domain) WHERE deleted_at IS NULL;