m230131_203636_ajuste_dependencias.php 636 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use yii\db\Migration;
  3. /**
  4. * Class m230131_203636_ajuste_dependencias
  5. */
  6. class m230131_203636_ajuste_dependencias extends Migration {
  7. /**
  8. * {@inheritdoc}
  9. */
  10. public function safeUp() {
  11. $this->addColumn('Dependencia', 'estatus', $this->boolean());
  12. $this->addColumn('Evento', 'redSocial', $this->string(100));
  13. $this->alterColumn('Evento', 'nombre', $this->string(500));
  14. }
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function safeDown() {
  19. $this->alterColumn('Evento', 'nombre', $this->string(255));
  20. $this->dropColumn('Evento', 'redSocial');
  21. $this->dropColumn('Dependencia', 'estatus');
  22. }
  23. }