Comments (4)
Not that I know of. Do you have a test migration (preferably for H2) that I can use?
from flyway-sbt.
Working with a single migration, with the option flywayIgnoreMissingMigrations
explicitly set to false
(which appears to be the default, anyway).
In file V20181018__create_foo.sql
:
CREATE TABLE test_user (
name VARCHAR(25) NOT NULL,
PRIMARY KEY(name)
);
Running the migration works without issue. However, if I delete the migration file after it has been run and try to run the migrations again, I only receive a warning and the migration task passes without error.
Researching this issue; it appears that the flyway option ignoreFutureMigrations
produces the behavior I'm looking for when I use the CLI tool. However, I couldn't get the sbt version of this option to work as I expected (it didn't seem to have any affect). For now, I will use the flyway CLI tool as it appears to do what I need.
from flyway-sbt.
Thanks! I'll make a test case and dig in to it.
from flyway-sbt.
I have refactored the logic for setting migration parameters. Seems that ignoreFutureMigrations
setting got lost in some deprecation. Can you check if the fail-on-error
branch fixes this? You can sbt publishLocal
and use 5.2.1-SNAPSHOT
for the plugin version. If this fails, I will set up a more complex test case against a persistent database.
from flyway-sbt.
Related Issues (20)
- Move documentation to the docs sub directory of this repo and publish from there. HOT 1
- flywayInfo doesn't log anything? HOT 3
- Update flyway to 5.2.4 HOT 1
- Unable to resolve location classpath:db/migration HOT 5
- Bump flyway to 6.0.7 HOT 1
- H2 support removed by mistake? #2467 HOT 1
- Use scala-steward? HOT 1
- Not able to run command line options in sbt shell
- flyway-sbt version 6.1.4 not found
- Fly way sbt not working when sbt.version in project/build.properties is 1.2.8 HOT 1
- How to use environment variables on sbt flyway plugin? HOT 1
- Missing Tasks
- Version 6.4.3 is not available on maven central HOT 1
- Update to Flyway 6.5.7 HOT 2
- New releases HOT 4
- Add support for FLYWAY_CONFIG_FILES option in build.sbt HOT 1
- Update to latest Flyway version (9.22.0) HOT 1
- Add repo to scala-steward
- Proposing to move this repo to the SBT org HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flyway-sbt.