From 80cb8c9083ff5b988f218d3fc479690f760b90cb Mon Sep 17 00:00:00 2001 From: tusharad Date: Mon, 3 Jun 2024 18:33:59 +0530 Subject: [PATCH] Changed documentation example of withDbModification function. --- beam-core/Database/Beam/Schema/Tables.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beam-core/Database/Beam/Schema/Tables.hs b/beam-core/Database/Beam/Schema/Tables.hs index 90ef2d39..ab359ab4 100644 --- a/beam-core/Database/Beam/Schema/Tables.hs +++ b/beam-core/Database/Beam/Schema/Tables.hs @@ -187,7 +187,9 @@ tableModification = runIdentity $ -- > db = defaultDbSettings `withDbModification` -- > dbModification { -- > -- Change default name "table1" to "Table_1". Change the name of "table1Field1" to "first_name" --- > table1 = modifyTable (\_ -> "Table_1") (tableModification { table1Field1 = "first_name" } +-- > table1 = setEntityName "Table_1" <> modifyTableFields tableModification { +-- > table1Field1 = "first_name" +-- > } -- > } withDbModification :: forall db be entity . Database be db