kellnr-migration
Stefan Hausotte (secana)
documentation
https://kellnr.io/documentation
README
Running Migrator CLI
Changing database scheme
- Change
src/iden.rs.
- Create new migration under
src/m20220101_00000XX_create_table.rs.
- Add the migration in
src/lib.rs.
- Apply migration (on postgres, sqlite will give wrong types in the
autogenerated entities, application by
cargo run in migration directory
may fail, while running the whole kellnr succeeds).
- Generate new entities running
sea-orm-cli generate entity -u postgresql://admin:admin@127.0.0.1/kellnr_dbpostgresql://admin:admin@127.0.0.1/kellnr_db (adjust this command
appropriately) in the src/m20220101_00000XX_create_table_entities
directory.
- Copy entities to
../entity/src (mod.rs shall go to lib.rs).
Commit count: 1718
cargo fmt