| @@ 297-306 (lines=10) @@ | ||
| 294 | /** |
|
| 295 | * {@inheritdoc} |
|
| 296 | */ |
|
| 297 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 298 | { |
|
| 299 | $sql = sprintf( |
|
| 300 | 'RENAME TABLE %s TO %s', |
|
| 301 | $this->quoteTableName($tableName), |
|
| 302 | $this->quoteTableName($newTableName) |
|
| 303 | ); |
|
| 304 | ||
| 305 | return new AlterInstructions([], [$sql]); |
|
| 306 | } |
|
| 307 | ||
| 308 | /** |
|
| 309 | * {@inheritdoc} |
|
| @@ 234-243 (lines=10) @@ | ||
| 231 | /** |
|
| 232 | * {@inheritdoc} |
|
| 233 | */ |
|
| 234 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 235 | { |
|
| 236 | $sql = sprintf( |
|
| 237 | 'ALTER TABLE %s RENAME TO %s', |
|
| 238 | $this->quoteTableName($tableName), |
|
| 239 | $this->quoteTableName($newTableName) |
|
| 240 | ); |
|
| 241 | ||
| 242 | return new AlterInstructions([], [$sql]); |
|
| 243 | } |
|
| 244 | ||
| 245 | /** |
|
| 246 | * {@inheritdoc} |
|
| @@ 274-283 (lines=10) @@ | ||
| 271 | /** |
|
| 272 | * {@inheritdoc} |
|
| 273 | */ |
|
| 274 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 275 | { |
|
| 276 | $sql = sprintf( |
|
| 277 | 'ALTER TABLE %s RENAME TO %s', |
|
| 278 | $this->quoteTableName($tableName), |
|
| 279 | $this->quoteColumnName($newTableName) |
|
| 280 | ); |
|
| 281 | ||
| 282 | return new AlterInstructions([], [$sql]); |
|
| 283 | } |
|
| 284 | ||
| 285 | /** |
|
| 286 | * {@inheritdoc} |
|