mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(dao): Add explicit ON DELETE CASCADE for ownership (#24628)
This commit is contained in:
@@ -400,7 +400,6 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
assert column.description is None
|
||||
assert column.python_date_format is None
|
||||
|
||||
dataset.database.owners = []
|
||||
db.session.delete(dataset)
|
||||
db.session.delete(dataset.database)
|
||||
db.session.commit()
|
||||
@@ -528,7 +527,6 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
)
|
||||
assert len(database.tables) == 1
|
||||
|
||||
database.owners = []
|
||||
db.session.delete(database.tables[0])
|
||||
db.session.delete(database)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user