SHA256
StayExport Tracking - StayExportFile ExportDetails new type/format
- Added new class to unify and type the format of StayExportFile.ExportDetails field. Note: This database migration will set to null all StayExportFile.ExportDetails data. This is required to prevent exceptions due to new formatting.
This commit is contained in:
1 parent
cf62a0e55e
commit
54387a6346
15 files changed
+486
-35
No files matched your search
@@ -199,9 +199,6 @@ namespace Somnia.GuestLog.Infrastructure.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
||||
|
||||
b.Property<string>("ExportDetails")
|
||||
.HasColumnType("jsonb");
|
||||
|
||||
b.Property<int>("ExportFormat")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -221,6 +218,28 @@ namespace Somnia.GuestLog.Infrastructure.Migrations
|
||||
b.Property<DateTime?>("FileUploadStatusTime")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "ExportDetails", "Somnia.GuestLog.Models.Entities.StayExportFile.ExportDetails#StayExportDetails", b1 =>
|
||||
{
|
||||
b1.Property<int?>("ExportedStayCount");
|
||||
|
||||
b1.Property<int?>("StayErrorCount");
|
||||
|
||||
b1.ComplexCollection(typeof(List<Dictionary<string, object>>), "StayEntries", "Somnia.GuestLog.Models.Entities.StayExportFile.ExportDetails#StayExportDetails.StayEntries#StayExportDetailsStayEntry", b2 =>
|
||||
{
|
||||
b2.IsRequired();
|
||||
|
||||
b2.Property<string>("Details");
|
||||
|
||||
b2.Property<int>("ExportResult");
|
||||
|
||||
b2.Property<long>("StayEntryId");
|
||||
});
|
||||
|
||||
b1
|
||||
.ToJson("ExportDetails")
|
||||
.HasColumnType("jsonb");
|
||||
});
|
||||
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "ExportParams", "Somnia.GuestLog.Models.Entities.StayExportFile.ExportParams#StayExportParams", b1 =>
|
||||
{
|
||||
b1.IsRequired();
|
||||
|
||||
Reference in new issue
Block a user