Skip to content

v3.1

Compare
Choose a tag to compare
@lukaszbudnik lukaszbudnik released this 22 Dec 17:08
c0804c1

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 to singleMigrations
    2 tenantSchemas renamed to tenantMigrations

    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