[feature] Programmatic migrations and/or documentation for it
See original GitHub issueIs your feature request related to a problem? Please describe. There doesn’t seem to be an “easy” way to programmatically migrate (At least not documented).
Describe the solution you’d like Something like:
val config = DbConfig()
config.migrate()
(probably a bit more complex, but at least an easy and documented API)
In that case spitting the core/API from the plugin would probably be nice too.
Describe alternatives you’ve considered I’ve tried to look at the plugin and reproduce it but it looks quite complicated.
Additional context I’m trying to use it in spring but I’d like to make migrations automatically, because (semi-)manually might not be feasible in many contexts.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Migrating Room databases | Android Developers
Automated migrations. Automatic migration specifications. Manual migrations; Test migrations. Export schemas; Test a single migration; Test all migrations.
Read more >Database migrations. CLI and Golang library. - GitHub
Migrate reads migrations from sources and applies them in correct order to a database. Drivers are "dumb", migrate glues everything together and makes...
Read more >Scripting migrations with the Contentful CLI
This tutorial details how to use the Contentful CLI to script changes to a content model and entries in a structured and reproducible...
Read more >node-pg-migrate
Postgresql database migration management tool for node.js. ... Looking for v3 docs? see v3 branch. Installation. $ npm install node-pg-migrate pg.
Read more >code-first DB Migrations - ServiceStack Docs
We'll use this feature in our 2nd migration for its Data Model changes where we want to: Add a new Code VARCHAR column...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ll have a look at it
So what I came up with as probably working is something like this:
You can’t implement it externally, because everything on the
VersionServiceandAbstractMigration.connectionis internal, but it should work if added inside the library.