When last_version is deleted, do not delete text and previous versions in cascade, but really delete text only when there is no previous version, otherwise update text.last_version with previous version.
class AbiConverterError(Exception):
pass
class AbiCommandError(Exception):
pass
class ToolsConverterError(Exception):
pass