mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore(dao): Add explicit ON DELETE CASCADE when deleting datasets (#24488)
This commit is contained in:
@@ -2143,7 +2143,6 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
assert dataset.table_name == "imported_dataset"
|
||||
assert str(dataset.uuid) == dataset_config["uuid"]
|
||||
|
||||
dataset.owners = []
|
||||
db.session.delete(dataset)
|
||||
db.session.commit()
|
||||
db.session.delete(database)
|
||||
@@ -2214,7 +2213,6 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
db.session.query(Database).filter_by(uuid=database_config["uuid"]).one()
|
||||
)
|
||||
dataset = database.tables[0]
|
||||
dataset.owners = []
|
||||
db.session.delete(dataset)
|
||||
db.session.commit()
|
||||
db.session.delete(database)
|
||||
|
||||
Reference in New Issue
Block a user