Skip to content

fix: bypass error checking for initial migration process#2092

Closed
jmcruz14 wants to merge 1 commit into
unfoldadmin:mainfrom
jmcruz14:main
Closed

fix: bypass error checking for initial migration process#2092
jmcruz14 wants to merge 1 commit into
unfoldadmin:mainfrom
jmcruz14:main

Conversation

@jmcruz14

Copy link
Copy Markdown

Summary

When attempting to test the available dev-server within the repo via uv run -- python manage.py runserver, Django returns the following error message: django.db.utils.OperationalError: no such table: auth_permission. Attempting to run python manage.py migrate before runserver leads to the same issue.

Currently, the only way to overcome this is to run the migrate command with the --skip-checks flag included.

To ensure consistency with the listed documentation, the fix implements a try/except bypass within src/unfold/checks.py to ensure developers can have an easy installation process for the repo on their device.

Test plan

OS: Sequoia 15.7.1
Python Version: 3.12.2
Django Version: 5.2.14

  1. The created db.sqlite3 within tests/server is deleted to ensure a fresh installation.
  2. Run uv run -- python manage.py migrate to check if the code change is met.
  3. From the root folder, uv run -- pytest . was run to ensure the changes do not break anything else, with the tests executed from my end having shown 417 passed in 19.74s with a total coverage of 95.75%.

Use of AI

  • AI was not written for this pull request, but the code generated was written by AI through Claude Code in order to identify the reason as to why the listed instructions under docs/development/index.md could not be followed through properly.
  • The generated code was not modified or updated afterwards.

* This change resolves a bug observed when attempting to run the dev server of the repository
and an OperationalError with the message no such table: auth_permission is returned
@mgrdcm

mgrdcm commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Related: #2072 and #2075 and #2076

@jmcruz14

Copy link
Copy Markdown
Author

Closing PR since #2072 resolves this. Thanks!

@jmcruz14 jmcruz14 closed this Jun 16, 2026
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

Successfully merging this pull request may close these issues.

2 participants