Archived
1
0
Fork 0

chore: update migration content for sample db

This commit is contained in:
Dmitriy Pleshevskiy 2021-02-22 16:27:27 +03:00
parent aa4ac60016
commit 7dc1477f1f
5 changed files with 8 additions and 6 deletions

View file

@ -1,2 +1,3 @@
-- This file should undo anything in `up.sql`
DROP TABLE tags;

View file

@ -0,0 +1,7 @@
-- Your SQL goes here
CREATE TABLE tags (
id serial PRIMARY KEY,
name text NOT NULL UNIQUE CHECK(length(name) > 0),
created_at timestamp NOT NULL DEFAULT current_timestamp
);

View file

@ -1,2 +0,0 @@
-- Your SQL goes here

View file

@ -1,2 +0,0 @@
-- This file should undo anything in `up.sql`

View file

@ -1,2 +0,0 @@
-- Your SQL goes here