Class RenameDefaultLanguageColumns
java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.install.fragments.RenameDefaultLanguageColumns
- All Implemented Interfaces:
InstallFragment
This fragment iterates through all localized fields of all entity models
and renames the column from something like "label" to "label_de", where
"de" is the default language currently configured in `application.properties`.
This is done by creating a liquibase xml file containing one changeset per
rename with a proper precondition. The changeset id and file is always the
same, such that liquibase can skip the change after it has been run once
successfully.
-
Constructor Summary
ConstructorDescriptionRenameDefaultLanguageColumns
(IteratorFactory iteratorFactory, DataModelSupport dataModelSupport, ModuleManager moduleManager, SchemaService schemaService, MetaDataRegistry metaDataRegistry, L10N l10n) -
Method Summary
Modifier and TypeMethodDescriptioninstall
(InstallParameters params) Executes this fragments install routine and returns a report.
-
Constructor Details
-
RenameDefaultLanguageColumns
public RenameDefaultLanguageColumns(IteratorFactory iteratorFactory, DataModelSupport dataModelSupport, ModuleManager moduleManager, SchemaService schemaService, MetaDataRegistry metaDataRegistry, L10N l10n)
-
-
Method Details
-
install
Description copied from interface:InstallFragment
Executes this fragments install routine and returns a report. This will affect all modules.- Specified by:
install
in interfaceInstallFragment
- Returns:
- a report for this install fragment
-