summaryrefslogtreecommitdiffstats
path: root/server/migrations/1_init_up.sql
diff options
context:
space:
mode:
authorRutger Broekhoff2026-11-30 11:47:36 +0100
committerRutger Broekhoff2026-11-30 11:47:36 +0100
commit02475e05ccd1aa15c6a6163834f28bfebbef796f (patch)
tree6bc6f453f07dc76f763310e1e5eade9a3e1115b7 /server/migrations/1_init_up.sql
parent5732f6c14618f50ffaf315b93795340219a67c66 (diff)
downloadroutemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.tar.gz
routemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.zip
RWGPS webhook and such
Diffstat (limited to 'server/migrations/1_init_up.sql')
-rw-r--r--server/migrations/1_init_up.sql13
1 files changed, 7 insertions, 6 deletions
diff --git a/server/migrations/1_init_up.sql b/server/migrations/1_init_up.sql
index 7edb398..8400f8d 100644
--- a/server/migrations/1_init_up.sql
+++ b/server/migrations/1_init_up.sql
@@ -1,7 +1,8 @@
1BEGIN; 1CREATE TABLE migration (
2 at_most_one_row INTEGER UNIQUE DEFAULT 1,
3 version INTEGER NOT NULL,
4 -- This table should have at most one row.
5 CHECK (at_most_one_row = 1)
6) STRICT;
2 7
3CREATE TABLE migration (version); 8INSERT INTO migration (version) VALUES (0);
4
5INSERT INTO migration VALUES (1);
6
7COMMIT;