From 5a506ef8d869488b684ceab4c10d3ad92912caf8 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sat, 29 Aug 2020 22:15:03 +0100 Subject: [PATCH] Fixed the foreign key checks --- src/Ombi.Store/Migrations/OmbiMySql/20200829205234_Charset.cs | 4 ++++ 1 file changed, 4 insertions(+) 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;"); } } }