summaryrefslogtreecommitdiffstats
path: root/server/migrations/1_init_up.sql
blob: 8400f8d84adf6fb8c1b651a6b490fd1ccbb237af (about) (plain) (blame)
1
2
3
4
5
6
7
8
CREATE TABLE migration (
  at_most_one_row INTEGER UNIQUE DEFAULT 1,
  version INTEGER NOT NULL,
  -- This table should have at most one row.
  CHECK (at_most_one_row = 1)
) STRICT;

INSERT INTO migration (version) VALUES (0);