0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 04:33:53 +01:00

Fix for postgres

This commit is contained in:
Erik Johnston 2016-07-05 17:34:25 +01:00
parent 651faee698
commit 4adf93e0f7

View file

@ -147,7 +147,7 @@ class RegistrationStore(SQLBaseStore):
"upgrade_ts": now, "upgrade_ts": now,
"is_guest": 1 if make_guest else 0, "is_guest": 1 if make_guest else 0,
"appservice_id": appservice_id, "appservice_id": appservice_id,
"admin": admin, "admin": 1 if admin else 0,
} }
) )
else: else:
@ -160,7 +160,7 @@ class RegistrationStore(SQLBaseStore):
"creation_ts": now, "creation_ts": now,
"is_guest": 1 if make_guest else 0, "is_guest": 1 if make_guest else 0,
"appservice_id": appservice_id, "appservice_id": appservice_id,
"admin": admin, "admin": 1 if admin else 0,
} }
) )
except self.database_engine.module.IntegrityError: except self.database_engine.module.IntegrityError: