From 02475e05ccd1aa15c6a6163834f28bfebbef796f Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 30 Nov 2026 11:47:36 +0100 Subject: RWGPS webhook and such --- server/migrations/1_init_up.sql | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'server/migrations/1_init_up.sql') 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 @@ -BEGIN; +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; -CREATE TABLE migration (version); - -INSERT INTO migration VALUES (1); - -COMMIT; +INSERT INTO migration (version) VALUES (0); -- cgit v1.3.1