Bugfix
Detail
#27697
Automatic data migration performs migrations to non-configured modules
For data migration, it is currently necessary that the configuration associated with the module contains an entry in which the migration folder is located:
<config service-class="com.top_logic.knowledge.service.migration.MigrationService"> <instance> <modules> <module name="tl" /> </modules> </instance> </config>
Problem
The configuration is not taken into account when the configurations to be executed are calculated. Since the configuration is used in other places, it can happen that migrations are executed directly when booting on an empty database.
Test
- Create a folder and a migration file in a module in which no migration folder is configured.
- Boot the application with an empty database.
- Expectation: No migration is executed.