﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35163	sqlite3.OperationalError: no such column: django_migrations.id	milahu	nobody	"continue https://github.com/django/django/pull/17815

the error is caused by a django app, trying to record an applied database migration
django/db/migrations/executor.py

workaround: add the ""id"" column explicitly to class Migration

django/db/migrations/recorder.py

{{{
            class Migration(models.Model):
                id = models.IntegerField(primary_key=True)
                app = models.CharField(max_length=255)
                name = models.CharField(max_length=255)
                applied = models.DateTimeField(default=now)
}}}

https://github.com/django/django/pull/17815#issuecomment-1925345512

> Implicit id is added automatically to all models

but that is not reflected in the sqlite schema: there is no ""id"" column

so maybe this is a bug in the sqlite backend
"	Bug	closed	Database layer (models, ORM)	5.0	Normal	worksforme	sqlite		Unreviewed	0	0	0	0	0	0
