aboutsummaryrefslogtreecommitdiff
path: root/deploy/tags.sql
blob: 3b39124818b016ad802387918728fb9ffb1e30ea (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- Deploy diary:tags to pg
-- requires: schema

BEGIN;

SET search_path to diary;

CREATE TABLE tags(
  tag_id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
  name VARCHAR UNIQUE NOT NULL
);

COMMIT;