You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When new fields are added in the XForm model and the migration 001_pre-django-3-upgrade is run for the first time such as when running tests or running migrations for the first time on a new database, the error column X does not exist is raised.
This is because the scripts run within migrations.RunPython are making the presumption that the new field created in a later migration is present in migration 001_pre-django-3-upgrade
One alternative to solve this is to convert migrations.RunPython implementations into Django management commands
Benefits of implementing enhancement
column X does not exist is not raised when applying newer migrations for model XForm
Suggested implementation plan(Steps to be taken to implement feature)
The text was updated successfully, but these errors were encountered:
Enhancement
Remove implementations of
migrations.RunPython
from migration file https://github.com/onaio/onadata/blob/main/onadata/apps/logger/migrations/0001_pre-django-3-upgrade.py.When new fields are added in the
XForm
model and the migration001_pre-django-3-upgrade
is run for the first time such as when running tests or running migrations for the first time on a new database, the errorcolumn X does not exist
is raised.This is because the scripts run within
migrations.RunPython
are making the presumption that the new field created in a later migration is present in migration001_pre-django-3-upgrade
One alternative to solve this is to convert
migrations.RunPython
implementations into Django management commandsBenefits of implementing enhancement
column X does not exist
is not raised when applying newer migrations for modelXForm
Suggested implementation plan(Steps to be taken to implement feature)
The text was updated successfully, but these errors were encountered: