mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
14 lines
253 B
Bash
14 lines
253 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
|