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(