fix crdb support by casting uuid

Postgres seems to happily take in and automatically cast uuid type
values into varchar columns. This is not the case with cockroachdb.
This commit is contained in:
informatic 2020-05-31 19:05:57 +02:00
parent 7b71359733
commit 033b46b360

View file

@ -82,7 +82,7 @@ def client_create():
if form.validate_on_submit():
client = Client()
client.client_id = uuid.uuid4()
client.client_id = str(uuid.uuid4())
client.client_secret = generate_token()
client.owner_id = current_user.get_user_id()
client.set_client_metadata(form.data)