Compare commits

...

2 Commits

Author SHA1 Message Date
Magnus Åhall
6c3310b83d Bumped to v2 2024-05-01 21:17:20 +02:00
Magnus Åhall
012781d267 Added forgotten SQL changes 2024-05-01 21:16:58 +02:00
3 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ import (
"time"
)
const VERSION = "v1"
const VERSION = "v2"
var (
logger *slog.Logger

1
sql/00009.sql Normal file
View File

@ -0,0 +1 @@
ALTER TABLE public.area ADD CONSTRAINT area_unique UNIQUE ("name");

1
sql/00010.sql Normal file
View File

@ -0,0 +1 @@
ALTER TABLE public."section" ADD CONSTRAINT section_areaname_unique UNIQUE ("name",area_id);