This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update migrations to take timestamptz
- Loading branch information
1 parent
ffe0c43
commit edaa327
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
migrations/20230727101912_init.down.sql → migrations/20230801073734_init.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
-- Add down migration script here | ||
DROP TABLE IF EXISTS briefly; | ||
|
||
DROP TABLE IF EXISTS briefly; |
5 changes: 3 additions & 2 deletions
5
migrations/20230727101912_init.up.sql → migrations/20230801073734_init.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
-- Add up migration script here | ||
|
||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | ||
|
||
CREATE TABLE briefly( | ||
id UUID PRIMARY KEY NOT NULL DEFAULT (uuid_generate_v4()), | ||
url TEXT NOT NULL, | ||
extension TEXT NOT NULL UNIQUE, | ||
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() | ||
); | ||
created_at TIMESTAMPTZ | ||
); |