| @@ 299-308 (lines=10) @@ | ||
| 296 | /** |
|
| 297 | * {@inheritdoc} |
|
| 298 | */ |
|
| 299 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 300 | { |
|
| 301 | $sql = sprintf( |
|
| 302 | 'RENAME TABLE %s TO %s', |
|
| 303 | $this->quoteTableName($tableName), |
|
| 304 | $this->quoteTableName($newTableName) |
|
| 305 | ); |
|
| 306 | ||
| 307 | return new AlterInstructions([], [$sql]); |
|
| 308 | } |
|
| 309 | ||
| 310 | /** |
|
| 311 | * {@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} |
|
| @@ 236-245 (lines=10) @@ | ||
| 233 | /** |
|
| 234 | * {@inheritdoc} |
|
| 235 | */ |
|
| 236 | protected function getRenameTableInstructions($tableName, $newTableName) |
|
| 237 | { |
|
| 238 | $sql = sprintf( |
|
| 239 | 'ALTER TABLE %s RENAME TO %s', |
|
| 240 | $this->quoteTableName($tableName), |
|
| 241 | $this->quoteTableName($newTableName) |
|
| 242 | ); |
|
| 243 | ||
| 244 | return new AlterInstructions([], [$sql]); |
|
| 245 | } |
|
| 246 | ||
| 247 | /** |
|
| 248 | * {@inheritdoc} |
|