20221224150722_add_vat_number_field_to_customer_table.php 318 B

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