Browse Source

* change db schema

master
Alex 'AdUser' Z 7 years ago
parent
commit
9d317ac40f
  1. 8
      docs/schema.sqlite3.sql

8
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,

Loading…
Cancel
Save