Comments (6)
I ran into the same issue. What it ended up being for me was that my first migration script was creating the schema that I had configured in my schema field in database.json. Because this schema didn't exist until the first migration was run, the migrations table was created in the public schema the first time I ran db-migrate. On the next run, another migrations table was created in my configured schema, but because it is empty, all of my migrations are run all over again.
from pg.
I think it would be good if db-migrate-pg just checked if the schema specified in database.json exists, and if not then it should be created before the actual migrations start.
from pg.
@EyMaddis No you can't configure it via the database.json and currently you can't, but on the latest master branch there already is the rc config included which will allow you to do so via a .dbmigraterc config. About the behavior, this is really strange, can you provide me a full example to reproduce this?
from pg.
Bump. Completely same behavior as @justinnguyen describe. Any progress on that?
from pg.
Bump. I hit the same issue as @justinnguyen and @igorlysak hit.
from pg.
Any update on when the above PR will be merged in?
from pg.
Related Issues (20)
- Invalid SQL Syntax when generating Table with Foreign Key HOT 5
- Scope Configuration doesn't work with Postgres HOT 3
- Fails to assert pg version correctly
- [ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: self signed certificate
- supporting multiple host in connection string does not work. HOT 1
- Changelog is outdated
- Feature Request - env. variable for setting migrations table schema DATABASE_SCHEMA
- BUG: Schema option is not reflected
- "The driver you are using does not support the new state management." HOT 4
- Not able to add enum value through Migration script HOT 1
- The server does not support SSL connections HOT 1
- Failed to drop database! error: cannot drop the currently open database
- DELETE HOT 3
- Replace vows with supported test suite
- BUG: Support for Postgres 15 HOT 2
- broken version 1.2.3 HOT 2
- No such driver found HOT 11
- Lib broken in node v12 HOT 3
- ssl configs are not working HOT 1
- error: type "string" does not exist HOT 3
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 pg.