v3.1
migrator v3.1 contains the following changes:
-
support for SQL scripts - these are special migrations which are applied everytime migrator runs, they are ideal for things like creating and executing triggers and/or stored procedures. SQL scripts are optional. An sample configuration looks like this:
singleScripts: - config-scripts tenantScripts: - tenants-scripts
-
support for both relative and absolute paths in migrator yaml:
baseDir
-
IMPORTANT migrator v3.1 contains non-backward compatibile changes to the configuration yaml file. All existing configuration files must be updated as below:
1
singleSchemas
renamed tosingleMigrations
2tenantSchemas
renamed totenantMigrations
An example of a valid v3.1 configuration file including newly added support for SQL script is as follows:
singleMigrations: - public - ref - config tenantMigrations: - tenants singleScripts: - config-scripts tenantScripts: - tenants-scripts