diff --git a/src/VirtoCommerce.Platform.Data.MySql/Migrations/Data/20240611091800_MakeSettingIdNotNullable.cs b/src/VirtoCommerce.Platform.Data.MySql/Migrations/Data/20240611091800_MakeSettingIdNotNullable.cs index d92c055f7e..c521527353 100644 --- a/src/VirtoCommerce.Platform.Data.MySql/Migrations/Data/20240611091800_MakeSettingIdNotNullable.cs +++ b/src/VirtoCommerce.Platform.Data.MySql/Migrations/Data/20240611091800_MakeSettingIdNotNullable.cs @@ -10,7 +10,7 @@ public partial class MakeSettingIdNotNullable : Migration /// protected override void Up(MigrationBuilder migrationBuilder) { - migrationBuilder.Sql("DELETE PlatformSettingValue WHERE SettingId IS NULL;"); + migrationBuilder.Sql("DELETE FROM PlatformSettingValue WHERE SettingId IS NULL;"); migrationBuilder.UpdateData( table: "PlatformSettingValue", diff --git a/src/VirtoCommerce.Platform.Data.SqlServer/Migrations/Data/20240611091951_MakeSettingIdNotNullable.cs b/src/VirtoCommerce.Platform.Data.SqlServer/Migrations/Data/20240611091951_MakeSettingIdNotNullable.cs index 03d5b6a3a3..c9226f2d0c 100644 --- a/src/VirtoCommerce.Platform.Data.SqlServer/Migrations/Data/20240611091951_MakeSettingIdNotNullable.cs +++ b/src/VirtoCommerce.Platform.Data.SqlServer/Migrations/Data/20240611091951_MakeSettingIdNotNullable.cs @@ -10,7 +10,7 @@ public partial class MakeSettingIdNotNullable : Migration /// protected override void Up(MigrationBuilder migrationBuilder) { - migrationBuilder.Sql("DELETE PlatformSettingValue WHERE SettingId IS NULL"); + migrationBuilder.Sql("DELETE FROM PlatformSettingValue WHERE SettingId IS NULL"); migrationBuilder.AlterColumn( name: "SettingId",