update installation from INSTALL.md
parent
0dc592d3fd
commit
679cff0bc7
@ -118,7 +118,8 @@ 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
|
||||||
|
CREATE TABLE prefix_paste (
|
||||||
dataid CHAR(16) NOT NULL,
|
dataid CHAR(16) NOT NULL,
|
||||||
data BLOB,
|
data BLOB,
|
||||||
postdate INT,
|
postdate INT,
|
||||||
@ -129,9 +130,9 @@ or the MYSQL console):
|
|||||||
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),
|
||||||
@ -140,10 +141,13 @@ or the MYSQL console):
|
|||||||
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', '1.1');
|
INSERT INTO prefix_config VALUES('VERSION', '1.1');
|
||||||
|
```
|
||||||
|
|
||||||
|
In PostgreSQL the attachment column needs to be TEXT and not BLOB or MEDIUMBLOB.
|
Loading…
Reference in New Issue
Block a user