#!/bin/bash
cd /tmp/out/app
mysql -uroot -e "DROP DATABASE brambo_test; CREATE DATABASE brambo_test CHARACTER SET utf8mb4;"
mysql -ubt -pbtpass -h127.0.0.1 brambo_test < sql/schema.sql
php tools/seed.php > storage/pins.txt
mysql -ubt -pbtpass -h127.0.0.1 brambo_test -e "INSERT INTO suppliers (nama) VALUES ('PAK HASAN'),('PUTRI SALSA')"
