Skip to content

Commit 59514b1

Browse files
committed
IBX-12029: Adjusted index of content id and version to be unique
1 parent 8ff0504 commit 59514b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/bundle/Core/Resources/config/storage/legacy

src/bundle/Core/Resources/config/storage/legacy/schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,10 @@ tables:
315315
ibexa_content_version:
316316
indexes:
317317
ibexa_content_version_status: { fields: [status] }
318-
ibexa_content_version_idx_ver: { fields: [contentobject_id, version] }
319318
ibexa_content_version_idx_status: { fields: [contentobject_id, status] }
320319
ibexa_content_version_creator_id: { fields: [creator_id] }
320+
uniqueConstraints:
321+
ibexa_content_version_idx_ver: { fields: [contentobject_id, version] }
321322
id:
322323
id: { type: integer, nullable: false, options: { autoincrement: true } }
323324
fields:

0 commit comments

Comments
 (0)