m240918_202603_Agregar_Columna_Estatus_InventarioHerramienta.php 783 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use yii\db\Migration;
  3. /**
  4. * Class m240918_202603_Agregar_Columna_Estatus_InventarioHerramienta
  5. */
  6. class m240918_202603_Agregar_Columna_Estatus_InventarioHerramienta extends Migration
  7. {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function safeUp()
  12. {
  13. $this->addColumn('HerramientaInventario', 'estatus', $this->string(50));
  14. }
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function safeDown()
  19. {
  20. $this->dropColumn('HerramientaInventario', 'estatus');
  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 "m240918_202603_Agregar_Columna_Estatus_InventarioHerramienta cannot be reverted.\n";
  30. return false;
  31. }
  32. */
  33. }