Browse Source

* change db schema

master
Alex 'AdUser' Z 7 years ago
parent
commit
62ee6e42cf
  1. 5
      docs/schema.sqlite3.sql

5
docs/schema.sqlite3.sql

@ -2,7 +2,8 @@ BEGIN TRANSACTION;
CREATE TABLE "sites" ( CREATE TABLE "sites" (
"id" INTEGER PRIMARY KEY NOT NULL, "id" INTEGER PRIMARY KEY NOT NULL,
"site" varchar(4) NOT NULL "site" varchar(4) NOT NULL,
"captcha" int(1) NOT NULL DEFAULT 1
); );
CREATE UNIQUE INDEX "sites_uniq" ON "sites" ("site"); CREATE UNIQUE INDEX "sites_uniq" ON "sites" ("site");
@ -24,6 +25,8 @@ CREATE TABLE "comments" (
"seq" int(11) NOT NULL, "seq" int(11) NOT NULL,
"date" int(11) NOT NULL, "date" int(11) NOT NULL,
"reply" int(11) NOT NULL DEFAULT 0, "reply" int(11) NOT NULL DEFAULT 0,
"notify" int(1) NOT NULL DEFAULT 0,
"addr" varchar(32) NOT NULL DEFAULT '',
"name" varchar(255) NOT NULL DEFAULT '', "name" varchar(255) NOT NULL DEFAULT '',
"email" varchar(255) NOT NULL DEFAULT '', "email" varchar(255) NOT NULL DEFAULT '',
"text" text NOT NULL, "text" text NOT NULL,

Loading…
Cancel
Save