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
|
@@ 3231-3241 (lines=11) @@
|
| 3228 |
|
* @return bool|ResultWrapper |
| 3229 |
|
* @since 1.18 |
| 3230 |
|
*/ |
| 3231 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 3232 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 3233 |
|
return false; |
| 3234 |
|
} |
| 3235 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ); |
| 3236 |
|
if ( $this->cascadingDeletes() ) { |
| 3237 |
|
$sql .= " CASCADE"; |
| 3238 |
|
} |
| 3239 |
|
|
| 3240 |
|
return $this->query( $sql, $fName ); |
| 3241 |
|
} |
| 3242 |
|
|
| 3243 |
|
/** |
| 3244 |
|
* Get search engine class. All subclasses of this need to implement this |
includes/db/DatabaseMysqlBase.php 1 location
|
@@ 1245-1251 (lines=7) @@
|
| 1242 |
|
* @param string $fName |
| 1243 |
|
* @return bool|ResultWrapper |
| 1244 |
|
*/ |
| 1245 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 1246 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 1247 |
|
return false; |
| 1248 |
|
} |
| 1249 |
|
|
| 1250 |
|
return $this->query( "DROP TABLE IF EXISTS " . $this->tableName( $tableName ), $fName ); |
| 1251 |
|
} |
| 1252 |
|
|
| 1253 |
|
/** |
| 1254 |
|
* @return array |