polaris/update_db_schema.bat

6 lines
213 B
Batchfile
Raw Normal View History

2018-10-07 01:13:44 +00:00
cargo install diesel_cli --no-default-features --features "sqlite-bundled"
mkdir tmp
diesel --database-url tmp/print-schema.sqlite setup
diesel --database-url tmp/print-schema.sqlite migration run
rmdir /q /s tmp