Some changes in schema.

This commit is contained in:
severak 2020-01-15 15:48:45 +01:00
parent 4c700da6fa
commit 886c654c1d
1 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ CREATE TABLE "sites" (
"host" text COLLATE 'NOCASE' NOT NULL,
"label" text NULL,
"stats_public" numeric NOT NULL DEFAULT '0',
"stats_key" text NOT NULL
"stats_key" text NULL
);
CREATE UNIQUE INDEX "sites_host" ON "sites" ("host");
@ -15,10 +15,11 @@ CREATE TABLE "visits" (
"site_id" integer NOT NULL,
"path" text NOT NULL,
"ts" numeric NOT NULL,
"unique" numeric NOT NULL DEFAULT '0',
"os" text NOT NULL DEFAULT '',
"device" text NOT NULL DEFAULT '',
"is_unique" numeric NOT NULL DEFAULT '0',
"is_bot" numeric NOT NULL DEFAULT '0',
"platform" text NOT NULL DEFAULT '',
"browser" text NOT NULL DEFAULT '',
"version" text NOT NULL DEFAULT '',
"ref" text NOT NULL DEFAULT '',
"width" integer NOT NULL DEFAULT ''
);