archetype-resources..scripts.create-test-databases.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-mvc-react-archetype
Show all versions of spring-mvc-react-archetype
A Maven Archetype for projects using Spring MVC, and React + Redux.
#!/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