20211117125825_increase_challenge_description_field_length.php 306 B

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