20240228203419_add_nickname_field_to_location_table.php 299 B

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