Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2 KB

UPGRADE.md

File metadata and controls

68 lines (45 loc) · 2 KB

UPGRADE

2.0.0

Permission changed

The permissions has been implemented in the redirect bundle run the following SQL to give your roles add, edit, delete permissions:

UPDATE `se_permissions` SET `permissions` = 127 WHERE context = `sulu.modules.redirects`;

Database change

To support multiple webspaces a sourceHost field was added to the RedirectRoute entity and the following database migration need to be run:

ALTER TABLE `re_redirect_routes` ADD `sourceHost` VARCHAR(191) DEFAULT NULL;
DROP INDEX `UNIQ_3DB4B4315F8A7F73` ON `re_redirect_routes`;
CREATE UNIQUE INDEX `UNIQ_3DB4B4315F8A7F73738AA078` ON `re_redirect_routes` (`source`, `sourceHost`);

Some interfaces changed

  • ConverterInterface
  • WriterInterface
  • RedirectRouteManagerInterface
  • RedirectRouteRepositoryInterface

Rest Api changed

The resourceKey of the _embedded has changed from redirect-routes to redirect_routes.

Database changes

To support utfmb4 which is default in sulu 2.0 we need the shorten indexed fields:

ALTER TABLE `re_redirect_routes` CHANGE `id` `id` VARCHAR(36) NOT NULL;
ALTER TABLE `re_redirect_routes` CHANGE `source` `source` VARCHAR(191) NOT NULL;

1.0

Import action changed

To support permissions the RedirectImportController::importAction has been renamed to RedirectImportController::postAction.

Permission changed

The permissions has been implemented in the redirect bundle run the following SQL to give your roles add, edit, delete permissions:

UPDATE `se_permissions` SET `permissions` = 127 WHERE context = `sulu.modules.redirects`;

Database change

To support multiple webspaces a sourceHost field was added to the RedirectRoute entity and the following database migration need to be run:

ALTER TABLE `re_redirect_routes` ADD `sourceHost` VARCHAR(255) DEFAULT NULL;
DROP INDEX `UNIQ_3DB4B4315F8A7F73` ON `re_redirect_routes`;
CREATE UNIQUE INDEX `UNIQ_3DB4B4315F8A7F73738AA078` ON `re_redirect_routes` (`source`, `sourceHost`);