src/Phinx/Db/Adapter/PostgresAdapter.php 1 location
|
@@ 261-268 (lines=8) @@
|
| 258 |
|
$this->execute($sql); |
| 259 |
|
|
| 260 |
|
// process table comments |
| 261 |
|
if (isset($options['comment'])) { |
| 262 |
|
$sql = sprintf( |
| 263 |
|
'COMMENT ON TABLE %s IS %s', |
| 264 |
|
$this->quoteTableName($table->getName()), |
| 265 |
|
$this->getConnection()->quote($options['comment']) |
| 266 |
|
); |
| 267 |
|
$this->execute($sql); |
| 268 |
|
} |
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
/** |
src/Phinx/Db/Adapter/RedshiftAdapter.php 1 location
|
@@ 113-118 (lines=6) @@
|
| 110 |
|
$this->execute($sql); |
| 111 |
|
|
| 112 |
|
// process table comments |
| 113 |
|
if (isset($options['comment'])) { |
| 114 |
|
$sql = sprintf( |
| 115 |
|
'COMMENT ON TABLE %s IS %s', |
| 116 |
|
$this->quoteTableName($table->getName()), |
| 117 |
|
$this->getConnection() |
| 118 |
|
->quote($options['comment']) |
| 119 |
|
); |
| 120 |
|
$this->execute($sql); |
| 121 |
|
} |