File tree 3 files changed +7
-3
lines changed
aim/digifeeds/database/migrations
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 13
13
config = context .config
14
14
15
15
# Set url from environment variable
16
- config .set_main_option ("sqlalchemy.url" , S .mysql_database )
16
+ config .set_main_option (
17
+ "sqlalchemy.url" ,
18
+ # This is for handling passwords with special characters
19
+ S .mysql_database .render_as_string (hide_password = False ).replace ("%" , "%%" ),
20
+ )
17
21
18
22
# Interpret the config file for Python logging.
19
23
# This line sets up loggers basically.
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ services:
28
28
environment :
29
29
- MARIADB_ROOT_PASSWORD=password
30
30
- MARIADB_USER=user
31
- - MARIADB_PASSWORD=password
31
+ - MARIADB_PASSWORD=test@123
32
32
- MARIADB_DATABASE=database
33
33
34
34
volumes :
Original file line number Diff line number Diff line change 1
1
MARIADB_ROOT_PASSWORD=password
2
2
MARIADB_USER=user
3
- MARIADB_PASSWORD=password
3
+ MARIADB_PASSWORD=test@123
4
4
MARIADB_DATABASE=database
5
5
DATABASE_HOST=database
You can’t perform that action at this time.
0 commit comments