Skip to content

Commit eeb7b36

Browse files
Macros with Folder (#75)
* default values project folder size * remove comment * model * merge submodule model
1 parent 6967622 commit eeb7b36

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

upgrade_logic/business_objects/gateway.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@
1111
from submodules.model import enums
1212

1313

14+
def gateway_1_16_0() -> bool:
15+
__gateway_1_16_0_add_cognition_project_folder_defaults()
16+
return True
17+
18+
19+
def __gateway_1_16_0_add_cognition_project_folder_defaults() -> bool:
20+
query = """
21+
UPDATE cognition.project
22+
SET max_folder_size_mb = 20
23+
WHERE max_folder_size_mb IS NULL
24+
"""
25+
general.execute(query)
26+
general.commit()
27+
return True
28+
29+
1430
def gateway_1_15_0() -> bool:
1531
# Note: A previous version had the previous update listed as v1.15.
1632
# That was false, the updates already ran through. This is now for the actual 1.15 release

0 commit comments

Comments
 (0)