Skip to content

Commit

Permalink
feat: fixes from customer
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Sep 11, 2024
1 parent 0122d89 commit e8e80a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def upgrade() -> None:
"require_approve",
sa.Boolean(),
nullable=False,
server_default=sa.text("(FALSE)"),
server_default=sa.text("0"),
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table("mappingrule", schema=None) as batch_op:
batch_op.add_column(
sa.Column("type", sqlmodel.sql.sqltypes.AutoString(), nullable=False)
sa.Column(
"type",
sqlmodel.sql.sqltypes.AutoString(),
nullable=False,
default="csv",
)
)

# ### end Alembic commands ###
Expand Down
2 changes: 1 addition & 1 deletion keep/api/models/db/preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def generate_uuid():

class PresetTagLink(SQLModel, table=True):
tenant_id: str = Field(foreign_key="tenant.id", primary_key=True)
preset_id: UUID = Field(foreign_key="preset.id", primary_key=True)
preset_id: str = Field(foreign_key="preset.id", primary_key=True)
tag_id: str = Field(foreign_key="tag.id", primary_key=True)


Expand Down

0 comments on commit e8e80a7

Please sign in to comment.