From 91307ea896bcc29019b0382d253d2c6ea35a00f3 Mon Sep 17 00:00:00 2001 From: OverlordQ Date: Tue, 28 Dec 2010 22:26:45 +0000 Subject: [PATCH] Followup to r79094, PG handles temporary tables correctly so you dont need to do cleanup --- includes/db/CloneDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/CloneDatabase.php b/includes/db/CloneDatabase.php index cf3a177b3d..cfefb6ede1 100644 --- a/includes/db/CloneDatabase.php +++ b/includes/db/CloneDatabase.php @@ -94,7 +94,7 @@ class CloneDatabase { $this->changePrefix( $this->newTablePrefix ); $newTableName = $this->db->tableName( $tbl ); - if( $this->dropCurrentTables ) { + if( $this->dropCurrentTables && !in_array( $this->db->getType(), array( 'postgres') ) ) { $this->db->dropTable( $newTableName, __METHOD__ ); } -- 2.20.1