From d9e0849326c4eef74b1477464076165d8697facd Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Wed, 9 Oct 2019 15:48:40 +0530 Subject: [PATCH] fix: (travis) database priviledges to users --- .travis.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 99a398fc93..e7c272a0f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,12 +63,6 @@ install: - mysql -u root -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'" - mysql -u root -e "GRANT ALL PRIVILEGES ON \`test_frappe_consumer\`.* TO 'test_frappe'@'localhost'" - - mysql -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'" - - mysql -u root -e "FLUSH PRIVILEGES" - - - psql -c "CREATE DATABASE test_frappe_consumer" -U postgres - - psql -c "CREATE USER test_frappe WITH PASSWORD 'test_frappe'" -U postgres - - mysql -u root -e "CREATE DATABASE test_frappe_producer" - mysql -u root -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'" - mysql -u root -e "GRANT ALL PRIVILEGES ON \`test_frappe_producer\`.* TO 'test_frappe'@'localhost'" @@ -76,6 +70,9 @@ install: - mysql -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'" - mysql -u root -e "FLUSH PRIVILEGES" + - psql -c "CREATE DATABASE test_frappe_consumer" -U postgres + - psql -c "CREATE USER test_frappe WITH PASSWORD 'test_frappe'" -U postgres + - psql -c "CREATE DATABASE test_frappe_producer" -U postgres - psql -c "CREATE USER test_frappe WITH PASSWORD 'test_frappe'" -U postgres