0% found this document useful (0 votes)
17 views1 page

Flyway Migration Guide

The document outlines the steps to perform Flyway migrations, starting from downloading and extracting Flyway to verifying the migration in SQL Server. It includes configuring the Flyway settings, creating migration scripts, and executing the migration command. Finally, it suggests verifying the migration results using SQL queries in SQL Server Management Studio.

Uploaded by

Kaviya Ammu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

Flyway Migration Guide

The document outlines the steps to perform Flyway migrations, starting from downloading and extracting Flyway to verifying the migration in SQL Server. It includes configuring the Flyway settings, creating migration scripts, and executing the migration command. Finally, it suggests verifying the migration results using SQL queries in SQL Server Management Studio.

Uploaded by

Kaviya Ammu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Flyway Migration Steps

1. Step 1: Download and extract Flyway from:


(https://flywaydb.org/download)
2. Step 2: Check Installed
Open terminal or command prompt in your Flyway directory: type flyway.cmd info
3. Step 3: Configure Flyway (flyway.conf)
Inside the Flyway folder, create or edit conf/flyway.conf:

[flyway]
locations = ["filesystem:migrations"]
[environments.default]
locations = ["filesystem:migrations"]
url="jdbc:sqlserver://localhost:1433;databaseName=YourDB"
user="your_username"
password="your_password"
4. Step 4: Create a new folder as Migration
Example: flyway/Migration/V1__testmigrate
Save this file inside your flyway/Migration folder.
5. Step 5: Wants to Create Migration Scripts as you need migrate
Example: alter table ...
Place these files in the sql folder under Flyway.
6. Step 6: Run the Migration
Open command prompt in your Flyway directory:
> flyway migrate
7. Step 7: Verify in SQL Server
Open SQL Server Management Studio and run:
SELECT name FROM sys.procedures;
SELECT * FROM flyway_schema_history;

You might also like