Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding configuration for the flyway-maven-plugin #29

Merged

Conversation

yan-3005
Copy link
Contributor

@yan-3005 yan-3005 commented Mar 3, 2024

Describe your changes

Adding configuration for the flyway-maven-plugin

Manual Test Scenarios and Output

  1. Maven Goal: flyway:migrate

    Output:

[INFO] Successfully validated 1 migration (execution time 00:00.036s)
[INFO] Creating Schema History table "public"."flyway_schema_history" ...
[INFO] Current version of schema "public": << Empty Schema >>
[INFO] Migrating schema "public" to version "1.0.0 - init schema"
[INFO] Successfully applied 1 migration to schema "public", now at version v1.0.0 (execution time 00:00.133s)
  1. Maven Goal: flyway:info

    Output:

[INFO] Schema version: 1.0.0
[INFO] 
[INFO] +-----------+---------+-------------+------+---------------------+---------+----------+
| Category  | Version | Description | Type | Installed On        | State   | Undoable |
+-----------+---------+-------------+------+---------------------+---------+----------+
| Versioned | 1.0.0   | init schema | SQL  | 2024-03-03 22:33:29 | Success | No       |
+-----------+---------+-------------+------+---------------------+---------+----------+
  1. Maven Goal: mvn flyway:clean -Dflyway.cleanDisabled=false
    cleanDisabled by default is true inorder to avoid issues in the production database, so we have to disable it while executing the mvn goal

    Output:

[INFO] Successfully dropped pre-schema database level objects (execution time 00:00.000s)
[INFO] Successfully cleaned schema "public" (execution time 00:00.071s)
[INFO] Successfully cleaned schema "public" (execution time 00:00.024s)
[INFO] Successfully dropped post-schema database level objects (execution time 00:00.000s)

Issue ticket number and link

#18 Add configuration for the flyway-maven-plugin

Checklist before requesting a review

  • [ Yes ] I have performed a self-review of my code
  • [ Not a Core Feature (Just a Plugin Configuration) ] If it is a core feature, I have added thorough tests.
  • [ No Documentation Needed ] I have made corresponding changes to the documentation
  • [ Yes ] I used the given Project Style Guide

@Mom0aut
Copy link
Owner

Mom0aut commented Mar 3, 2024

Thanks for your contribution 😄

@Mom0aut Mom0aut merged commit f1f72a5 into Mom0aut:master Mar 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants