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
|
@@ 3246-3256 (lines=11) @@
|
| 3243 |
|
* @return bool|ResultWrapper |
| 3244 |
|
* @since 1.18 |
| 3245 |
|
*/ |
| 3246 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 3247 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 3248 |
|
return false; |
| 3249 |
|
} |
| 3250 |
|
$sql = "DROP TABLE " . $this->tableName( $tableName ); |
| 3251 |
|
if ( $this->cascadingDeletes() ) { |
| 3252 |
|
$sql .= " CASCADE"; |
| 3253 |
|
} |
| 3254 |
|
|
| 3255 |
|
return $this->query( $sql, $fName ); |
| 3256 |
|
} |
| 3257 |
|
|
| 3258 |
|
/** |
| 3259 |
|
* Get search engine class. All subclasses of this need to implement this |
includes/db/DatabaseMysqlBase.php 1 location
|
@@ 1273-1279 (lines=7) @@
|
| 1270 |
|
* @param string $fName |
| 1271 |
|
* @return bool|ResultWrapper |
| 1272 |
|
*/ |
| 1273 |
|
public function dropTable( $tableName, $fName = __METHOD__ ) { |
| 1274 |
|
if ( !$this->tableExists( $tableName, $fName ) ) { |
| 1275 |
|
return false; |
| 1276 |
|
} |
| 1277 |
|
|
| 1278 |
|
return $this->query( "DROP TABLE IF EXISTS " . $this->tableName( $tableName ), $fName ); |
| 1279 |
|
} |
| 1280 |
|
|
| 1281 |
|
/** |
| 1282 |
|
* @return array |