2.7 Migration Guide
In this document, we will see the major steps to migrate from 2.6 to 2.7.
| Please check the change log for detailed list of fixes, changes and improvements introduced in 2.7. |
Database migration
Migration scripts are available there.
Removal of TemplatePrintModel.template Field
| This is a major change requiring manual migration steps. |
The field TemplatePrintModel.template has been removed.
Migration Process
-
Identify files to remove from file system
Run the following SQL script on your database:
COPY ( SELECT mf.file_path FROM template_template_print_model model JOIN meta_file mf ON model.template = mf.id ) TO STDOUT; -
Save the output to a file named
/tmp/template-files-to-delete.txton the server storing the uploaded files. -
Delete the files using the migration script provided in the migration scripts folder.
Service Method Relocations
The following methods have been moved to different services:
| Method | From | To |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Method Signature Changes
| Class | Old Signature | New Signature |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Method Renames
| Class | Old Name | New Name |
|---|---|---|
|
|
|
Removed Classes and Methods
The following have been removed:
-
LibraryTemplateTemplateService.saveLibraryTemplate -
FileExportTools(deprecated helper) -
OutputFormatDtoclass -
ConsumptionService.getDocumentCountByMonth(deprecated) -
TemplatePrintModelService.checkTemplateFormat -
TemplatePrintModelController.checkTemplateFormatSupport
Removed Authentication Types
Support for multiple authentication types has been removed. The module now relies exclusively on JWT authentication.
The following have been removed:
-
Enumeration
ApiAuthConfig -
ApiLicenseConfig.AUTHandApiLicenseConfig.TENANT_UUID -
ApiLocalConfig.AUTHandApiLocalConfig.TENANT_UUID -
AppTemplateService.getApiAuthConfigandAppTemplateService.getApiTenantUuid -
AppTemplateController.configFileAuthApi -
Fields
AppTemplate.apiAuthandAppTemplate.apiTenantUuid
Removed PrintRequestService Methods
The following methods have been replaced:
| Removed | Replaced By |
|---|---|
|
|
|
|