This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Not able to work with tables created with Flyway in H2 database

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to flyway and struggling a bit to create tables using flyway in H2 database

I have created tables in my oracle Database using flyway script.

Now I want to perform some Junit test and want to create tables using Flyway script but not in
oracle Database instead I want to create this in H2 database (For unit test).

Flyway script used in my case is different both script have slightly different table structure.

Below is my project structure and configuration used





Below is the configuration present in src/main/resources folder

V1.0.0.0.001__tables.sql




application.properties

 

application-cca.properties






Below is the configuration present in src/test/resources folder

V1.0.0.0.001__tables.sql

   

test.properties

 

application-test.properties

 


I want that my junit should work independent of my src/resources but not able to achieve instead getting
below error whenever I run maven install




Either some time I get checksum related error.
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!