Flyway Migration Guide
Flyway Migration Guide
[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;