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