diff --git a/warden_server/warden_3.0_postgres.sql b/warden_server/warden_3.0_postgres.sql index 7ccb1dca45fba777e649084efec3cbdf064f8c17..208acc6220e561fa5ade7e4ea17a6d049721e02d 100644 --- a/warden_server/warden_3.0_postgres.sql +++ b/warden_server/warden_3.0_postgres.sql @@ -19,7 +19,7 @@ CREATE COLLATION IF NOT EXISTS case_insensitive ( -- 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, "subcategory" text DEFAULT 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" -- 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 );