Skip to content

django52: upgrade django-simple-history to latest version #37146

@awais786

Description

@awais786

Tests are running with django52 in edx-platform

You can use this PR to run tests locally. It has many commits for storages these PRs in review.

query = 'INSERT INTO "split_modulestore_django_historicalsplitmodulestorecourseindex" ("id", "objectid", "course_id", "org", "...", "history_change_reason", "history_type", "history_user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'
params = [1, '689580507db9ce7ddd79e651', 'course-v1:org.0+course_0+Run_0', 'org.0', '689580507db9ce7ddd79e650', '689580507db9ce7ddd79e653', ...]

    def execute(self, query, params=None):
        if params is None:
            return super().execute(query)
        # Extract names if params is a mapping, i.e. "pyformat" style is used.
        param_names = list(params) if isinstance(params, Mapping) else None
        query = self.convert_query(query, param_names=param_names)
>       return super().execute(query, params)
E       sqlite3.IntegrityError: UNIQUE constraint failed: split_modulestore_django_historicalsplitmodulestorecourseindex.course_id

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions