Architecture Diagram
Published 04 February 2023
One system | Different systems for Continuous Integration (CI) and Release Management (RM) |
---|---|
Legend: Flyway Desktop (FWD) - Version control your database objects, generate migration scripts and validate deploymentsClient machine - This is where the developer works. This machine needs to be able to access the development database (e.g., using your database IDE) and the Version Control System (VCS) (e.g., using a VCS client like GitHub Desktop or Sourcetree). This is where Flyway Desktop is installed.
Using Docker is recommended because the image comes with all the prerequisites and nothing needs to be installed/maintained on your agents. |
Sample Process Workflow - Database development and deployment with Flyway Enterprise
Starting in the bottom left:
- Work directly against your development database in your preferred IDE.
- In Flyway Desktop, see what has changed. Save the object level and static data SQL scripts to disk.
- Optional - If you wish to use migration scripts for deployments, generate versioned and undo migration scripts on disk.
- Use Flyway Desktop or your own VCS client to version control these scripts.
- Optional - Create a Pull Request (PR) so the database changes and optional migration scripts are reviewed. Code analysis and database unit testing can be ran to catch issues early.
- Optional - Use your CI/CD system to generate a report of changes, check for drift (changes that happened outside the pipeline, e.g., hot fix), run code analysis and other testing (unit, integration, performance, etc.).
- Use your CI/CD system to deploy your database changes to your downstream environments (QA, UAT, Prod). Optional - Set up a manual intervention before going to Prod, so releases can be reviewed and pushed on your time.
- Optional - Refresh your development database using Redgate Test Data Manager (TDM) with realistic prod-like datasets, while keeping your prod data safe.
- Repeat step 1.
Next steps:
- Watch our Redgate University Courses
- Download the installers
- Follow the Flyway Implementation Checklist