aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/extractor/postgres_extractor.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/db/extractor/postgres_extractor.php')
-rw-r--r--phpBB/phpbb/db/extractor/postgres_extractor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/extractor/postgres_extractor.php b/phpBB/phpbb/db/extractor/postgres_extractor.php
index a98e39621c..0219d2ac8d 100644
--- a/phpBB/phpbb/db/extractor/postgres_extractor.php
+++ b/phpBB/phpbb/db/extractor/postgres_extractor.php
@@ -85,7 +85,7 @@ class postgres_extractor extends base_extractor
// We don't even care about storing the results. We already know the answer if we get rows back.
if ($this->db->sql_fetchrow($result))
{
- $sql_data .= "DROP SEQUENCE {$table_name}_seq;\n";
+ $sql_data .= "DROP SEQUENCE IF EXISTS {$table_name}_seq;\n";
$sql_data .= "CREATE SEQUENCE {$table_name}_seq;\n";
}
$this->db->sql_freeresult($result);