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