m241123_013948_Actualizar_Rubro.php 680 B

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