Skip to content

Commit

Permalink
TASK: Add unique index currentContentStreamId in _workspace table
Browse files Browse the repository at this point in the history
currently nothing prevents two workspaces having the same content stream
  • Loading branch information
mhsdesign committed Oct 17, 2024
1 parent 29e8c48 commit 3b39d1c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ private function createWorkspaceTable(): Table
(new Column('status', self::type(Types::BINARY)))->setLength(20)->setNotnull(false),
]);

$workspaceTable->addUniqueIndex(['currentContentStreamId']);

return $workspaceTable->setPrimaryKey(['name']);
}

Expand Down

0 comments on commit 3b39d1c

Please sign in to comment.