From b5985b0fd836b20d212b2c6586a24d850801a285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Thu, 16 Nov 2023 12:05:52 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BC=D0=B8=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudDb/Migrations/20231114051111_Update_DailyReport.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AsbCloudDb/Migrations/20231114051111_Update_DailyReport.cs b/AsbCloudDb/Migrations/20231114051111_Update_DailyReport.cs index 2f189844..e4bac241 100644 --- a/AsbCloudDb/Migrations/20231114051111_Update_DailyReport.cs +++ b/AsbCloudDb/Migrations/20231114051111_Update_DailyReport.cs @@ -10,6 +10,8 @@ namespace AsbCloudDb.Migrations { protected override void Up(MigrationBuilder migrationBuilder) { + migrationBuilder.Sql("Truncate table t_daily_report"); + migrationBuilder.DropPrimaryKey( name: "t_id_well_date_start_pk", table: "t_daily_report"); @@ -80,6 +82,8 @@ namespace AsbCloudDb.Migrations protected override void Down(MigrationBuilder migrationBuilder) { + migrationBuilder.Sql("Truncate table t_daily_report"); + migrationBuilder.DropPrimaryKey( name: "PK_t_daily_report", table: "t_daily_report"); @@ -124,8 +128,7 @@ namespace AsbCloudDb.Migrations name: "info", table: "t_daily_report", type: "jsonb", - nullable: false, - defaultValue: "", + nullable: true, comment: "Список параметров для отчёта"); migrationBuilder.AddPrimaryKey(