All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources..scripts.create-test-databases.sh Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
#!/bin/bash
#
# Creates the test databases.
#
# This script requires a MySQL service, with the default super user, where the test 
# databases will be created.

set -o nounset
set -e

# MySQL tables
mysql -e "create database IF NOT EXISTS ${artifactId.replace("-", "_")};" -uroot

# PostgreSQL tables
psql -c 'create database ${artifactId.replace("-", "_")};' -U postgres

exit 0




© 2015 - 2025 Weber Informatics LLC | Privacy Policy