follow up r113836 added public function extensionTableExists.
authorThomas Gries <wikinaut@users.mediawiki.org>
Wed, 14 Mar 2012 21:41:37 +0000 (21:41 +0000)
committerThomas Gries <wikinaut@users.mediawiki.org>
Wed, 14 Mar 2012 21:41:37 +0000 (21:41 +0000)
includes/installer/DatabaseUpdater.php

index b28d7dc..037b755 100644 (file)
@@ -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.