| @@ 304-313 (lines=10) @@ | ||
| 301 | /** |
|
| 302 | * {@inheritdoc} |
|
| 303 | */ |
|
| 304 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 305 | { |
|
| 306 | $sql = sprintf( |
|
| 307 | 'RENAME TABLE %s TO %s', |
|
| 308 | $this->quoteTableName($tableName), |
|
| 309 | $this->quoteTableName($newTableName) |
|
| 310 | ); |
|
| 311 | ||
| 312 | return new AlterInstructions([], [$sql]); |
|
| 313 | } |
|
| 314 | ||
| 315 | /** |
|
| 316 | * {@inheritdoc} |
|
| @@ 276-285 (lines=10) @@ | ||
| 273 | /** |
|
| 274 | * {@inheritdoc} |
|
| 275 | */ |
|
| 276 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 277 | { |
|
| 278 | $sql = sprintf( |
|
| 279 | 'ALTER TABLE %s RENAME TO %s', |
|
| 280 | $this->quoteTableName($tableName), |
|
| 281 | $this->quoteColumnName($newTableName) |
|
| 282 | ); |
|
| 283 | ||
| 284 | return new AlterInstructions([], [$sql]); |
|
| 285 | } |
|
| 286 | ||
| 287 | /** |
|
| 288 | * {@inheritdoc} |
|
| @@ 254-263 (lines=10) @@ | ||
| 251 | /** |
|
| 252 | * {@inheritdoc} |
|
| 253 | */ |
|
| 254 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 255 | { |
|
| 256 | $sql = sprintf( |
|
| 257 | 'ALTER TABLE %s RENAME TO %s', |
|
| 258 | $this->quoteTableName($tableName), |
|
| 259 | $this->quoteTableName($newTableName) |
|
| 260 | ); |
|
| 261 | ||
| 262 | return new AlterInstructions([], [$sql]); |
|
| 263 | } |
|
| 264 | ||
| 265 | /** |
|
| 266 | * {@inheritdoc} |
|