Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations failing to create EventLog table #73

Open
mb-krotos opened this issue Jul 30, 2024 · 1 comment
Open

Migrations failing to create EventLog table #73

mb-krotos opened this issue Jul 30, 2024 · 1 comment

Comments

@mb-krotos
Copy link

mb-krotos commented Jul 30, 2024

I've followed the installation instructions, but after running all migrations I've found I'm missing the table for the EventLog model.

This is the output of python manage.py sqlmigrate gdpr_assist 0001:

BEGIN;
--
-- Create model PersonalData
--
-- (no-op)
--
-- Create model EventLog
--
-- (no-op)
COMMIT;

I understand this tool is listed as supporting up to Django 4.0, and I'm using 4.2.1: could this be why that table isn't being created correctly?

Update: the database backend I'm using is Postgres.

@mabuge90
Copy link

mabuge90 commented Aug 1, 2024

@mb-krotos After running manage.py migrate --database=gdpr_log I checked the tables on sqlite3 and found the following table:
gdpr_assist_eventlog
the schema for this table appears to match the EventLog model:

.schema gdpr_assist_eventlog
CREATE TABLE IF NOT EXISTS "gdpr_assist_eventlog" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "event" varchar(9) NOT NULL, "app_label" varchar(255) NOT NULL, "model_name" varchar(255) NOT NULL, "target_pk" text NOT NULL);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants