Skip to content

Macros with Folder #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion submodules/model
16 changes: 16 additions & 0 deletions upgrade_logic/business_objects/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
from submodules.model import enums


def gateway_1_16_0() -> bool:
__gateway_1_16_0_add_cognition_project_folder_defaults()
return True


def __gateway_1_16_0_add_cognition_project_folder_defaults() -> bool:
query = """
UPDATE cognition.project
SET max_folder_size_mb = 20
WHERE max_folder_size_mb IS NULL
"""
general.execute(query)
general.commit()
return True


def gateway_1_15_0() -> bool:
# Note: A previous version had the previous update listed as v1.15.
# That was false, the updates already ran through. This is now for the actual 1.15 release
Expand Down
Loading