summaryrefslogtreecommitdiffstats
path: root/server/migrations/2_kaas_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/2_kaas_up.sql
parent5732f6c14618f50ffaf315b93795340219a67c66 (diff)
downloadroutemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.tar.gz
routemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.zip
RWGPS webhook and such
Diffstat (limited to 'server/migrations/2_kaas_up.sql')
-rw-r--r--server/migrations/2_kaas_up.sql23
1 files changed, 0 insertions, 23 deletions
diff --git a/server/migrations/2_kaas_up.sql b/server/migrations/2_kaas_up.sql
deleted file mode 100644
index 0c7837a..0000000
--- a/server/migrations/2_kaas_up.sql
+++ /dev/null
@@ -1,23 +0,0 @@
1BEGIN;
2
3-- TODO enable strict mode so that primary key is automatically enforced to not be NULL
4CREATE TABLE received_route (
5 id INTEGER PRIMARY KEY,
6
7 received_route_source route_source NOT NULL,
8 recieved_route_strava_id TEXT,
9
10 -- ON DELETE what?
11 FOREIGN KEY (received_route_source_id) REFERENCES received_route_source (id),
12 CHECK (received_route_source IN ('gpx_upload', 'strava', 'rwgps')),
13 CHECK ((received_route_source = 'strava') = (received_route_strava_id IS NULL))
14);
15
16CREATE TABLE received_route_linestring (
17 received_route_id INT NOT NULL,
18 linestring BLOB NOT NULL,
19
20 FOREIGN KEY (received_route_id) REFERENCES received_route (id)
21);
22
23COMMIT;