Skip to content

Commit 83e0f4f

Browse files
committed
feat(mssql): DATETIME2 is actually a DATETIME2(7) so explicitly say that in the scripts
1 parent b6e2974 commit 83e0f4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SqlServer/src/Eventuous.SqlServer/Scripts/1_Schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ IF OBJECT_ID('__schema__.Messages', 'U') IS NULL
2727
GlobalPosition BIGINT IDENTITY (0,1) NOT NULL,
2828
JsonData NVARCHAR(MAX) NOT NULL,
2929
JsonMetadata NVARCHAR(MAX) NOT NULL,
30-
Created DATETIME2 NOT NULL,
30+
Created DATETIME2(7) NOT NULL,
3131
CONSTRAINT PK_Events PRIMARY KEY CLUSTERED (GlobalPosition),
3232
CONSTRAINT FK_MessageStreamId FOREIGN KEY (StreamId) REFERENCES __schema__.Streams (StreamId),
3333
CONSTRAINT UQ_StreamIdAndStreamPosition UNIQUE NONCLUSTERED (StreamId, StreamPosition),

src/SqlServer/src/Eventuous.SqlServer/Scripts/2_AppendEvents.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE OR ALTER PROCEDURE __schema__.append_events
22
@stream_name VARCHAR(850),
33
@expected_version INT,
4-
@created DATETIME2 NULL,
4+
@created DATETIME2(7) NULL,
55
@messages __schema__.StreamMessage READONLY
66
AS
77
BEGIN

0 commit comments

Comments
 (0)