Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -203,6 +203,30 @@ |
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
| 207 | + * |
| 208 | + * @since 1.20 |
| 209 | + * |
| 210 | + * @param $tableName string |
| 211 | + * @param $columnName string |
| 212 | + * @param $sqlPath string |
| 213 | + */ |
| 214 | + public function dropExtensionField( $tableName, $columnName, $sqlPath ) { |
| 215 | + $this->extensionUpdates[] = array( 'dropField', $tableName, $columnName, $sqlPath, true ); |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * |
| 220 | + * @since 1.20 |
| 221 | + * |
| 222 | + * @param $tableName string |
| 223 | + * @param $sqlPath string |
| 224 | + */ |
| 225 | + public function dropExtensionTable( $tableName, $patch, $fullpath = false ) { |
| 226 | + $this->extensionUpdates[] = array( 'dropTable', $tableName, $sqlPath, true ); |
| 227 | + } |
| 228 | + |
| 229 | + |
| 230 | + /** |
207 | 231 | * Add a maintenance script to be run after the database updates are complete. |
208 | 232 | * |
209 | 233 | * @since 1.19 |