From 2600373fcf5d300ddaa110cc424688408a19f6fa Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Sat, 12 Feb 2022 10:34:28 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=BF=AE=E5=A4=8Dpgsql=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E8=AE=BE=E8=AE=A1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4e449d893fff51205d38a055d6bdab62fc2eebaa. --- .../Migrations/20190903070558_ReDesingerDataStorage.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/IoTSharp.Data.PostgreSQL/Migrations/20190903070558_ReDesingerDataStorage.cs b/IoTSharp.Data.PostgreSQL/Migrations/20190903070558_ReDesingerDataStorage.cs index 1ba3b5df..f384a6d3 100644 --- a/IoTSharp.Data.PostgreSQL/Migrations/20190903070558_ReDesingerDataStorage.cs +++ b/IoTSharp.Data.PostgreSQL/Migrations/20190903070558_ReDesingerDataStorage.cs @@ -66,15 +66,10 @@ namespace IoTSharp.Migrations oldClrType: typeof(Guid), oldNullable: true); - //migrationBuilder.AddPrimaryKey( - // name: "PK_DataStorage", - // table: "DataStorage", - // columns: new[] { "Catalog", "DeviceId", "KeyName", "DateTime" }); - // jy 修复表设计 migrationBuilder.AddPrimaryKey( name: "PK_DataStorage", table: "DataStorage", - columns: new[] { "Catalog", "DeviceId", "KeyName" }); + columns: new[] { "Catalog", "DeviceId", "KeyName", "DateTime" }); migrationBuilder.CreateIndex( name: "IX_DataStorage_Catalog", -- GitLab