From 9d317ac40f2689e4ffb942d32b2ec6e3be2b20cf Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 22 Aug 2017 18:02:02 +1000 Subject: [PATCH] * change db schema --- docs/schema.sqlite3.sql | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/schema.sqlite3.sql b/docs/schema.sqlite3.sql index 88265a9..57c740d 100644 --- a/docs/schema.sqlite3.sql +++ b/docs/schema.sqlite3.sql @@ -16,12 +16,14 @@ CREATE TABLE "pages" ( ON DELETE CASCADE ON UPDATE CASCADE ); -CREATE UNIQUE INDEX "pages_uniq" ON "pages" ("hash"); +CREATE UNIQUE INDEX "pages_uniq" ON "pages" ("sid", "hash"); CREATE TABLE "comments" ( "id" INTEGER PRIMARY KEY NOT NULL, - "pid" int(11) NOT NULL, - "seq" int(11) NOT NULL, + "pid" int(11) NOT NULL, + "seq" int(11) NOT NULL, + "date" int(11) NOT NULL, + "reply" int(11) NOT NULL DEFAULT 0, "name" varchar(255) NOT NULL DEFAULT '', "email" varchar(255) NOT NULL DEFAULT '', "text" text NOT NULL,