20210713222705_change_test_value_value_field_nullable.php 290 B

123456789101112131415
  1. <?php
  2. use Phinx\Migration\AbstractMigration;
  3. class ChangeTestValueValueFieldNullable extends AbstractMigration {
  4. public function up() {
  5. $this->table("test_value")
  6. ->changeColumn("value", "string", ["limit" => 200, "null" => true])
  7. ->update();
  8. }
  9. public function down() {
  10. }
  11. }