20240603090013_add_void_fields_to_test_table.php 387 B

123456789101112
  1. <?php
  2. use Phinx\Migration\AbstractMigration;
  3. class AddVoidFieldsToTestTable extends AbstractMigration {
  4. public function change() {
  5. $this->table("test")
  6. ->addColumn("void_primary", "boolean", ["signed" => false, "default" => "0", "after" => "void"])
  7. ->addColumn("void_secondary", "boolean", ["signed" => false, "default" => "0", "after" => "void_primary"])
  8. ->update();
  9. }
  10. }