updating database documentation
This commit is contained in:
parent
42a9c92b5e
commit
d8ae1be2ff
1 changed files with 18 additions and 7 deletions
25
INSTALL.md
25
INSTALL.md
|
@ -76,20 +76,31 @@ any experience running ZeroBin on other RDBMS, please let us know.
|
||||||
For reference or if you want to create the table schema for yourself:
|
For reference or if you want to create the table schema for yourself:
|
||||||
|
|
||||||
CREATE TABLE prefix_paste (
|
CREATE TABLE prefix_paste (
|
||||||
dataid CHAR(16),
|
dataid CHAR(16) NOT NULL,
|
||||||
data TEXT,
|
data BLOB,
|
||||||
postdate INT,
|
postdate INT,
|
||||||
expiredate INT,
|
expiredate INT,
|
||||||
opendiscussion INT,
|
opendiscussion INT,
|
||||||
burnafterreading INT
|
burnafterreading INT,
|
||||||
|
meta TEXT,
|
||||||
|
attachment MEDIUMBLOB,
|
||||||
|
attachmentname BLOB,
|
||||||
|
PRIMARY KEY (dataid)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE prefix_comment (
|
CREATE TABLE prefix_comment (
|
||||||
dataid CHAR(16),
|
dataid CHAR(16),
|
||||||
pasteid CHAR(16),
|
pasteid CHAR(16),
|
||||||
parentid CHAR(16),
|
parentid CHAR(16),
|
||||||
data TEXT,
|
data BLOB,
|
||||||
nickname VARCHAR(255),
|
nickname BLOB,
|
||||||
vizhash TEXT,
|
vizhash BLOB,
|
||||||
postdate INT
|
postdate INT,
|
||||||
|
PRIMARY KEY (dataid)
|
||||||
);
|
);
|
||||||
|
CREATE INDEX parent ON prefix_comment(pasteid);
|
||||||
|
|
||||||
|
CREATE TABLE prefix_config (
|
||||||
|
id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
INSERT INTO prefix_config VALUES('VERSION', '0.22');
|
||||||
|
|
Loading…
Reference in a new issue