Some changes in schema.
This commit is contained in:
parent
4c700da6fa
commit
886c654c1d
|
@ -5,7 +5,7 @@ CREATE TABLE "sites" (
|
||||||
"host" text COLLATE 'NOCASE' NOT NULL,
|
"host" text COLLATE 'NOCASE' NOT NULL,
|
||||||
"label" text NULL,
|
"label" text NULL,
|
||||||
"stats_public" numeric NOT NULL DEFAULT '0',
|
"stats_public" numeric NOT NULL DEFAULT '0',
|
||||||
"stats_key" text NOT NULL
|
"stats_key" text NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE UNIQUE INDEX "sites_host" ON "sites" ("host");
|
CREATE UNIQUE INDEX "sites_host" ON "sites" ("host");
|
||||||
|
@ -15,10 +15,11 @@ CREATE TABLE "visits" (
|
||||||
"site_id" integer NOT NULL,
|
"site_id" integer NOT NULL,
|
||||||
"path" text NOT NULL,
|
"path" text NOT NULL,
|
||||||
"ts" numeric NOT NULL,
|
"ts" numeric NOT NULL,
|
||||||
"unique" numeric NOT NULL DEFAULT '0',
|
"is_unique" numeric NOT NULL DEFAULT '0',
|
||||||
"os" text NOT NULL DEFAULT '',
|
"is_bot" numeric NOT NULL DEFAULT '0',
|
||||||
"device" text NOT NULL DEFAULT '',
|
"platform" text NOT NULL DEFAULT '',
|
||||||
"browser" text NOT NULL DEFAULT '',
|
"browser" text NOT NULL DEFAULT '',
|
||||||
|
"version" text NOT NULL DEFAULT '',
|
||||||
"ref" text NOT NULL DEFAULT '',
|
"ref" text NOT NULL DEFAULT '',
|
||||||
"width" integer NOT NULL DEFAULT ''
|
"width" integer NOT NULL DEFAULT ''
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue