-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TASK: Check against LiveWorkspaceName Instead Of Comparing CS Ids #5149
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,7 @@ public function __construct( | |
public function buildSchema(AbstractSchemaManager $schemaManager): Schema | ||
{ | ||
$schema = DbalSchemaFactory::createSchemaWithTables($schemaManager, [ | ||
$this->createUriTable(), | ||
$this->createLiveContentStreamsTable() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also a more general question: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question in general. Have the same issue with another table. But does it make sence to check for removal on each setup? How long? When will we remove the removal code? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Create" is a bit misleading here – it creates the schema for the table. There is no way to remove a schema here. |
||
$this->createUriTable() | ||
]); | ||
|
||
return $schema; | ||
|
@@ -67,13 +66,4 @@ private function createUriTable(): Table | |
], 'preceding_succeeding') | ||
->addIndex(['sitenodename', 'uripath'], null, [], ['lengths' => [null, 100]]); | ||
} | ||
|
||
private function createLiveContentStreamsTable(): Table | ||
{ | ||
$table = new Table($this->tableNamePrefix . '_livecontentstreams', [ | ||
DbalSchemaFactory::columnForContentStreamId('contentstreamid')->setNotNull(true), | ||
DbalSchemaFactory::columnForWorkspaceName('workspacename')->setDefault('') | ||
]); | ||
return $table->setPrimaryKey(['contentstreamid']); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a huge fan.... I would just leave this dangling, we can consider something for these cases after release...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im not a huge fan either from these hardcoded migrations, but Sebastian started introducing them and we can delete them at some point if we want. So thats why ill merge it.