https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113836
Revision: 113836
Author: wikinaut
Date: 2012-03-14 20:16:32 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
adding two public convenience function wrappers: dropExtensionField and
dropExtensionTable
Modified Paths:
--------------
trunk/phase3/includes/installer/DatabaseUpdater.php
Modified: trunk/phase3/includes/installer/DatabaseUpdater.php
===================================================================
--- trunk/phase3/includes/installer/DatabaseUpdater.php 2012-03-14 19:02:54 UTC
(rev 113835)
+++ trunk/phase3/includes/installer/DatabaseUpdater.php 2012-03-14 20:16:32 UTC
(rev 113836)
@@ -203,6 +203,30 @@
}
/**
+ *
+ * @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.
*
* @since 1.19
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs