From 97b76f3ba67447511befdc70e852f2f515fea12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Wed, 8 Mar 2023 14:42:10 +0400 Subject: [PATCH] =?UTF-8?q?delete=20=D0=BD=D0=B0=20truncate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Migrations/20230307072144_add_client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConfectioneryDatabaseImplement/Migrations/20230307072144_add_client.cs b/ConfectioneryDatabaseImplement/Migrations/20230307072144_add_client.cs index df8a7e2..d125130 100644 --- a/ConfectioneryDatabaseImplement/Migrations/20230307072144_add_client.cs +++ b/ConfectioneryDatabaseImplement/Migrations/20230307072144_add_client.cs @@ -10,7 +10,7 @@ namespace ConfectioneryDatabaseImplement.Migrations /// protected override void Up(MigrationBuilder migrationBuilder) { - migrationBuilder.Sql("DELETE FROM Orders"); + migrationBuilder.Sql("TRUNCATE Orders"); migrationBuilder.AddColumn( name: "ClientId", table: "Orders",