feature: fixes PullRequest DB model object
This commit is contained in:
parent
edf6be86a1
commit
034a34da3f
1 changed files with 8 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue