Skip to content

Fix 9515: sync() with "alter:true" doesn't use field name in model definition - #9529

Merged
sushantdhiman merged 6 commits into
sequelize:masterfrom
mjcmatrix:fix-9515
Jun 16, 2018
Merged

sushantdhiman merged 6 commits into
sequelize:masterfrom
mjcmatrix:fix-9515

Conversation

@mjcmatrix

Copy link
Copy Markdown
Contributor

Closes #9515

…mn name, enhance the existing integration tests for add/remove column to verify that the custom column name is used
…vironment"

This reverts commit 3782763.

Remove unrelated documentation commit from current PR branch
@mjcmatrix mjcmatrix changed the title Fix 9515 Fix 9515: sync() with "alter:true" doesn't use field name in model definition Jun 12, 2018
@codecov

codecov Bot commented Jun 12, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #9529 into master will increase coverage by <.01%.
The diff coverage is 100%.

Comment thread lib/model.js Outdated
});
_.each(columns, (columnDesc, columnName) => {
const currentAttributes = attributes[columnName];
const currentAttributes = rawAttributes[columnName];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

rename currentAttributes to currentAttribute

@sushantdhiman sushantdhiman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, one minor change

@sushantdhiman
sushantdhiman merged commit d46e207 into sequelize:master Jun 16, 2018
@mjcmatrix
mjcmatrix deleted the fix-9515 branch June 20, 2018 18:55
@lyh2668

lyh2668 commented Nov 16, 2018

Copy link
Copy Markdown

Why is this problem not fixed in version 4.41.2?

@lyh2668

lyh2668 commented Nov 16, 2018

Copy link
Copy Markdown

@sushantdhiman I upgraded the version to the version 5.0.0-beta.14 and still have this problem.

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.

3 participants