| 123456789101112 |
- <?php
- use Phinx\Migration\AbstractMigration;
- class AddDrivingFieldsToUserTable extends AbstractMigration {
- public function change() {
- $this->table("user")
- ->addColumn("has_driving_licence", "boolean", ["signed" => false, "default" => 0, "after" => "phone"])
- ->addColumn("has_car", "boolean", ["signed" => false, "default" => 0, "after" => "has_driving_licence"])
- ->update();
- }
- }
|