mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(dao): Add explicit ON DELETE CASCADE for ownership (#24628)
This commit is contained in:
@@ -146,9 +146,6 @@ class TestImportAssetsCommand(SupersetTestCase):
|
||||
|
||||
assert dashboard.owners == [self.user]
|
||||
|
||||
dashboard.owners = []
|
||||
chart.owners = []
|
||||
database.owners = []
|
||||
db.session.delete(dashboard)
|
||||
db.session.delete(chart)
|
||||
db.session.delete(dataset)
|
||||
@@ -190,10 +187,6 @@ class TestImportAssetsCommand(SupersetTestCase):
|
||||
chart = dashboard.slices[0]
|
||||
dataset = chart.table
|
||||
database = dataset.database
|
||||
dashboard.owners = []
|
||||
|
||||
chart.owners = []
|
||||
database.owners = []
|
||||
db.session.delete(dashboard)
|
||||
db.session.delete(chart)
|
||||
db.session.delete(dataset)
|
||||
|
||||
Reference in New Issue
Block a user