cooked/scripts/migrate

11 lines
261 B
Plaintext
Executable File

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