UnInstall.php 655 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace addons\Authority;
  3. use Yii;
  4. use yii\db\Migration;
  5. use common\helpers\MigrateHelper;
  6. use common\interfaces\AddonWidget;
  7. /**
  8. * 卸载
  9. *
  10. * Class UnInstall
  11. * @package addons\Authority */
  12. class UnInstall extends Migration implements AddonWidget
  13. {
  14. /**
  15. * @param $addon
  16. * @return mixed|void
  17. * @throws \yii\base\InvalidConfigException
  18. * @throws \yii\web\NotFoundHttpException
  19. * @throws \yii\web\UnprocessableEntityHttpException
  20. */
  21. public function run($addon)
  22. {
  23. // MigrateHelper::downByPath([
  24. // '@addons/Authority/console/migrations/'
  25. // ]);
  26. }
  27. }
粤ICP备19079148号