-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Migration base.0067_resourcebase_storetype broken #10752
Comments
etj
added a commit
to etj/geonode
that referenced
this issue
Mar 8, 2023
12 tasks
giohappy
added a commit
that referenced
this issue
Mar 8, 2023
* #10747 Migration base/0074_drop_curated_thumbs.py broken * #10752 Migration base.0067_resourcebase_storetype broken * #10751 Migration upload/0033_auto_20210527_1520 broken * #10753 Migration layers.0040_dataset_ows_url broken * #10755 Some other migrations broken Co-authored-by: Emanuele Tajariol <[email protected]>
github-actions bot
pushed a commit
that referenced
this issue
Mar 8, 2023
* #10747 Migration base/0074_drop_curated_thumbs.py broken * #10752 Migration base.0067_resourcebase_storetype broken * #10751 Migration upload/0033_auto_20210527_1520 broken * #10753 Migration layers.0040_dataset_ows_url broken * #10755 Some other migrations broken Co-authored-by: Emanuele Tajariol <[email protected]> (cherry picked from commit 7242030)
giohappy
added a commit
that referenced
this issue
Mar 8, 2023
* #10747 Migration base/0074_drop_curated_thumbs.py broken * #10752 Migration base.0067_resourcebase_storetype broken * #10751 Migration upload/0033_auto_20210527_1520 broken * #10753 Migration layers.0040_dataset_ows_url broken * #10755 Some other migrations broken Co-authored-by: Emanuele Tajariol <[email protected]> (cherry picked from commit 7242030) Co-authored-by: Giovanni Allegri <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Migration
base.67
layers.0035_auto_20210525_0847
Migration
layers.0036
Here the error is that in a dependency you can only specify the minimum version needed. Still, it's not said that you could have some more migration applied in the same app, so for sure the dep
layers.0035
is satisfied, but also thelayers.0036
has already been run, so the copy cannot be carried out.The dependencies should assure that the field (or data) are where they are expected, so we may want to add a dependency toward the migrations that copies the data before removing the field.
We need to change:
layers.0036
base.0067_resourcebase_storetype
base.0067
layers.0035
Please also note that an analogous change is needed for documents.
Currently
base.0067
is dependent ondocuments.0032_remove_document_doc_file
, which is useless per se, and the author prolly wanted to avoid the execution ofdocuments.0033_remove_document_doc_type
which removes the field used in the copy procedures.Anyway
documents.0033_remove_document_doc_type
has a dep onbase.0067
, so it makes sure the data are copied before removing the field.base.0067
documents.0032
The text was updated successfully, but these errors were encountered: