forked from ddrilling/AsbCloudServer
Фикс миграции
This commit is contained in:
parent
62ef6c5258
commit
b5985b0fd8
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user