Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include tableName in MySQL fk contraint names #6008

Merged
merged 1 commit into from Jun 2, 2016

Commits on Jun 1, 2016

  1. Include tableName in MySQL fk contraint names

    When creating a foreign key constraint in MySQL, use the template
    {referring_table}_{attribute}_foreign_idx, rather than just
    {attribute}_foreign_idx, to avoid duplicate constraint names.
    
    Related tests are updated.
    
    See GitHub sequelize#5826
    Yaohan Chen committed Jun 1, 2016
    Configuration menu
    Copy the full SHA
    e79f90c View commit details
    Browse the repository at this point in the history