From 929feb6e37c8fdeecd478a9d711950ab6bf12fcc Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 12 Nov 2017 13:09:56 +0100 Subject: [PATCH] add the correct rights for the test database --- sql/01_create_database.sql | 6 ++++++ sql/04_remove_database.sql | 2 ++ 2 files changed, 8 insertions(+) diff --git a/sql/01_create_database.sql b/sql/01_create_database.sql index 969aab8..029f9d1 100644 --- a/sql/01_create_database.sql +++ b/sql/01_create_database.sql @@ -11,4 +11,10 @@ create database if not exists webshopdb; grant all on webshopdb.* to 'webshop'@'localhost' identified by '2YKtY53F3HDDzPyExAaSh3jdVNh6VN'; +grant all on test_webshopdb.* to + 'webshop'@'localhost' + identified by '2YKtY53F3HDDzPyExAaSh3jdVNh6VN'; +grant all on django_migrations.* to + 'webshop'@'localhost' + identified by '2YKtY53F3HDDzPyExAaSh3jdVNh6VN'; flush privileges; diff --git a/sql/04_remove_database.sql b/sql/04_remove_database.sql index 43f3630..5429221 100644 --- a/sql/04_remove_database.sql +++ b/sql/04_remove_database.sql @@ -5,4 +5,6 @@ -- MariaDB 10.1.26 drop database if exists webshopdb; +drop database if exists test_webshopdb; +drop database if exists django_migrations; drop user if exists webshop@localhost;