Skip to content

Commit

Permalink
[#13002] - Trying the different db creation
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed May 15, 2019
1 parent 4e60e5b commit 66a6201
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/_ci/setup-dbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
PROJECT_ROOT=$(readlink -enq "$(dirname $0)/../../")

echo -e "Create MySQL database..."
mysql -u root -e "CREATE DATABASE IF NOT EXISTS gonano charset=utf8mb4 collate=utf8mb4_unicode_ci;"
mysql -u root -e "CREATE DATABASE IF NOT EXISTS phalcon_test charset=utf8mb4 collate=utf8mb4_unicode_ci;"
cat "${PROJECT_ROOT}/tests/_data/assets/db/schemas/mysql_schema.sql" | mysql -u root phalcon_test
echo -e "Done\n"

echo -e "Create PostgreSQL database..."
psql -c 'create database gonano;' -U postgres
psql -c 'create database phalcon_test;' -U postgres
psql -U postgres phalcon_test -q -f "${PROJECT_ROOT}/tests/_data/assets/db/schemas/postgresql_schema.sql"
echo -e "Done\n"
Expand Down

0 comments on commit 66a6201

Please sign in to comment.