M2M6P0.php 726 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\App\Configuration\Addon\Update\Patch;
  3. use ModulesGarden\ProxmoxAddon\App\Configuration\Addon\Update\DefaultPatch;
  4. use ModulesGarden\ProxmoxAddon\Core\Helper;
  5. /**
  6. * Description of M2M6P0
  7. *
  8. * @author <slawomir@modulesgarden.com>
  9. */
  10. class M2M6P0 extends DefaultPatch
  11. {
  12. public function execute()
  13. {
  14. $this->up();
  15. if ($this->runSchema())
  16. {
  17. Helper\sl('logger')
  18. ->addDebug("Correctly installed update {$this->getVersion()} .", []);
  19. }
  20. else
  21. {
  22. Helper\sl('"errorManager"')
  23. ->addError(self::class, "Incorrectly installed update {$this->getVersion()} .", []);
  24. }
  25. }
  26. }