cinder/cinder/db/sqlalchemy
whoami-rajat a5bb17bdfc Make volume soft delete more thorough
When a volume record is soft-deleted in the database,
dependent records in other tables (for example,
Transfers, VolumeGlanceMetadata, etc.) must be soft
deleted as well.  Otherwise, we will get FK dependency
errors when the database is purged.

This patch adds that support for VolumeAttachment table.
(other tables were already covered, just refactored)

Also adds tests.

Co-authored-by: Rajat Dhasmana <rajatdhasmana@gmail.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: Ibfa6c4ba2f162681756ec3203991351345b65346
Related-Bug: #1542169
2020-01-11 13:01:11 -05:00
..
migrate_repo Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
api.py Make volume soft delete more thorough 2020-01-11 13:01:11 -05:00
models.py Add x_project_id, accepted to transfers 2018-12-20 15:42:36 +08:00