mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
Specify charset and collation options for the test database
This commit is contained in:
@ -546,6 +546,12 @@ if "sqlite" in db_engine:
|
|||||||
# Provide OPTIONS dict back to the database configuration dict
|
# Provide OPTIONS dict back to the database configuration dict
|
||||||
db_config['OPTIONS'] = db_options
|
db_config['OPTIONS'] = db_options
|
||||||
|
|
||||||
|
# Set testing options for the database
|
||||||
|
db_config['TEST'] = {
|
||||||
|
'CHARSET': 'utf8',
|
||||||
|
'COLLATION': 'utf8_general_ci',
|
||||||
|
}
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': db_config
|
'default': db_config
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user