Odyssey
2019040400_drop_cuadmquestselect.php
1 <?php
2 /* Notes:
3  * 1. Anything complicated needs to be done with SQL.
4  * 2. Always have a check to know if the migration needs to occur (up or down).
5  * 3. Use up() and down(), not change(), because of the SQL
6  */
7 use Phinx\Migration\AbstractMigration;
8 
9 /*
10  * Dropping the unecessary table cuadmquestselect
11  */
12 class DropCuAdmQuestSelect extends AbstractMigration {
13  public function up() {
14  if ($this->hasTable('cuadmquestselect')) {
15  $this->table('cuadmquestselect')->drop()->save();
16  }
17  }
18 
19  public function down() {
20  }
21 }