Skip to content

ORACLE and AUDITLOG_TWO_STEP_MIGRATION #757

@andreasgou

Description

@andreasgou

An observation regarding auditlog and Oracle DB.

Even if you are setting up auditlog for the first time and your backend database is Oracle, this issue is present when running migrate:
oracledb.exceptions.DatabaseError: ORA-01451: column to be modified to NULL cannot be modified to NULL

After some experiments I discovered that before running the migrate command, you have to setup the following variables to True (settings.py), just like your documentation says on migrating to version 3.x

AUDITLOG_TWO_STEP_MIGRATION = True
AUDITLOG_USE_TEXT_CHANGES_IF_JSON_IS_NOT_PRESENT = True

Then set them back to False (or remove them) and continue with the installation.

Thank you for this nicely made plugin !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions