2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2022-12-08 18:00:01 +05:00
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
|
|
{
|
|
|
|
public partial class WellOperations_unite_categiries : Migration
|
|
|
|
{
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.Sql(
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60018 WHERE id_category=14;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=2027 WHERE id_category = 1018;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60028 WHERE id_category = 1020;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60004 WHERE id_category = 1032;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60026 WHERE id_category = 2001;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60017 WHERE id_category = 2002;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60020 WHERE id_category = 2012;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60019 WHERE id_category = 2014;" +
|
|
|
|
"UPDATE public.t_well_operation SET id_category=60023 WHERE id_category = 2015;");
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|