Questions tagged [flyway]
Flyway by Boxfuse is an open-source database migration tool. It strongly favors simplicity and convention over configuration.
1,996
questions
0
votes
0
answers
15
views
Problem in using default placeholder {flyway:filename} in repeatable migration scripts
I am having issues while using the filename default placeholder, in repeatable migrations. I get the error as ERROR: Failed to populate value for default placeholder: ${flyway:filename}
However, I am ...
0
votes
1
answer
21
views
How to connect to dockerized mysql database with flyway -
I am new to flyway, and want to use it against a mysql database in docker (through docker-compose). I receive an error related to the encryption. What baffles me, is that I can connect fine to it ...
1
vote
3
answers
51
views
Maven Flyway Plugin, Teams Edition, undo with cherryPick
I have a Maven project with the Flyway Plugin. This Project should test the function of Flyway with a PostgreSQL Database. I got the Testdrive for the Teams Edition. I am also able to execute every ...
0
votes
0
answers
12
views
What approaches can I take to validate Flyway migrations on existing data during testing?
I'm using Flyway and Spring Boot to perform migrations of my database on application startup, as well as Testcontainers to test the migration scripts during integration tests. This works great for ...
0
votes
0
answers
13
views
Flyway Spring Boot Integration - Pod Hanging Issue
We are trying to integrate Flyway with our Spring Boot apps. Its working fine for bunch of services but for one service it always brings up all pods except one (we have 3 replica pods for K8s). Weird ...
0
votes
1
answer
20
views
Is it needed to stop Spring Boot application during Flyway migration?
I have Spring Boot application container deployed in k8s. And I have separate container with Flyway image. I need to make a migration in PostgreSQL DB. Do I need to stop the Spring Boot application ...
1
vote
0
answers
15
views
Quarkus - how to start flyway migration with gradle
I'm building a Auarkus application with Gradle. I don't want to do DB migration every time service is started, that's why I've set "quarkus.flyway.migrate-at-start=false".
Now, how can I ...
0
votes
1
answer
88
views
Hibernate fails to validate in-memory h2 database after flyway migration using Spring-Boot
Hibernate fails to validate database schema, which is created by flyway migration. (database migration script is correct) Is this because of in-memory H2 database? It almost looks like hibernate ...
0
votes
0
answers
15
views
Migrate to a multi-node peer-to-peer replicated environment
We are looking to use Flyway to deploy database changes to a four-node peer-to-peer replicated Production environment. On each node the db schema/architecture is sharded horizontally across 11 ...
1
vote
1
answer
54
views
Spring Boot + Flyway + Testcontainers(mariaDB): Table "xxxx" doesn't exist
I use Testcontainers with mariaDB database in a Spring Boot project for unit testing. I recently upgraded Spring Boot from 2.4.4 to 2.6.6 and found out that the unit test started to fail. The ...
2
votes
1
answer
34
views
Subsequent calls to JPA failing in SpringBoot
I'm trying to execute tests but only the first call to findBy() is successful. Running with Spring Boot v2.6.7, Spring v5.3.19, hibernate jar = 5.6.8.
Application application = Application.builder()...
0
votes
1
answer
35
views
Found non-empty schema(s) "public" but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table
I know this has been asked previously but I am spinning in circles here....
I have a postgres 14 database and a Springboot application running flyway-db:7.13.0 and flyway-core:8.5.10
I am using RDS. I ...
0
votes
1
answer
24
views
flyway version number change issue
We have an application we inherited thats on version 500+, we are not sure why its such a high version, but so be it. We have been using Flyway for a few years on it now, and have multiple releases. ...
0
votes
0
answers
23
views
Migration from Flyway 4 to 8 SqlMigrationResolver
I am beginner programmer. I am working in project with flyway-core 4.0.3 and I am migrating it to flyway 8.0.5. One thing is left and I don't know how to migrate this. I am pasting a class - this is a ...
0
votes
0
answers
24
views
Flyway 8 filtering files basing on file name condition
Is it possible and how to filter sql files with specific names (for example only names that contains BB) ?
Standard way is to provide locations to flyway configuration. But locations points to some ...
1
vote
1
answer
33
views
Is it possible to automatically generate migration scripts by comparing db and code?
I’m seriously confused about how flyway generally works to maintain the db as a code. Suppose I have the following V0 script:
Create table student(
Name varchar(25)
)
That would be my initial db. ...
0
votes
1
answer
83
views
Flyway migration failed
In classpath:/db.migration have migrations V1__Strory_create.sql and V2__Task_create.sql but flyway dosen't see that and fall with msg
2022-05-02 17:28:07.993 INFO 45296 --- [ restartedMain]
c.c.c....
1
vote
2
answers
37
views
Can flyway be used to export DB schema to a git repo?
Let's say I want to schedule the export of the schema of a MS SQL Server database incrementally (whenever changes happen or at least periodically like once nightly) and store it in version control ...
0
votes
0
answers
17
views
flyway:: repair .yml not connect to the database but flyway-enable work
in my settings I can connect the flyway, it does the migrations more when I use the command maven flyway::repair it only works if I put the bank settings in pom.xml, I would like to have these ...
0
votes
0
answers
28
views
How to Get spid using flyway tool?
I am using a flyway tool to run SQL script. I have requirements where I need to return the SPID during the run time in the flyway. Are there any config parameters or variables which can return SPID?
0
votes
0
answers
15
views
Using SqlEncryptionService in java flyway migration
I am trying to write a java flyway migration where I am trying to update the column values by encrypting using SqlEncryptionService. But I am facing an issue since the call which is made to the ...
1
vote
0
answers
31
views
Flyway Java based migration on multiple shards
Followed this blog for creating simple java based migrations in flyway with one datasource connection. But in application, we will be having multiple shards and have feasibility to choose migration to ...
0
votes
1
answer
26
views
Is it possible to apply versioning on just data.sql and not schema.sql for Flyway in Spring Boot?
I am trying to use Flyway. I understand that it is used for migration purposes. My use case is to load data from data.sql in my classpath. And I will want to add more data so I will need another data....
0
votes
0
answers
66
views
Unix socket connection in postgres docker
I'm using flyway to version the state of my DB and the postgres docker. I'm trying to run a script in /docker-entrypoint-initdb.d/ that I want to run before postgres listens on TCP. The script creates ...
0
votes
0
answers
25
views
how to change the table name in flyway [duplicate]
Now I want to change the MySQL 8.0.24 table name in flyway, this is the sql command:
RENAME TABLE package_exception TO package_event;
how to handle the table package_exception not exists? how to ...
0
votes
1
answer
46
views
SQLException returned null for URL:<no value> while injecting JDBC connection URL with flywaydb plugin
I am getting below exception while running integration tests for my service:
ERROR o.a.tomcat.jdbc.pool.ConnectionPool: Unable to create initial connections of pool.
Caused By: java.sql.SQLException: ...
0
votes
0
answers
21
views
Why wont this code replicate the database schema/tables using flyway and docker for mysql?
I want to replicate a database in my sql files, but it seems like nothing will populate when I open mysql and submit the credentials.
here is my docker-compose.yaml file:
flyway:
image: flyway/...
0
votes
0
answers
35
views
Why wont this code take the database schema using flyway and migrate it to docker container database?
I have the following code to take an existing schema "config_data" and apply it to a docker container database "db":
here is my code, it all happens inside the docker-compose.yaml ...
0
votes
0
answers
62
views
How to migrate schema using Flyway into a docker container database to create an isolated testing environment?
I want to migrate the schemas I have for the tables in my db into a docker container I've made. First time using flyway and it seems entirely possible for it to be able to migrate the schema over and ...
0
votes
1
answer
40
views
how to create the database inside the Postgres docker image using flyway
I have docker springboot application which is using docker Postgres database and flyway as a database migration tool but when I run docker-compose up it throws exception that
org.postgresql.util....
0
votes
0
answers
50
views
Flyway custom locations: Unable to obtain inputstream for resource
I have default flyway locaiton (db/migration) in my project and it works fine until I use locations property to set path explicitly. For example,
spring:
flyway:
locations:
-filesystem:./db/...
0
votes
0
answers
27
views
Flyway does not execute new script
I'm using flyway community Edition 8.4.x and my new script does not executed, I don't know why.
@Configuration
public class FlywayConfig {
@Bean
public FlywayMigrationStrategy flywayRepair() {
...
0
votes
0
answers
22
views
Flyway compatibility with Amazon Aurora Global?
I understand flyway works with Amazon Aurora. Looked at some threads here and tried it as well. Im trying to understand if Flyway works with Aurora Global as well? We are trying to migrate to Global ...
0
votes
0
answers
40
views
How to set SQLite Pragmas with Flyway/ Quarkus
I am trying to set up a Quarkus server that connects to a SQLite database in Java application. The database migration scripts are handled with Flyway.
Unfortunately I am not able to set Pragma ...
0
votes
0
answers
55
views
FlywaySqlException: Unable to check whether table "flyway_schema_history" exists
I'm trying to build a spring application that is using Spanner. The build was working properly until I bumped the spring version to 2.6.2 and then I started to see this error.
this is part of how I ...
0
votes
1
answer
63
views
Using Flyway for two databases, but only one at a time
I'm testing out PostgreSQL and CockroachDB with my application. I've got it such that I can run my application with either PostgreSQL OR CockroachDB. Is it possible to set Flyway up such that I can ...
0
votes
1
answer
86
views
Tests fail to run with H2 database on Micronaut project with Flyway migrations
I've got a unit test suite in a Micronaut 2.0.3 project that's supposed to run on an H2 DB. Since I started using Flyway for my DB migrations, I'm getting an error coming from H2 being unable to run ...
0
votes
0
answers
68
views
Error when run docker-compose with postgresql, spring boot with flyway
I'm writing an application in Spring Boot. I use dependency like below:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>...
0
votes
2
answers
87
views
Cannot connect to database with flyway through Maven
I am trying to setup flyway for a project with maven and i am unable to make it work. I have the correct configuration (db url, username, password) and i tried connecting to the DB with MySQL ...
0
votes
0
answers
34
views
SQL join multiple values on same column row
My problem is as follows.
I have a database with certain Healthcare services. These services can have 1 or more emails that are stored in HealthcareServiceEmail with a foreign key referencing ...
0
votes
1
answer
31
views
SQL: How to insert multiple values in a cell from existing rows?
My problem is as follows.
I have a database with certain Healthcare services. These services can have 1 or more emails that are stored in HealthcareServiceEmail with a foreign key referencing ...
0
votes
0
answers
45
views
Environment specific migrations cause issues with copying a database to different environments
We've made use of environment specific migrations for things like seeding data, data correction, applying table grants. There are times when we'd like to take a copy of production, for example, and ...
0
votes
0
answers
31
views
Native Queries and Audit table
I'm working with a spring project. It uses Hibernate Envers for entity auditing and Flyway for db migration. For instance If I insert values into entity that is tracked by Envers using flyway scripts (...
2
votes
1
answer
112
views
Flyway-Databricks integration
I am exploring Flyway for Database migration. I want to integrate it with Databricks. Have performed some tasks and trying to overcome the following error.
Till now I have performed
Flyway setup on ...
1
vote
0
answers
43
views
Does flyway support AWS Timestream?
Does anyone know if flyway supports migrations for AWS Timestream? I don't see Timestream in the docs as a supported database, but wanted to double check.
If not, can anyone suggest a CI/CD way to ...
0
votes
1
answer
344
views
Flyway - libjvm.dylib issue in MacOs
While I was setting up flyway on my Mac, when I tried to execute the command ./flyway info to verify all the configuration I've done properly, I used to get error saying -
libjvm.dylib” cannot be ...
0
votes
0
answers
42
views
Quarkus Flyway add new Database Type
How can I add an new Database Type in flyway?
I tried to create a new maven plugin project which have java driver classes, with the same structor as into the flyway package.
But it will not load my ...
0
votes
1
answer
56
views
Flyway: include external script
There is maven flyway configuration that point to a general folder with all the migration scripts. Scripts have common patter like "V1.2.3.4__description". Also there are other .sql scripts ...
0
votes
1
answer
102
views
How to use the variables defined in the flyway.conf file within it
I have a scenario for defining two parameters in a flyway.conf file with the following structure:
flyway.placeholders.parameter1: value1
flyway.placeholders.parameter2: $ {parameter1} _ value2
Can I ...
0
votes
2
answers
147
views
Connect Postgres db hosted in azure storage using docker
I am trying to connect the postgres database hosted in azure storage account from within the flyway, flyway is running as docker image in docker container
docker run --rm flyway/flyway -url=jdbc:...