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/Database.php 1 location
|
@@ 3332-3339 (lines=8) @@
|
3329 |
|
* @return bool|ResultWrapper |
3330 |
|
* @since 1.18 |
3331 |
|
*/ |
3332 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
3333 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
3334 |
|
return false; |
3335 |
|
} |
3336 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ) . " CASCADE"; |
3337 |
|
|
3338 |
|
return $this->query( $sql, $fName ); |
3339 |
|
} |
3340 |
|
|
3341 |
|
public function getInfinity() { |
3342 |
|
return 'infinity'; |
includes/libs/rdbms/database/DatabaseMysqlBase.php 1 location
|
@@ 1252-1258 (lines=7) @@
|
1249 |
|
* @param string $fName |
1250 |
|
* @return bool|ResultWrapper |
1251 |
|
*/ |
1252 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
1253 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
1254 |
|
return false; |
1255 |
|
} |
1256 |
|
|
1257 |
|
return $this->query( "DROP TABLE IF EXISTS " . $this->tableName( $tableName ), $fName ); |
1258 |
|
} |
1259 |
|
|
1260 |
|
/** |
1261 |
|
* Get status information from SHOW STATUS in an associative array |
includes/libs/rdbms/database/DatabaseSqlite.php 1 location
|
@@ 1024-1031 (lines=8) @@
|
1021 |
|
* @return bool|ResultWrapper |
1022 |
|
* @throws DBReadOnlyError |
1023 |
|
*/ |
1024 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
1025 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
1026 |
|
return false; |
1027 |
|
} |
1028 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ); |
1029 |
|
|
1030 |
|
return $this->query( $sql, $fName ); |
1031 |
|
} |
1032 |
|
|
1033 |
|
protected function requiresDatabaseUser() { |
1034 |
|
return false; // just a file |