From 29e8c481d2fc72f8a063617fd45be59cc2ad4489 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:13:41 +0200 Subject: [PATCH] TASK: Set for the `_contentstream` table the `id` as primary key --- .../src/DoctrineDbalContentGraphSchemaBuilder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php b/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php index e10b4f16c62..8afeadd811f 100644 --- a/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php +++ b/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php @@ -123,7 +123,7 @@ private function createWorkspaceTable(): Table private function createContentStreamTable(): Table { - return self::createTable($this->tableNames->contentStream(), [ + $contentStreamTable = self::createTable($this->tableNames->contentStream(), [ DbalSchemaFactory::columnForContentStreamId('id')->setNotnull(true), (new Column('version', Type::getType(Types::INTEGER)))->setNotnull(true), DbalSchemaFactory::columnForContentStreamId('sourceContentStreamId')->setNotnull(false), @@ -131,6 +131,8 @@ private function createContentStreamTable(): Table (new Column('status', Type::getType(Types::BINARY)))->setLength(20)->setNotnull(true), (new Column('removed', Type::getType(Types::BOOLEAN)))->setDefault(false)->setNotnull(false) ]); + + return $contentStreamTable->setPrimaryKey(['id']); } /**