@classmethod
    def define_upload_table(cls):


        # @todo: move into s3db/s3.py
        db = current.db
        if cls.UPLOAD_TABLE_NAME not in db:
            db.define_table(cls.UPLOAD_TABLE_NAME,
                            Field("controller",
                                  readable=False,
                                  writable=False),
                            Field("function",
                                  readable=False,
                                  writable=False),
                            Field("file", "upload",
                                  length = current.MAX_FILENAME_LENGTH,
                                  uploadfolder=os.path.join(current.request.folder,
                                                            "uploads", "imports"),
                                  autodelete=True),
                            Field("filename",
                                  readable=False,
                                  writable=False),
                            Field("status", "integer",
                                  default=1,
                                  readable=False,
                                  writable=False),
                            Field("extra_data",
                                  readable=False,
                                  writable=False),
                            Field("replace_option", "boolean",
                                  default=False,
                                  readable=False,
                                  writable=False),
                            Field("job_id", length=128,
                                  readable=False,
                                  writable=False),
                            Field("user_id", "integer",
                                  readable=False,
                                  writable=False),
                            Field("created_on", "datetime",
                                  readable=False,
                                  writable=False),
                            Field("modified_on", "datetime",
                                  readable=False,
                                  writable=False),
                            Field("summary_added", "integer",
                                  readable=False,
                                  writable=False),
                            Field("summary_error", "integer",
                                  readable=False,
                                  writable=False),
                            Field("summary_ignored", "integer",
                                  readable=False,
                                  writable=False),
                            Field("completed_details", "text",
                                  readable=False,
                                  writable=False))

        return db[cls.UPLOAD_TABLE_NAME]

# =============================================================================
Attempting to re-activate an already-activated account fails.
dataset/ETHPy150Open sahana/eden/modules/s3/s3import.py/S3Importer.define_upload_table--crossover with--dataset/ETHPy150Open macropin/django-registration/registration/tests/models.py/RegistrationModelTests.test_activation_already_activated