20191110184617_add_year_cycle_month_field.php 351 B

12345678910111213
  1. <?php
  2. use Phinx\Db\Adapter\MysqlAdapter;
  3. use Phinx\Migration\AbstractMigration;
  4. class AddYearCycleMonthField extends AbstractMigration {
  5. public function change() {
  6. $table = $this->table("customer");
  7. $table
  8. ->addColumn("year_cycle_month", "integer", ["limit" => MysqlAdapter::INT_TINY, "signed" => false, "null" => true])
  9. ->update();
  10. }
  11. }