includes/db/DatabaseMssql.php 1 location
|
@@ 1373-1382 (lines=10) @@
|
| 1370 |
|
* @return bool|ResultWrapper |
| 1371 |
|
* @since 1.18 |
| 1372 |
|
*/ |
| 1373 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 1374 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 1375 |
|
return false; |
| 1376 |
|
} |
| 1377 |
|
|
| 1378 |
|
// parent function incorrectly appends CASCADE, which we don't want |
| 1379 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ); |
| 1380 |
|
|
| 1381 |
|
return $this->query( $sql, $fName ); |
| 1382 |
|
} |
| 1383 |
|
|
| 1384 |
|
/** |
| 1385 |
|
* Called in the installer and updater. |
includes/db/Database.php 1 location
|
@@ 3348-3358 (lines=11) @@
|
| 3345 |
|
* @return bool|ResultWrapper |
| 3346 |
|
* @since 1.18 |
| 3347 |
|
*/ |
| 3348 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 3349 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 3350 |
|
return false; |
| 3351 |
|
} |
| 3352 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ); |
| 3353 |
|
if ( $this->cascadingDeletes() ) { |
| 3354 |
|
$sql .= " CASCADE"; |
| 3355 |
|
} |
| 3356 |
|
|
| 3357 |
|
return $this->query( $sql, $fName ); |
| 3358 |
|
} |
| 3359 |
|
|
| 3360 |
|
/** |
| 3361 |
|
* Get search engine class. All subclasses of this need to implement this |
includes/db/DatabaseMysqlBase.php 1 location
|
@@ 1249-1255 (lines=7) @@
|
| 1246 |
|
* @param string $fName |
| 1247 |
|
* @return bool|ResultWrapper |
| 1248 |
|
*/ |
| 1249 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 1250 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 1251 |
|
return false; |
| 1252 |
|
} |
| 1253 |
|
|
| 1254 |
|
return $this->query( "DROP TABLE IF EXISTS " . $this->tableName( $tableName ), $fName ); |
| 1255 |
|
} |
| 1256 |
|
|
| 1257 |
|
/** |
| 1258 |
|
* @return array |