You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* v2.6.0
- *Enhancement:* Added a `DbColumnSchema.SqlType2` that does _not_ include nullability.
- *Enhancement:* The `SqlServerSchemaScript.SupportsReplace` is enabled where a `CREATE OR ALTER` is specified.
- *Enhancement:* The SQL Server [Event Outbox](https://github.com/Avanade/CoreEx/blob/main/src/CoreEx.Database.SqlServer/Outbox/EventOutboxEnqueueBase.cs) (_CoreEx_ `v3.26.0`) capabilities now support events as JSON versus existing TVP removing database dependency on a UDT (user-defined type).
- *Fixed:* The logic for finding file-based SQL schema scripts has been corrected.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
Represents the **NuGet** versions.
4
4
5
+
## v2.6.0
6
+
-*Enhancement:* Added a `DbColumnSchema.SqlType2` that does _not_ include nullability.
7
+
-*Enhancement:* The `SqlServerSchemaScript.SupportsReplace` is enabled where a `CREATE OR ALTER` is specified.
8
+
-*Enhancement:* The SQL Server [Event Outbox](https://github.com/Avanade/CoreEx/blob/main/src/CoreEx.Database.SqlServer/Outbox/EventOutboxEnqueueBase.cs) (_CoreEx_`v3.26.0`) capabilities now support events as JSON versus existing TVP removing database dependency on a UDT (user-defined type).
9
+
-*Fixed:* The logic for finding file-based SQL schema scripts has been corrected.
10
+
5
11
## v2.5.9
6
12
-*Fixed:* All related package dependencies updated to latest.
SELECT * INTO #eventList FROM OPENJSON(@EventList) WITH (
30
+
[EventId] NVARCHAR(127) '$.EventId',
31
+
[EventDequeued] BIT '$.EventDequeued',
32
+
[Destination] NVARCHAR(127) '$.Destination',
33
+
[Subject] NVARCHAR(511) '$.Subject',
34
+
[Action] NVARCHAR(255) '$.Action',
35
+
[Type] NVARCHAR(1023) '$.Type',
36
+
[Source] NVARCHAR(1023) '$.Source',
37
+
[Timestamp] DATETIMEOFFSET '$.Timestamp',
38
+
[CorrelationId] NVARCHAR(127) '$.CorrelationId',
39
+
[Key] NVARCHAR(1023) '$.Key',
40
+
[TenantId] NVARCHAR(127) '$.TenantId',
41
+
[PartitionKey] NVARCHAR(127) '$.PartitionKey',
42
+
[ETag] NVARCHAR(127) '$.ETag',
43
+
[Attributes] VARBINARY(MAX) '$.Attributes',
44
+
[Data] VARBINARY(MAX) '$.Data')
45
+
28
46
-- Cursor output variables.
29
47
DECLARE @eventId NVARCHAR(127),
30
48
@eventDequeued BIT,
@@ -44,7 +62,7 @@ BEGIN
44
62
45
63
-- Declare, open, and fetch first event from cursor.
46
64
DECLARE c CURSOR FORWARD_ONLY
47
-
FOR SELECT [EventId], [EventDequeued], [Destination], [Subject], [Action], [Type], [Source], [Timestamp], [CorrelationId], [Key], [TenantId], [PartitionKey], [ETag], [Attributes], [Data] FROM @EventList
65
+
FOR SELECT [EventId], [EventDequeued], [Destination], [Subject], [Action], [Type], [Source], [Timestamp], [CorrelationId], [Key], [TenantId], [PartitionKey], [ETag], [Attributes], [Data] FROM #eventList
48
66
49
67
OPEN c
50
68
FETCH NEXT FROM c INTO @eventId, @eventDequeued, @destination, @subject, @action, @type, @source, @timestamp, @correlationId, @key, @tenantId, @partitionKey, @etag, @attributes, @data
/// Gets the fully defined SQL type (includes nullability).
181
182
/// </summary>
182
183
publicstringSqlType=>_sqlType??=DbTable?.Migration.SchemaConfig.ToFormattedSqlType(this)??thrownewInvalidOperationException($"The {nameof(DbTable)} must be set before the {nameof(SqlType)} property can be accessed.");
183
184
185
+
/// <summary>
186
+
/// Gets the fully defined SQL type (excludes nullability).
187
+
/// </summary>
188
+
publicstringSqlType2=>_sqlType2??=DbTable?.Migration.SchemaConfig.ToFormattedSqlType(this,false)??thrownewInvalidOperationException($"The {nameof(DbTable)} must be set before the {nameof(SqlType)} property can be accessed.");
189
+
184
190
#if NET7_0_OR_GREATER
185
191
/// <summary>
186
192
/// Indicates that the type can be expressed as a <see cref="DateOnly"/> .NET type.
/// <remarks>The objects will be added in the order specified, and removed in the reverse order. This is to allow for potential dependencies between the object types.
128
128
/// <para>Where none are specified then the <see cref="MigrationCommand.Schema"/> phase will be skipped.</para></remarks>
129
-
publicstring[]SchemaObjectTypes{get;set;}
129
+
publicstring[]SchemaObjectTypes{get;set;}=[];
130
+
131
+
/// <summary>
132
+
/// Gets or sets the list of schema object types that where found must result in all schema objects being dropped and then recreated.
/// Gets the assemblies used for probing the requisite artefact resources (used for providing the underlying requisite database statements for the specified <see cref="Provider"/>).
0 commit comments