Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Update migrations to take timestamptz
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianEffe committed Aug 1, 2023
1 parent ffe0c43 commit edaa327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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;
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
);

0 comments on commit edaa327

Please sign in to comment.