Skip to content

Commit

Permalink
Merge pull request #12 from dunzoit/hotfix/fix-notfication-destination
Browse files Browse the repository at this point in the history
Remove encryption_options column and use options column directly
  • Loading branch information
masterlittle committed Jul 4, 2023
2 parents 67f5642 + 7d54ff3 commit 9b4a36e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions redash/models/__init__.py
Expand Up @@ -51,7 +51,7 @@
MutableDict,
MutableList,
PseudoJSON,
pseudo_json_cast_property
pseudo_json_cast_property, Configuration
)
from .users import AccessPermission, AnonymousUser, ApiUser, Group, User # noqa

Expand Down Expand Up @@ -1423,14 +1423,7 @@ class NotificationDestination(BelongsToOrgMixin, db.Model):
user = db.relationship(User, backref="notification_destinations")
name = Column(db.String(255))
type = Column(db.String(255))
options = Column(
"encrypted_options",
ConfigurationContainer.as_mutable(
EncryptedConfiguration(
db.Text, settings.DATASOURCE_SECRET_KEY, FernetEngine
)
),
)
options = Column(ConfigurationContainer.as_mutable(Configuration))
created_at = Column(db.DateTime(True), default=db.func.now())

__tablename__ = "notification_destinations"
Expand Down

0 comments on commit 9b4a36e

Please sign in to comment.