Skip to content
Browse files

Oracle - change Commits PK to CheckpointNumber and add unique index f…

…or (BucketId, StreamId, CommitSequence)
  • Loading branch information...
1 parent 8745002 commit b66e0c157540d71d1b0988d3ea64917f8626a1dd @damianh damianh committed Oct 2, 2013
2 src/NEventStore/Persistence/Sql/SqlDialects/OracleNativeStatements.Designer.cs
@@ -1,7 +1,7 @@
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.18051
+// Runtime Version:4.0.30319.33440
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
3 src/NEventStore/Persistence/Sql/SqlDialects/OracleNativeStatements.resx
@@ -229,7 +229,8 @@ IF table_count = 0 THEN DBMS_OUTPUT.PUT_LINE ('Creating the Commits table');
Headers BLOB CHECK (Headers IS NULL OR LENGTH(Headers) &gt; 0) NULL,
Payload BLOB CHECK (LENGTH(Payload) &gt; 0) NOT NULL,
- CONSTRAINT PK_Commits PRIMARY KEY (BucketId, StreamId, CommitSequence))');
+ CONSTRAINT PK_Commits PRIMARY KEY (CheckpointNumber))');
+ EXECUTE IMMEDIATE ('CREATE UNIQUE INDEX IX_Commits_CommitSequence ON Commits (BucketId, StreamId, CommitSequence)');
EXECUTE IMMEDIATE ('CREATE UNIQUE INDEX IX_Commits ON Commits (BucketId, StreamId, CommitId)');
EXECUTE IMMEDIATE ('CREATE UNIQUE INDEX IX_Commits_Revisions ON Commits (BucketId, StreamId, StreamRevision, Items)');
EXECUTE IMMEDIATE ('CREATE INDEX IX_Commits_Dispatched ON Commits (Dispatched)');

0 comments on commit b66e0c1

Please sign in to comment.
Something went wrong with that request. Please try again.