diff options
author | Alexandre Alapetite <alexandre@alapetite.fr> | 2016-10-01 20:54:08 +0200 |
---|---|---|
committer | Alexandre Alapetite <alexandre@alapetite.fr> | 2016-10-01 20:54:08 +0200 |
commit | 9b22272eee6e37963f6ed5f60b9f82382b23adc2 (patch) | |
tree | 3c0c2c941202f1c7ccf28024165cce3eb3b68e36 /app/SQL/install.sql.pgsql.php | |
parent | c9fe77b186d048c4f8fa27f8e6292c22edd72f35 (diff) | |
download | freshrss-9b22272eee6e37963f6ed5f60b9f82382b23adc2.tar.gz freshrss-9b22272eee6e37963f6ed5f60b9f82382b23adc2.zip |
PostgreSQL multiuser bug
https://github.com/FreshRSS/FreshRSS/pull/1195
Diffstat (limited to 'app/SQL/install.sql.pgsql.php')
-rw-r--r-- | app/SQL/install.sql.pgsql.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/SQL/install.sql.pgsql.php b/app/SQL/install.sql.pgsql.php index e60c5a07b..841003def 100644 --- a/app/SQL/install.sql.pgsql.php +++ b/app/SQL/install.sql.pgsql.php @@ -26,9 +26,9 @@ $SQL_CREATE_TABLES = array( "cache_nbUnreads" INT DEFAULT 0, FOREIGN KEY ("category") REFERENCES "%1$scategory" ("id") ON DELETE SET NULL ON UPDATE CASCADE );', -'CREATE INDEX name_index ON "%1$sfeed" ("name");', -'CREATE INDEX priority_index ON "%1$sfeed" ("priority");', -'CREATE INDEX keep_history_index ON "%1$sfeed" ("keep_history");', +'CREATE INDEX %1$sname_index ON "%1$sfeed" ("name");', +'CREATE INDEX %1$spriority_index ON "%1$sfeed" ("priority");', +'CREATE INDEX %1$skeep_history_index ON "%1$sfeed" ("keep_history");', 'CREATE TABLE IF NOT EXISTS "%1$sentry" ( "id" BIGINT NOT NULL PRIMARY KEY, @@ -47,9 +47,9 @@ $SQL_CREATE_TABLES = array( FOREIGN KEY ("id_feed") REFERENCES "%1$sfeed" ("id") ON DELETE CASCADE ON UPDATE CASCADE, UNIQUE ("id_feed","guid") );', -'CREATE INDEX is_favorite_index ON "%1$sentry" ("is_favorite");', -'CREATE INDEX is_read_index ON "%1$sentry" ("is_read");', -'CREATE INDEX entry_lastSeen_index ON "%1$sentry" ("lastSeen");', +'CREATE INDEX %1$sis_favorite_index ON "%1$sentry" ("is_favorite");', +'CREATE INDEX %1$sis_read_index ON "%1$sentry" ("is_read");', +'CREATE INDEX %1$sentry_lastSeen_index ON "%1$sentry" ("lastSeen");', 'INSERT INTO "%1$scategory" (id, name) VALUES(1, \'%2$s\');', 'INSERT INTO "%1$sfeed" (url, category, name, website, description, ttl) VALUES(\'http://freshrss.org/feeds/all.atom.xml\', 1, \'FreshRSS.org\', \'http://freshrss.org/\', \'FreshRSS, a free, self-hostable aggregator…\', 86400);', |