remind101 / empire

A PaaS built on top of Amazon EC2 Container Service (ECS)
BSD 2-Clause "Simplified" License
2.69k stars 159 forks source link

Support soft deletions of apps #1129

Closed ejholmes closed 6 years ago

ejholmes commented 6 years ago

Before this PR, deleting an app would permanently delete all of the history. For something like Empire, it's much better to never delete anything, so there's always an audit trail and complete history of changes.

russellballestrini commented 6 years ago

Basically instead of deleting records we are adding a new column deleted_at which is null by default. If null the app is not deleted, if it has a timestamp it is considered deleted but all data, history, and references still exist.