|
|
|
@ -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, |
|
|
|
|
"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, |
|
|
|
|