M2M7P0.php 728 B

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