|
@@ 165-176 (lines=12) @@
|
| 162 |
|
* |
| 163 |
|
* @return \Doctrine\DBAL\Schema\Column[] |
| 164 |
|
*/ |
| 165 |
|
public function listTableColumns($table, $database = null) |
| 166 |
|
{ |
| 167 |
|
if ( ! $database) { |
| 168 |
|
$database = $this->_conn->getDatabase(); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$sql = $this->_platform->getListTableColumnsSQL($table, $database); |
| 172 |
|
|
| 173 |
|
$tableColumns = $this->_conn->fetchAll($sql); |
| 174 |
|
|
| 175 |
|
return $this->_getPortableTableColumnList($table, $database, $tableColumns); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
/** |
| 179 |
|
* Lists the indexes for a given table returning an array of Index instances. |
|
@@ 313-322 (lines=10) @@
|
| 310 |
|
* |
| 311 |
|
* @return \Doctrine\DBAL\Schema\ForeignKeyConstraint[] |
| 312 |
|
*/ |
| 313 |
|
public function listTableForeignKeys($table, $database = null) |
| 314 |
|
{ |
| 315 |
|
if (is_null($database)) { |
| 316 |
|
$database = $this->_conn->getDatabase(); |
| 317 |
|
} |
| 318 |
|
$sql = $this->_platform->getListTableForeignKeysSQL($table, $database); |
| 319 |
|
$tableForeignKeys = $this->_conn->fetchAll($sql); |
| 320 |
|
|
| 321 |
|
return $this->_getPortableTableForeignKeysList($tableForeignKeys); |
| 322 |
|
} |
| 323 |
|
|
| 324 |
|
/* drop*() Methods */ |
| 325 |
|
|