Change StringData from nvarchar(2000) to NCLOB in oracle (#4159)

* Change StringData from nvarchar(2000) to NCLOB in oracle

* Update DbContext.cs
This commit is contained in:
Borja Fernández - Smartway Studio 2023-06-23 18:39:28 +02:00 committed by GitHub
parent 282ef24446
commit ff9310b0b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<WorkflowInstance>().Property("Data").HasColumnType("NCLOB");
modelBuilder.Entity<WorkflowDefinition>().Property("StringData").HasColumnType("NCLOB");
modelBuilder.Entity<WorkflowDefinition>().Property("Data").HasColumnType("NCLOB");
}
}
}