123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- use yii\db\Migration;
- /**
- * Class m241123_013948_Actualizar_Rubro
- */
- class m241123_013948_Actualizar_Rubro extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->addColumn('ObraRubro', 'descuento', $this->decimal(10,2));
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- $this->dropColumn('ObraRubro', 'descuento');
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "m241123_013948_Actualizar_Rubro cannot be reverted.\n";
- return false;
- }
- */
- }
|