From: Thomas Gries Date: Wed, 14 Mar 2012 20:16:32 +0000 (+0000) Subject: adding two public convenience function wrappers: dropExtensionField and dropExtension... X-Git-Tag: 1.31.0-rc.0~24255 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=1fc9bcb398dc1a699aed6ee4cf058e1bc5cf1ad0;p=lhc%2Fweb%2Fwiklou.git adding two public convenience function wrappers: dropExtensionField and dropExtensionTable --- diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index f2e36aec2b..b28d7dc6ab 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -202,6 +202,30 @@ abstract class DatabaseUpdater { $this->extensionUpdates[] = array( 'addField', $tableName, $columnName, $sqlPath, true ); } + /** + * + * @since 1.20 + * + * @param $tableName string + * @param $columnName string + * @param $sqlPath string + */ + public function dropExtensionField( $tableName, $columnName, $sqlPath ) { + $this->extensionUpdates[] = array( 'dropField', $tableName, $columnName, $sqlPath, true ); + } + + /** + * + * @since 1.20 + * + * @param $tableName string + * @param $sqlPath string + */ + public function dropExtensionTable( $tableName, $patch, $fullpath = false ) { + $this->extensionUpdates[] = array( 'dropTable', $tableName, $sqlPath, true ); + } + + /** * Add a maintenance script to be run after the database updates are complete. *