We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fd4ddb commit ff13663Copy full SHA for ff13663
upgrade_logic/business_objects/gateway.py
@@ -10,6 +10,25 @@
10
from submodules.model import enums
11
12
13
+def gateway_1_19_0() -> bool:
14
+ __gateway_1_19_0_add_organization_default_token_limit()
15
+ return True
16
+
17
18
+def __gateway_1_19_0_add_organization_default_token_limit() -> bool:
19
+ query = """
20
+ UPDATE organization
21
+ SET token_limit = jsonb_build_object(
22
+ 'file_upload_limit', 50,
23
+ 'file_upload_interval', 3600
24
+ )
25
+ WHERE token_limit IS NULL
26
+ """
27
+ general.execute(query)
28
+ general.commit()
29
30
31
32
def gateway_1_16_0() -> bool:
33
__gateway_1_16_0_add_cognition_project_folder_defaults()
34
__gateway_1_16_0_add_cognition_project_tokenizer_defaults()
0 commit comments