| 123456789101112 |
- <?php
- declare(strict_types=1);
- use Phinx\Migration\AbstractMigration;
- final class AddNicknameFieldToLocationTable extends AbstractMigration {
- public function change(): void {
- $this->table("location")
- ->addColumn("nickname", "string", ["after" => "name", "null" => true])
- ->update();
- }
- }
|