Class RenameDefaultLanguageColumns

java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.install.fragments.RenameDefaultLanguageColumns
All Implemented Interfaces:
InstallFragment

@Component public class RenameDefaultLanguageColumns extends Object implements 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.