| 123456789101112 |
- <?php
- use Phinx\Migration\AbstractMigration;
- class AddVoidFieldsToTestTable extends AbstractMigration {
- public function change() {
- $this->table("test")
- ->addColumn("void_primary", "boolean", ["signed" => false, "default" => "0", "after" => "void"])
- ->addColumn("void_secondary", "boolean", ["signed" => false, "default" => "0", "after" => "void_primary"])
- ->update();
- }
- }
|