mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 07:12:28 -04:00
Fix unicode database support
This commit is contained in:
parent
0ba393924a
commit
0e8f5095c7
15 changed files with 88 additions and 44 deletions
|
@ -410,10 +410,14 @@ def executescript(txn, schema_path):
|
|||
|
||||
|
||||
def _get_or_create_schema_state(txn):
|
||||
schema_path = os.path.join(
|
||||
dir_path, "schema", "schema_version.sql",
|
||||
)
|
||||
executescript(txn, schema_path)
|
||||
try:
|
||||
# Bluntly try creating the schema_version tables.
|
||||
schema_path = os.path.join(
|
||||
dir_path, "schema", "schema_version.sql",
|
||||
)
|
||||
executescript(txn, schema_path)
|
||||
except:
|
||||
pass
|
||||
|
||||
txn.execute("SELECT version, upgraded FROM schema_version")
|
||||
row = txn.fetchone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue