migrate.cr
migrate.cr copied to clipboard
A database migration solution 🚜
- [ ] More details about SQL files - [x] Migrate from micrate guide - [ ] Ready-to-paste `Cakefile` and `sam.cr`
I'm not sure if it's as easy as simply updating the `shards.yml` file: ```yaml dependencies: db: github: crystal-lang/crystal-db version: ~> 0.7.0 ``` **See also**: [Error resolving db (~> 0.7.0, ~>...
- [ ] `redo` should re-do the latest migration with optional `step` argument - [ ] `reset` should re-do *all* migrations - [ ] `drop` should migrate to zero (alternatives:...
For example, there could be a NoSQL database which accepts Lua calls as migrations (e.g. [Tarantool](https://github.com/vladfaust/tarantool-crystal)), a custom Migrator should be implemented then. Should move existing to `Migrate::SQL::Migrator` then?