Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(db): deleted_at should include time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Aug 25, 2024
1 parent 8a622b0 commit 8227f1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions migrations/20240810172952_base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CREATE TABLE dp_schemas (

created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP
deleted_at TIMESTAMP WITH TIME ZONE
);

CREATE TRIGGER dp_schemas_moddatetime
Expand All @@ -39,7 +39,7 @@ CREATE TABLE dp_questions (

created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP
deleted_at TIMESTAMP WITH TIME ZONE
);

CREATE TRIGGER dp_questions_moddatetime
Expand All @@ -55,7 +55,7 @@ CREATE TABLE dp_groups (
description TEXT NOT NULL DEFAULT '',
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP
deleted_at TIMESTAMP WITH TIME ZONE
);

CREATE TRIGGER dp_groups_moddatetime
Expand All @@ -68,7 +68,7 @@ CREATE TABLE dp_users (
group_id BIGINT REFERENCES dp_groups ON DELETE SET NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP
deleted_at TIMESTAMP WITH TIME ZONE
);

CREATE TRIGGER dp_users_moddatetime
Expand Down

0 comments on commit 8227f1c

Please sign in to comment.