From ff9310b0b455062ed005294ae7068436cda0b1bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borja=20Fern=C3=A1ndez=20-=20Smartway=20Studio?= <104500854+borjaferv@users.noreply.github.com> Date: Fri, 23 Jun 2023 18:39:28 +0200 Subject: [PATCH] Change StringData from nvarchar(2000) to NCLOB in oracle (#4159) * Change StringData from nvarchar(2000) to NCLOB in oracle * Update DbContext.cs --- .../Elsa.EntityFrameworkCore/Modules/Management/DbContext.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.EntityFrameworkCore/Modules/Management/DbContext.cs b/src/modules/Elsa.EntityFrameworkCore/Modules/Management/DbContext.cs index 2f6b3ea0a..66d09e91a 100644 --- a/src/modules/Elsa.EntityFrameworkCore/Modules/Management/DbContext.cs +++ b/src/modules/Elsa.EntityFrameworkCore/Modules/Management/DbContext.cs @@ -38,6 +38,7 @@ public class ManagementElsaDbContext : ElsaDbContextBase // In order to use data more than 2000 char we have to use NCLOB. // In oracle we have to explicitly say the column is NCLOB otherwise it would be considered nvarchar(2000). modelBuilder.Entity().Property("Data").HasColumnType("NCLOB"); + modelBuilder.Entity().Property("StringData").HasColumnType("NCLOB"); modelBuilder.Entity().Property("Data").HasColumnType("NCLOB"); } -} \ No newline at end of file +}