From e5296fe60a4fd0fc2e2ff3c021b5313da91185b9 Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Fri, 31 May 2024 16:22:52 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20Replace?= =?UTF-8?q?=5FPostgres=5FID=5FTest=5FManyPK()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/create_files/crud_tables/crud_tables.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/create_files/crud_tables/crud_tables.go b/internal/create_files/crud_tables/crud_tables.go index b5e6d75..61791b1 100644 --- a/internal/create_files/crud_tables/crud_tables.go +++ b/internal/create_files/crud_tables/crud_tables.go @@ -982,8 +982,9 @@ func CreateFilesCacheTest(Table1 *types.Table) error { //TextIDMany := create_files.FindTextNameTest_ManyPK(Table1) //TextCache = strings.ReplaceAll(TextCache, "ReadFromCache(Postgres_ID_Test)", "ReadFromCache("+TextIDMany+")") //TextCache = create_files.Replace_Postgres_ID_Test(TextCache, Table1) - //EntityURL := create_files.FindModelTableURL(Table1.Name) - //TextCache = create_files.CheckAndAddImport(TextCache, EntityURL) + EntityURL := create_files.FindModelTableURL(Table1.Name) + TextCache = create_files.AddImport(TextCache, EntityURL) + TextCache = create_files.Replace_Postgres_ID_Test_ManyPK(TextCache, Table1) } }