Skip to content

fix(postgres): sync with alter method fails with dataType enum (#7649) - #15718

Merged
ephys merged 2 commits into
sequelize:v6from
aristov:fix/pgEnum
Mar 7, 2023
Merged

ephys merged 2 commits into
sequelize:v6from
aristov:fix/pgEnum

Conversation

@aristov

@aristov aristov commented Feb 27, 2023

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description Of Change

Closes #7649

This change fixes an error that occurs when calling sync({ alter : true }) on a model with the ENUM data type.

Todos

  • This only fixes the sync() failure, but sync can't delete/replace the enum value yet

@ephys ephys left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the PR :)

We do request that PRs target the main branch before we consider backporting them to older versions, otherwise the fix will be missing from the next major release

@aristov
aristov requested a review from ephys February 27, 2023 13:39
@aristov
aristov force-pushed the fix/pgEnum branch 2 times, most recently from e497270 to 6cb1ee8 Compare February 28, 2023 02:34

@WikiRik WikiRik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Few nitpicky suggestions

Comment thread test/unit/sql/enum.test.js Resolved
Comment thread test/unit/sql/enum.test.js Resolved
@ephys

ephys commented Mar 2, 2023

Copy link
Copy Markdown
Member

Sorry to ask this but could you open the same PR against the main branch before we merge this one?

If we don't merge it against main, we'll lose this fix in v7

@aristov

aristov commented Mar 3, 2023

Copy link
Copy Markdown
Contributor Author

Sorry to ask this but could you open the same PR against the main branch before we merge this one?

If we don't merge it against main, we'll lose this fix in v7

#15738

@WikiRik

WikiRik commented Mar 5, 2023

Copy link
Copy Markdown
Member

I think a few suggestions from #15738 might also be applicable here, if you update this PR we can review it again and land it in the next v6 release

@aristov

aristov commented Mar 6, 2023

Copy link
Copy Markdown
Contributor Author

I think a few suggestions from #15738 might also be applicable here, if you update this PR we can review it again and land it in the next v6 release

Done.

@ephys
ephys merged commit 1b94462 into sequelize:v6 Mar 7, 2023
@github-actions

github-actions Bot commented Mar 7, 2023

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.29.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants