Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Flyway is an open-source database migration tool and Snowflake is one of the database it supports. With the help of Flyway every time the need to evolve the database arises, whether structure (DDL) or reference data (DML), create new scripts with a version number higher than the current one, trigger the pipeline and the database upgrade completes automatically with the latest scripts.

Flyway Database Tool Setup

  1. Navigate to Tools Registry.

  2. Select ‘+ New Tool’ button.

  3. Locate the ‘Flyway Database’ tool and click ‘Select Tool’ button.

  4. Provide values for required fields and any additional info and click ‘Create’ button.

  5. With the new tool, navigate to the Connections tab to configure.

  6. Provide proper credentials to required fields and any additional information, then click ‘Save’ button.

  7. Once saved, click ‘Test Connection’ button to verify connection is successful.

  8. If connection is successful as indicated by button and log, proceed to pipeline setup.

Flyway Pipeline Setup

  1. Navigate to pipelines.

  2. Select ‘+ New Pipeline’ button to create a new pipeline.

  3. Select a template then proceed to Edit Workflow.

  4. In initial Step Setup, set tool as ‘Flyway Database’. Save and click settings cog to reconfigure in Step Configuration:

  • Flyway Database: Select the Snowflake account configured in the Tool Registry.

  • SCM Type: Select a Source Control Management type. Choose from Bitbucket, Gitlab and Github.

  • SCM Account: Select the Source Control Management tool configured in the Tool Registry.

  • Workspace/Project: Select the Workspace or Project within your SCM that hosts the Repository corresponding to the Snowflake Database.

  • Repository: Select the Repository within your selected SCM containing the scripts to be migrated.

  • Branch: Chose the branch that will be migrated.

  • Schema: Select the schemas that will be managed by Flyway.

  • Base Schema: The default schema that will host the Flyway schema history table.

  • Scripts Location: The location within SCM containing the SQL scripts.

  • Database: The Snowflake database where the migration will occur.

  • Warehouse: The Snowflake Compute warehouse to be utilized for this operation.

  • No labels