| @@ 339-348 (lines=10) @@ | ||
| 336 | /** |
|
| 337 | * {@inheritdoc} |
|
| 338 | */ |
|
| 339 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 340 | { |
|
| 341 | $sql = sprintf( |
|
| 342 | 'ALTER TABLE %s RENAME TO %s', |
|
| 343 | $this->quoteTableName($tableName), |
|
| 344 | $this->quoteColumnName($newTableName) |
|
| 345 | ); |
|
| 346 | ||
| 347 | return new AlterInstructions([], [$sql]); |
|
| 348 | } |
|
| 349 | ||
| 350 | /** |
|
| 351 | * {@inheritdoc} |
|
| @@ 354-363 (lines=10) @@ | ||
| 351 | /** |
|
| 352 | * {@inheritdoc} |
|
| 353 | */ |
|
| 354 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 355 | { |
|
| 356 | $sql = sprintf( |
|
| 357 | 'RENAME TABLE %s TO %s', |
|
| 358 | $this->quoteTableName($tableName), |
|
| 359 | $this->quoteTableName($newTableName) |
|
| 360 | ); |
|
| 361 | ||
| 362 | return new AlterInstructions([], [$sql]); |
|
| 363 | } |
|
| 364 | ||
| 365 | /** |
|
| 366 | * {@inheritdoc} |
|
| @@ 294-303 (lines=10) @@ | ||
| 291 | /** |
|
| 292 | * {@inheritdoc} |
|
| 293 | */ |
|
| 294 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 295 | { |
|
| 296 | $sql = sprintf( |
|
| 297 | 'ALTER TABLE %s RENAME TO %s', |
|
| 298 | $this->quoteTableName($tableName), |
|
| 299 | $this->quoteTableName($newTableName) |
|
| 300 | ); |
|
| 301 | ||
| 302 | return new AlterInstructions([], [$sql]); |
|
| 303 | } |
|
| 304 | ||
| 305 | /** |
|
| 306 | * {@inheritdoc} |
|