Use SQL highlighting

pull/125/merge
rugk 7 years ago
parent f514381aa5
commit fa2dde0b1f
No known key found for this signature in database
GPG Key ID: 05D40A636AFAB34D

@ -64,7 +64,7 @@ process (see also
> #### PATH Example > #### PATH Example
> Your PrivateBin installation lives in a subfolder called "paste" inside of > Your PrivateBin installation lives in a subfolder called "paste" inside of
> your document root. The URL looks like this: > your document root. The URL looks like this:
> http://example.com/paste/ > https://example.com/paste/
> >
> The full path of PrivateBin on your webserver is: > The full path of PrivateBin on your webserver is:
> /home/example.com/htdocs/paste > /home/example.com/htdocs/paste
@ -118,32 +118,34 @@ For reference or if you want to create the table schema for yourself (replace
`prefix_` with your own table prefix and create the table schema with phpMyAdmin `prefix_` with your own table prefix and create the table schema with phpMyAdmin
or the MYSQL console): or the MYSQL console):
CREATE TABLE prefix_paste ( ```sql
dataid CHAR(16) NOT NULL, CREATE TABLE prefix_paste (
data BLOB, dataid CHAR(16) NOT NULL,
postdate INT, data BLOB,
expiredate INT, postdate INT,
opendiscussion INT, expiredate INT,
burnafterreading INT, opendiscussion INT,
meta TEXT, burnafterreading INT,
attachment MEDIUMBLOB, meta TEXT,
attachmentname BLOB, attachment MEDIUMBLOB,
PRIMARY KEY (dataid) attachmentname BLOB,
); PRIMARY KEY (dataid)
);
CREATE TABLE prefix_comment (
dataid CHAR(16), CREATE TABLE prefix_comment (
pasteid CHAR(16), dataid CHAR(16),
parentid CHAR(16), pasteid CHAR(16),
data BLOB, parentid CHAR(16),
nickname BLOB, data BLOB,
vizhash BLOB, nickname BLOB,
postdate INT, vizhash BLOB,
PRIMARY KEY (dataid) postdate INT,
); PRIMARY KEY (dataid)
CREATE INDEX parent ON prefix_comment(pasteid); );
CREATE INDEX parent ON prefix_comment(pasteid);
CREATE TABLE prefix_config (
id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id) CREATE TABLE prefix_config (
); id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id)
INSERT INTO prefix_config VALUES('VERSION', '1.1'); );
INSERT INTO prefix_config VALUES('VERSION', '1.1');
```

Loading…
Cancel
Save