From c8abeb751fef36fb93448db08c7e0efbc67862f7 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Sat, 26 Nov 2022 18:15:19 +0100 Subject: [PATCH] .drone.yml and location.sql update --- .drone.yml | 6 ------ Sources/db_script/sql/location.sql | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index d8ae24a..7b753d9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -109,10 +109,4 @@ steps: # PRIVATE: true CODEFIRST_CLIENTDRONE_ENV_ROOT_PASSWORD: from_secret: db_root_password - CODEFIRST_CLIENTDRONE_ENV_SQL_DATABASE: - from_secret: db_database - CODEFIRST_CLIENTDRONE_ENV_SQL_USER: - from_secret: db_user - CODEFIRST_CLIENTDRONE_ENV_SQL_PASSWORD: - from_secret: db_password depends_on: [ db_image ] \ No newline at end of file diff --git a/Sources/db_script/sql/location.sql b/Sources/db_script/sql/location.sql index b318193..5f9d7a4 100644 --- a/Sources/db_script/sql/location.sql +++ b/Sources/db_script/sql/location.sql @@ -1,8 +1,8 @@ CREATE DATABASE IF NOT EXISTS positiondaflmusic; -CREATE USER 'dafldev'@'%' IDENTIFIED BY 'wrap; +CREATE USER $(USER)@'%' IDENTIFIED BY $(PASSWORD); -GRANT ALL PRIVILEGES ON * . * TO 'dafldev'@'%'; +GRANT ALL PRIVILEGES ON * . * TO $(USER)@'%'; FLUSH PRIVILEGES;