) DROP dbo.trigger_auth_item_child; GO SQL; $command->setSql($sql)->execute(); } if ($schema->getTableSchema($authManager->assignmentTable)) { $command->dropTable($authManager->assignmentTable)->execute(); } if ($schema->getTableSchema($authManager->itemChildTable)) { $command->dropTable($authManager->itemChildTable)->execute(); } if ($schema->getTableSchema($authManager->itemTable)) { $command->dropTable($authManager->itemTable)->execute(); } if ($schema->getTableSchema($authManager->ruleTable)) { $command->dropTable($authManager->ruleTable)->execute(); } // mdm/admin if ($schema->getTableSchema(Configs::menuTable())) { $command->dropTable(Configs::menuTable())->execute(); } if ($schema->getTableSchema(Configs::userTable())) { $command->dropTable(Configs::userTable())->execute(); } foreach ($migrations as $migration => $path) { $file = Yii::getAlias($path . '/' . $migration . '.php'); include_once $file; $migration = new $migration(); $migration->up(); }