20240611121226_add_sku_prefix_field_to_supplier_table.php 317 B

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