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