Skip to content

Commit

Permalink
fix: alembic's 'superset db migrate' fails with CompileError (#27846)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Apr 2, 2024
1 parent 0d0e47a commit 3e147f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,10 @@ class RowLevelSecurityFilter(Model, AuditMixinNullable):
name = Column(String(255), unique=True, nullable=False)
description = Column(Text)
filter_type = Column(
Enum(*[filter_type.value for filter_type in utils.RowLevelSecurityFilterType])
Enum(
*[filter_type.value for filter_type in utils.RowLevelSecurityFilterType],
name="filter_type_enum",
),
)
group_key = Column(String(255), nullable=True)
roles = relationship(
Expand Down

0 comments on commit 3e147f8

Please sign in to comment.