This commit is contained in:
Olga Nemt 2023-11-02 10:53:14 +05:00
parent e7f9ac4c4f
commit bed5f4e6b4

View File

@ -8,26 +8,26 @@ namespace AsbCloudDb.Migrations
{ {
protected override void Up(MigrationBuilder migrationBuilder) protected override void Up(MigrationBuilder migrationBuilder)
{ {
//migrationBuilder.UpdateData( migrationBuilder.UpdateData(
// table: "t_company_type", table: "t_company_type",
// keyColumn: "id", keyColumn: "id",
// keyValue: 1, keyValue: 1,
// columns: new[] { "caption", "order" }, columns: new[] { "caption", "order" },
// values: new object[] { "Недропользователь", 3 }); values: new object[] { "Недропользователь", 3 });
//migrationBuilder.UpdateData( migrationBuilder.UpdateData(
// table: "t_company_type", table: "t_company_type",
// keyColumn: "id", keyColumn: "id",
// keyValue: 2, keyValue: 2,
// columns: new[] { "is_contact", "order" }, columns: new[] { "is_contact", "order" },
// values: new object[] { true, 2 }); values: new object[] { true, 2 });
//migrationBuilder.UpdateData( migrationBuilder.UpdateData(
// table: "t_company_type", table: "t_company_type",
// keyColumn: "id", keyColumn: "id",
// keyValue: 3, keyValue: 3,
// columns: new[] { "is_contact", "order" }, columns: new[] { "is_contact", "order" },
// values: new object[] { true, 0 }); values: new object[] { true, 0 });
migrationBuilder.Sql(@"INSERT INTO public.t_company_type (id, caption, is_contact, ""order"") " + migrationBuilder.Sql(@"INSERT INTO public.t_company_type (id, caption, is_contact, ""order"") " +
@"VALUES (4, 'Сервис по ГТИ', true, 6) " + @"VALUES (4, 'Сервис по ГТИ', true, 6) " +