Skip to content

Commit

Permalink
Remove ondelete
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Mar 21, 2023
1 parent 2f756c7 commit 2d9abb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def data(self) -> Dict[str, Any]:
metadata,
Column("id", Integer, primary_key=True),
Column("user_id", Integer, ForeignKey("ab_user.id")),
Column("table_id", Integer, ForeignKey("tables.id", ondelete="CASCADE")),
Column("table_id", Integer, ForeignKey("tables.id")),
)


Expand Down
2 changes: 1 addition & 1 deletion superset/models/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
metadata,
Column("id", Integer, primary_key=True),
Column("user_id", Integer, ForeignKey("ab_user.id")),
Column("slice_id", Integer, ForeignKey("slices.id", ondelete="CASCADE")),
Column("slice_id", Integer, ForeignKey("slices.id")),
)
logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 2d9abb0

Please sign in to comment.