From 034a34da3fb49ffe702e560adbb6428c6ae09e33 Mon Sep 17 00:00:00 2001 From: ievgenii vdovenko Date: Wed, 25 Jun 2025 12:44:35 +0200 Subject: [PATCH] feature: fixes PullRequest DB model object --- rhodecode/model/db.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py index 0a25f8dc..f8672224 100644 --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -4454,6 +4454,14 @@ class _PullRequestBase(BaseModel): MutationObj.as_mutable(JsonType(dialect_map=dict(mysql=UnicodeText(DEFAULT_JSON_OBJ_SIZE)))), ) + settings = Column( + "settings_json", + MutationObj.as_mutable( + JsonType(dialect_map=dict(mysql=UnicodeText(DEFAULT_JSON_OBJ_SIZE))), + ), + default=dict, + ) + @property def reviewer_data_json(self): return str_json(self.reviewer_data) @@ -4635,13 +4643,6 @@ class PullRequest(Base, _PullRequestBase): LATEST_VER = "latest" pull_request_id = Column("pull_request_id", Integer(), nullable=False, primary_key=True) - settings = Column( - "settings_json", - MutationObj.as_mutable( - JsonType(dialect_map=dict(mysql=UnicodeText(DEFAULT_JSON_OBJ_SIZE))), - ), - default=dict, - ) def __repr__(self): if self.pull_request_id: