20230302225237_add_driving_fields_to_user_table.php 394 B

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