m241014_174716_Descripcion_posiblemente_null_en_Incidente.php 797 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. use yii\db\Migration;
  3. /**
  4. * Class m241014_174716_Descripcion_posiblemente_null_en_Incidente
  5. */
  6. class m241014_174716_Descripcion_posiblemente_null_en_Incidente extends Migration
  7. {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function safeUp()
  12. {
  13. $this->alterColumn('Incidente', 'descripcion', $this->string()->null());
  14. }
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function safeDown()
  19. {
  20. $this->alterColumn('Incidente', 'descripcion', $this->string()->notNull());
  21. }
  22. /*
  23. // Use up()/down() to run migration code without a transaction.
  24. public function up()
  25. {
  26. }
  27. public function down()
  28. {
  29. echo "m241014_174716_Descripcion_posiblemente_null_en_Incidente cannot be reverted.\n";
  30. return false;
  31. }
  32. */
  33. }