Skip to content

Fix migration typo (missing keyword foreign_key)#6126

Merged
tvdeyen merged 1 commit intosolidusio:mainfrom
chaimann:fix-migration-typo
Feb 18, 2025
Merged

Fix migration typo (missing keyword foreign_key)#6126
tvdeyen merged 1 commit intosolidusio:mainfrom
chaimann:fix-migration-typo

Conversation

@chaimann
Copy link
Copy Markdown
Contributor

@chaimann chaimann commented Feb 17, 2025

Linter failure unrelated, fixed in #6128

So apparently without foreign_key: keyword, the migration will just create another column called { to_table: :spree_taxons }_id (i didn't even know this was a valid syntax for the column name haha)

Checklist

@chaimann chaimann self-assigned this Feb 17, 2025
@github-actions github-actions Bot added the changelog:solidus_core Changes to the solidus_core gem label Feb 17, 2025
@chaimann chaimann force-pushed the fix-migration-typo branch 2 times, most recently from d675da4 to 8aa3948 Compare February 17, 2025 18:44
Also set `primary_taxon_id` column type to be integer to match `spree_taxons.id`
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.66%. Comparing base (7205ff0) to head (709d60d).
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6126      +/-   ##
==========================================
+ Coverage   86.56%   88.66%   +2.09%     
==========================================
  Files         512      833     +321     
  Lines       11838    18069    +6231     
==========================================
+ Hits        10248    16021    +5773     
- Misses       1590     2048     +458     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chaimann chaimann marked this pull request as ready for review February 18, 2025 10:06
@chaimann chaimann requested a review from a team as a code owner February 18, 2025 10:06
Copy link
Copy Markdown
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups. Thanks 😄

@tvdeyen tvdeyen merged commit 34b20d8 into solidusio:main Feb 18, 2025
@tvdeyen tvdeyen added this to the 4.5 milestone Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_core Changes to the solidus_core gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants