[1.4] Database error, no such column: bricktracker_parts.spare. when viewling sets or parts #140
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I click on a set to view it I receive the following error. The same error occurs when clicking the Parts tab, and shows up in the Problems tab.
ERROR:bricktracker.views.error:Database error: no such column: bricktracker_parts.spareNo other errors occur when browsing around or adding sets and parts to the db. I just can't view the sets or parts.
I tried checking database integrity and optimizing, which both returned successful.
The data is freshly copied from a working 1.3.1. The only change made was upgrading the database to 27.
This is actually something i already fixed, but forgot to put in the changelog. This error occurs when you have a custom
BK_PARTS_DEFAULT_ORDERsetting in your environment file that referencesbricktracker_parts.spare(the old column name). In version 1.4, the parts query structure was updated and the column is now referenced as"combined"."spare"instead of"bricktracker_parts"."spare". To fix this:.envfile or go to/admin/under Live Settings (ordata/.envdepending on your setup)BK_PARTS_DEFAULT_ORDERsettingbricktracker_parts.Xwithcombined.XFor example, if you have:
BK_PARTS_DEFAULT_ORDER="bricktracker_parts"."spare" ASCChange it to:
BK_PARTS_DEFAULT_ORDER="combined"."spare" ASCOr you can simply comment out or remove the custom
BK_PARTS_DEFAULT_ORDERline to use the new defaults. The available column names are documented in the.env.samplefile in therelease/1.4branch.Documented in the changelog.