mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +00:00
Add database options where newer Django expects them
The `3.2.x` versions don't have a lot of the code that `5.1.x` uses for this.
This commit is contained in:
parent
679f77b6b4
commit
a11e3487d6
@ -46,6 +46,13 @@ else:
|
|||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': CONFIG_BASE_DIR / 'db.sqlite3',
|
'NAME': CONFIG_BASE_DIR / 'db.sqlite3',
|
||||||
|
"OPTIONS": {
|
||||||
|
"transaction_mode": "IMMEDIATE",
|
||||||
|
"init_command": """
|
||||||
|
PRAGMA auto_vacuum = INCREMENTAL;
|
||||||
|
PRAGMA incremental_vacuum(100);
|
||||||
|
""",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DATABASE_CONNECTION_STR = f'sqlite at "{DATABASES["default"]["NAME"]}"'
|
DATABASE_CONNECTION_STR = f'sqlite at "{DATABASES["default"]["NAME"]}"'
|
||||||
|
Loading…
Reference in New Issue
Block a user