Sha256: 19b76b3e815186ecda4e9c8712c44e845d5728617d5a61569ee6ad2c007b2500

Contents?: true

Size: 864 Bytes

Versions: 90

Compression:

Stored size: 864 Bytes

Contents

SCHEMA="pact_broker"
set -e
# mysql mysql -h localhost -u root -e "select 'drop table "' || tablename || '" cascade;' from pg_tables;'"
mysql mysql -h localhost -u root -e 'DROP DATABASE pact_broker;'
mysql mysql -h localhost -u root -e 'CREATE DATABASE pact_broker;'
mysql mysql -h localhost -u root -e "GRANT ALL ON pact_broker.* TO 'pact_broker'@'%' identified by 'pact_broker';"

ip=$(ifconfig en0 | sed -n -e '/inet/s/.*inet \([0-9.]*\) netmask .*/\1/p')
echo ""
echo "run the following command to set your environment variables:"
echo "export PACT_BROKER_DATABASE_USERNAME=pact_broker"
echo "export PACT_BROKER_DATABASE_PASSWORD=pact_broker"
echo "export PACT_BROKER_DATABASE_NAME=${SCHEMA}"
echo "export PACT_BROKER_DATABASE_HOST=${ip}"
echo "To test:"
echo "mysql -upact_broker -ppact_broker -hlocalhost"

DATABASE_ADAPTER=mysql bundle exec rake db:migrate

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
pact_broker-2.59.1 script/recreate-mysql-db.sh
pact_broker-2.59.0 script/recreate-mysql-db.sh
pact_broker-2.58.3 script/recreate-mysql-db.sh
pact_broker-2.58.2 script/recreate-mysql-db.sh
pact_broker-2.58.0 script/recreate-mysql-db.sh
pact_broker-2.57.0 script/recreate-mysql-db.sh
pact_broker-2.56.1 script/recreate-mysql-db.sh
pact_broker-2.56.0 script/recreate-mysql-db.sh
pact_broker-2.55.0 script/recreate-mysql-db.sh
pact_broker-2.54.0 script/recreate-mysql-db.sh
pact_broker-2.53.0 script/recreate-mysql-db.sh
pact_broker-2.52.2 script/recreate-mysql-db.sh
pact_broker-2.52.1 script/recreate-mysql-db.sh
pact_broker-2.52.0 script/recreate-mysql-db.sh
pact_broker-2.51.0 script/recreate-mysql-db.sh
pact_broker-2.50.1 script/recreate-mysql-db.sh
pact_broker-2.50.0 script/recreate-mysql-db.sh
pact_broker-2.49.0 script/recreate-mysql-db.sh
pact_broker-2.48.0 script/recreate-mysql-db.sh
pact_broker-2.47.1 script/recreate-mysql-db.sh