diff --git a/src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.cs b/src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.cs index e782dbddc..d907bc0e1 100644 --- a/src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.cs +++ b/src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.cs @@ -6,6 +6,7 @@ namespace Ombi.Store.Migrations.OmbiMySql { protected override void Up(MigrationBuilder migrationBuilder) { + migrationBuilder.Sql("SET FOREIGN_KEY_CHECKS=0;"); migrationBuilder.AlterColumn( name: "UserId", table: "Votes", @@ -1448,6 +1449,9 @@ namespace Ombi.Store.Migrations.OmbiMySql nullable: true, oldClrType: typeof(string), oldNullable: true); + + + migrationBuilder.Sql("SET FOREIGN_KEY_CHECKS=1;"); } } }