Skip to content
Snippets Groups Projects
Commit 739d8b55 authored by Jakub Maloštík's avatar Jakub Maloštík
Browse files

Allow negative category and tag IDs

parent a79deda8
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ CREATE COLLATION IF NOT EXISTS case_insensitive ( ...@@ -19,7 +19,7 @@ CREATE COLLATION IF NOT EXISTS case_insensitive (
-- --
CREATE TABLE IF NOT EXISTS "categories" ( CREATE TABLE IF NOT EXISTS "categories" (
"id" int NOT NULL UNIQUE CHECK ("id" >= 0), "id" int NOT NULL UNIQUE,
"category" text NOT NULL COLLATE case_insensitive, "category" text NOT NULL COLLATE case_insensitive,
"subcategory" text DEFAULT NULL COLLATE case_insensitive, "subcategory" text DEFAULT NULL COLLATE case_insensitive,
"cat_subcat" text NOT NULL COLLATE case_insensitive "cat_subcat" text NOT NULL COLLATE case_insensitive
...@@ -103,7 +103,7 @@ CREATE INDEX IF NOT EXISTS "client_id" ON "last_events" ("client_id", "event_id" ...@@ -103,7 +103,7 @@ CREATE INDEX IF NOT EXISTS "client_id" ON "last_events" ("client_id", "event_id"
-- --
CREATE TABLE IF NOT EXISTS "tags" ( CREATE TABLE IF NOT EXISTS "tags" (
"id" int NOT NULL UNIQUE CHECK ("id" >= 0), "id" int NOT NULL UNIQUE,
"tag" text NOT NULL COLLATE case_insensitive "tag" text NOT NULL COLLATE case_insensitive
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment