| 12345678910111213141516171819202122232425262728 |
- <?php
- use yii\db\Migration;
- /**
- * Class m230131_203636_ajuste_dependencias
- */
- class m230131_203636_ajuste_dependencias extends Migration {
- /**
- * {@inheritdoc}
- */
- public function safeUp() {
- $this->addColumn('Dependencia', 'estatus', $this->boolean());
- $this->addColumn('Evento', 'redSocial', $this->string(100));
- $this->alterColumn('Evento', 'nombre', $this->string(500));
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown() {
-
- $this->alterColumn('Evento', 'nombre', $this->string(255));
- $this->dropColumn('Evento', 'redSocial');
- $this->dropColumn('Dependencia', 'estatus');
- }
- }
|