Merge pull request 'Миграция: правка данных в БД (категорий для well_operations)' (#189) from fix/update-well-operation-categories-migration into dev

Reviewed-on: http://test.digitaldrilling.ru:8080/DDrilling/AsbCloudServer/pulls/189
This commit is contained in:
Никита Фролов 2023-12-26 12:16:54 +05:00
commit 0371e6683c
2 changed files with 9136 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Update_Table_WellOperation_set_Categories : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql
(@"UPDATE public.t_well_operation SET id_category=5010 WHERE id_category=4004; " +
@"UPDATE public.t_well_operation SET id_category=5019 WHERE id_category=4007; ");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}