| @@ 333-342 (lines=10) @@ | ||
| 330 | /** |
|
| 331 | * {@inheritdoc} |
|
| 332 | */ |
|
| 333 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 334 | { |
|
| 335 | $sql = sprintf( |
|
| 336 | 'ALTER TABLE %s RENAME TO %s', |
|
| 337 | $this->quoteTableName($tableName), |
|
| 338 | $this->quoteColumnName($newTableName) |
|
| 339 | ); |
|
| 340 | ||
| 341 | return new AlterInstructions([], [$sql]); |
|
| 342 | } |
|
| 343 | ||
| 344 | /** |
|
| 345 | * {@inheritdoc} |
|
| @@ 355-364 (lines=10) @@ | ||
| 352 | /** |
|
| 353 | * {@inheritdoc} |
|
| 354 | */ |
|
| 355 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 356 | { |
|
| 357 | $sql = sprintf( |
|
| 358 | 'RENAME TABLE %s TO %s', |
|
| 359 | $this->quoteTableName($tableName), |
|
| 360 | $this->quoteTableName($newTableName) |
|
| 361 | ); |
|
| 362 | ||
| 363 | return new AlterInstructions([], [$sql]); |
|
| 364 | } |
|
| 365 | ||
| 366 | /** |
|
| 367 | * {@inheritdoc} |
|
| @@ 431-440 (lines=10) @@ | ||
| 428 | /** |
|
| 429 | * {@inheritdoc} |
|
| 430 | */ |
|
| 431 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 432 | { |
|
| 433 | $sql = sprintf( |
|
| 434 | 'ALTER TABLE %s RENAME TO %s', |
|
| 435 | $this->quoteTableName($tableName), |
|
| 436 | $this->quoteTableName($newTableName) |
|
| 437 | ); |
|
| 438 | ||
| 439 | return new AlterInstructions([], [$sql]); |
|
| 440 | } |
|
| 441 | ||
| 442 | /** |
|
| 443 | * {@inheritdoc} |
|