forked from ddrilling/AsbCloudServer
29 lines
1.3 KiB
C#
29 lines
1.3 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#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)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|