Refactoring Databases - Evolutionary Database Design

Introduce Soft Delete

Introduce a flag to an existing table which indicates that a row has been deleted (this is called a soft/logical delete) instead of actually deleting the row (a hard delete).



Example

Introduce Soft Delete Example

For more information see page 222 of Database Refactoring



Unless otherwise noted, all material on this site is copyright Pramod Sadalage.
Please link freely to this site, but if you want to copy any of the materials you should contact the relevant copyright holders first.
Send feedback to Pramod Sadalage

Site design credit Narayan Raman