cooked/scripts/migrate
2024-10-31 21:01:29 +01:00

11 lines
229 B
Plaintext
Executable File

export DATABASE_URL=postgres://postgres@localhost/cooked
psql postgres postgres -c 'DROP DATABASE cooked'
psql postgres postgres -c 'CREATE DATABASE cooked'
cargo build -p migration
./target/debug/migration
./scripts/seed.sh