chore: refactor file upload commands (#28164)

This commit is contained in:
Daniel Vaz Gaspar
2024-04-23 08:42:19 +01:00
committed by GitHub
parent cfc440c56c
commit de82d90b9c
17 changed files with 930 additions and 734 deletions

View File

@@ -98,6 +98,11 @@ class DatabaseSchemaUploadNotAllowed(CommandException):
message = _("Database schema is not allowed for csv uploads.")
class DatabaseUploadNotSupported(CommandException):
status = 422
message = _("Database type does not support file uploads.")
class DatabaseUploadFailed(CommandException):
status = 422
message = _("Database upload file failed")