From e375b92406706d9317dca8af6dcbbb54e93f8d19 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Sun, 25 Dec 2022 21:42:07 +0100 Subject: [PATCH] fix for #944 --- tests/fixtures/create_mysql.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fixtures/create_mysql.sql b/tests/fixtures/create_mysql.sql index b77b194f..713bd281 100644 --- a/tests/fixtures/create_mysql.sql +++ b/tests/fixtures/create_mysql.sql @@ -1,9 +1,9 @@ -- cat create_mysql.sql | sudo mysql -- -DROP USER 'php-crud-api'@'localhost'; -DROP DATABASE `php-crud-api`; +DROP USER IF EXISTS 'php-crud-api'@'localhost'; +DROP DATABASE IF EXISTS `php-crud-api`; -- CREATE DATABASE `php-crud-api` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE USER 'php-crud-api'@'localhost' IDENTIFIED BY 'php-crud-api'; GRANT ALL PRIVILEGES ON `php-crud-api`.* TO 'php-crud-api'@'localhost' WITH GRANT OPTION; -FLUSH PRIVILEGES; \ No newline at end of file +FLUSH PRIVILEGES;