includes/db/DatabaseMssql.php 1 location
|
@@ 1344-1353 (lines=10) @@
|
| 1341 |
|
* @return bool|ResultWrapper |
| 1342 |
|
* @since 1.18 |
| 1343 |
|
*/ |
| 1344 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 1345 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 1346 |
|
return false; |
| 1347 |
|
} |
| 1348 |
|
|
| 1349 |
|
// parent function incorrectly appends CASCADE, which we don't want |
| 1350 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ); |
| 1351 |
|
|
| 1352 |
|
return $this->query( $sql, $fName ); |
| 1353 |
|
} |
| 1354 |
|
|
| 1355 |
|
/** |
| 1356 |
|
* Called in the installer and updater. |
includes/libs/rdbms/database/DatabaseSqlite.php 1 location
|
@@ 1030-1037 (lines=8) @@
|
| 1027 |
|
* @return bool|ResultWrapper |
| 1028 |
|
* @throws DBReadOnlyError |
| 1029 |
|
*/ |
| 1030 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 1031 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 1032 |
|
return false; |
| 1033 |
|
} |
| 1034 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ); |
| 1035 |
|
|
| 1036 |
|
return $this->query( $sql, $fName ); |
| 1037 |
|
} |
| 1038 |
|
|
| 1039 |
|
protected function requiresDatabaseUser() { |
| 1040 |
|
return false; // just a file |
includes/libs/rdbms/database/DatabaseMysqlBase.php 1 location
|
@@ 1274-1280 (lines=7) @@
|
| 1271 |
|
* @param string $fName |
| 1272 |
|
* @return bool|ResultWrapper |
| 1273 |
|
*/ |
| 1274 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 1275 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 1276 |
|
return false; |
| 1277 |
|
} |
| 1278 |
|
|
| 1279 |
|
return $this->query( "DROP TABLE IF EXISTS " . $this->tableName( $tableName ), $fName ); |
| 1280 |
|
} |
| 1281 |
|
|
| 1282 |
|
/** |
| 1283 |
|
* Get status information from SHOW STATUS in an associative array |
includes/libs/rdbms/database/Database.php 1 location
|
@@ 3315-3322 (lines=8) @@
|
| 3312 |
|
* @return bool|ResultWrapper |
| 3313 |
|
* @since 1.18 |
| 3314 |
|
*/ |
| 3315 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 3316 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 3317 |
|
return false; |
| 3318 |
|
} |
| 3319 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ) . " CASCADE"; |
| 3320 |
|
|
| 3321 |
|
return $this->query( $sql, $fName ); |
| 3322 |
|
} |
| 3323 |
|
|
| 3324 |
|
public function getInfinity() { |
| 3325 |
|
return 'infinity'; |