Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1830

[3.3.x] Support Forum • Upgrade procedure on PostgreSQL is broken

$
0
0
Hi.

I am trying to upgrade phpbb 3.2.11 to 3.3.14 on PostgreSQL 9.1 server. I've encountered the following error:

Code:

PHP Fatal error:  SQL ERROR [ postgres ]<br /><br />ERROR:  relation "phpbb_migrations" already exists []<br /><br />An SQL error occurred while fetching this page. Please contact the <a href="mailto:info@podnapisi.net">Board Administrator</a> if this problem persists. in /var/www/podnapisi/forum/phpbb/db/driver/driver.php on line 1031
Applying following patch fixes the problem:

Code:

commit f9ff7c2f0260688e3c8445684b9f38579af2c9c1 (HEAD -> upgrade-phpbb)Author: Gregor Kališnik <gregor.kalisnik@gogo.si>Date:   Sat Jan 4 13:49:07 2025 +0000    Allow migration to finishdiff --git a/docker/phpbb/forum/phpbb/db/tools/postgres.php b/docker/phpbb/forum/phpbb/db/tools/postgres.phpindex 2074dbc9..26cb5896 100644--- a/docker/phpbb/forum/phpbb/db/tools/postgres.php+++ b/docker/phpbb/forum/phpbb/db/tools/postgres.php@@ -105,7 +105,7 @@ class postgres extends tools                        SELECT * FROM information_schema.tables                                WHERE table_schema = 'public'                                        AND table_name   = '" . $this->db->sql_escape($table_name) . "'-                       ) AS INTEGER)";+                       ) AS INTEGER) AS exists";                $result = $this->db->sql_query_limit($sql, 1);                $row = $this->db->sql_fetchrow($result);                $table_exists = (booL) $row['exists'];
Thank you!

Statistics: Posted by MasterMind2k — Sat Jan 04, 2025 1:53 pm



Viewing all articles
Browse latest Browse all 1830

Trending Articles