From 219645149533fb77716979e756cd8e095f2441dd Mon Sep 17 00:00:00 2001 From: Thomas Gries Date: Wed, 14 Mar 2012 21:41:37 +0000 Subject: [PATCH] follow up r113836 added public function extensionTableExists. --- includes/installer/DatabaseUpdater.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index b28d7dc6ab..037b755f3b 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -225,6 +225,15 @@ abstract class DatabaseUpdater { $this->extensionUpdates[] = array( 'dropTable', $tableName, $sqlPath, true ); } + /** + * + * @since 1.20 + * + * @param $tableName string + */ + public function extensionTableExists( $tableName ) { + return ( $this->db->tableExists( $tableName, __METHOD__ ) ); + } /** * Add a maintenance script to be run after the database updates are complete. -- 2.20.1