20210713213406_change_test_dts_fields_nullable.php 398 B

1234567891011121314151617
  1. <?php
  2. use Phinx\Migration\AbstractMigration;
  3. class ChangeTestDtsFieldsNullable extends AbstractMigration {
  4. public function up() {
  5. $this->table("test")
  6. ->changeColumn("dts_updated", "datetime", ["null" => true])
  7. ->changeColumn("dts_assigned", "datetime", ["null" => true])
  8. ->changeColumn("dts_verified", "datetime", ["null" => true])
  9. ->update();
  10. }
  11. public function down() {
  12. }
  13. }