mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 20:32:15 +00:00
15 lines
292 B
Bash
15 lines
292 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
echo "Create database"
|
|
psql -d postgres -c 'DROP DATABASE IF EXISTS kata;'
|
|
psql -d postgres -c 'CREATE DATABASE kata;'
|
|
|
|
./initialize.sh
|
|
|
|
echo "Add current code"
|
|
psql -d kata -f src/item.sql
|
|
psql -d kata -f src/new_item.sql
|
|
psql -d kata -f src/update_quality.sql
|