Skip to content

fix(query-interface): using normalizeAttribute instead of normalizeDataype - #9875

Closed
WaleedAshraf wants to merge 1 commit into
sequelize:masterfrom
WaleedAshraf:9874
Closed

WaleedAshraf wants to merge 1 commit into
sequelize:masterfrom
WaleedAshraf:9874

Conversation

@WaleedAshraf

@WaleedAshraf WaleedAshraf commented Sep 4, 2018 •

Copy link
Copy Markdown

fix #9874

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description of change

using normalizeAttribute instead of normalizeDataype.

normalizeAttribute updates attribute.values in case of ENUM. Otherwise, attribute.values remain undefined and is not updated.
normalizeAttribute also performs normalizeDataype.

@sushantdhiman

Copy link
Copy Markdown
Contributor

This needs a test

@sushantdhiman sushantdhiman mentioned this pull request Sep 8, 2018
4 of 5 tasks
@sushantdhiman

Copy link
Copy Markdown
Contributor

Thanks for your fix, I have written tests for this change #9897 in this PR

@WaleedAshraf

Copy link
Copy Markdown
Author

@sushantdhiman you should have merged your testcase in this branch.
Anyhow, thanks for talking my first contribution.

@sushantdhiman

Copy link
Copy Markdown
Contributor

@WaleedAshraf Pushing changes to someone else's PR requires some tedious steps :D I will make sure to accept your next proper PR directly

@WaleedAshraf

Copy link
Copy Markdown
Author

@sushantdhiman, my suggestions for next time.

  • Ping contributor at least once, before adding own fix.
  • Give contributor time frame (x days) in which they should add required changes, otherwise (if there is no update in that time frame) someone else can take charge and fix the issue.
  • Try your best to add changes if same PR rather creating a new one.

✌️👍

@WaleedAshraf
WaleedAshraf deleted the 9874 branch September 19, 2019 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

changeColumn error when updating ENUM value

2 participants