PostgreSQL does not support INDEX() inside the CREATE TABLE method. You must create the index as a separate query. Fortunately MySQL also support this way of doing things as well.

This commit is contained in:
jgen
2014-02-22 23:02:11 -05:00
parent 5effee4812
commit 9892d1f7fd
12 changed files with 21 additions and 27 deletions

View File

@@ -18,7 +18,6 @@ class Tips extends Extension {
enable SCORE_BOOL NOT NULL DEFAULT SCORE_BOOL_N,
image TEXT NOT NULL,
text TEXT NOT NULL,
INDEX (id)
");
$database->execute("