Add sql highlighting

rugk 2016-09-11 12:09:55 +02:00
parent f22d555069
commit 6de8520bf2

@ -103,7 +103,8 @@ The table prefix option is called `tbl`.
For reference or if you want to create the table schema for yourself (replace For reference or if you want to create the table schema for yourself (replace
`prefix_` with your own table prefix): `prefix_` with your own table prefix):
CREATE TABLE prefix_paste ( ```sql
CREATE TABLE prefix_paste (
dataid CHAR(16) NOT NULL, dataid CHAR(16) NOT NULL,
data BLOB, data BLOB,
postdate INT, postdate INT,
@ -114,9 +115,9 @@ For reference or if you want to create the table schema for yourself (replace
attachment MEDIUMBLOB, attachment MEDIUMBLOB,
attachmentname BLOB, attachmentname BLOB,
PRIMARY KEY (dataid) 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),
@ -125,10 +126,11 @@ For reference or if you want to create the table schema for yourself (replace
vizhash BLOB, vizhash BLOB,
postdate INT, postdate INT,
PRIMARY KEY (dataid) PRIMARY KEY (dataid)
); );
CREATE INDEX parent ON prefix_comment(pasteid); CREATE INDEX parent ON prefix_comment(pasteid);
CREATE TABLE prefix_config ( CREATE TABLE prefix_config (
id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id) id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id)
); );
INSERT INTO prefix_config VALUES('VERSION', '0.22'); INSERT INTO prefix_config VALUES('VERSION', '0.22');
```