Added "restore" in history
Removed the chaining for constraint when "deleting"