Skip to content

Instantly share code, notes, and snippets.

@pysco68
Last active September 21, 2015 18:16
Show Gist options
  • Save pysco68/236857751de37ed971f0 to your computer and use it in GitHub Desktop.
Save pysco68/236857751de37ed971f0 to your computer and use it in GitHub Desktop.
Fix MySQL Connector/NET Bug #74726 / EF migrations fail on long foreign keys
Install-Package Pysco68.MySQL.FixedMigrationGenerator
internal sealed class Configuration : DbMigrationsConfiguration<MyContext>
{
public Configuration()
{
SetSqlGenerator("MySql.Data.MySqlClient", new FixedMySqlMigrationSqlGenerator());
/* OR */
this.SetFixedMySQLMigrationsGenerator();
}
/* snip */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment