Skip to content
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

TODO: DBSchemaManager::requireTable - Change detection for CREATE TABLE $options other than "ENGINE" #11028

Closed
sabina-talipova opened this issue Oct 18, 2023 · 3 comments

Comments

@sabina-talipova
Copy link
Contributor

Description

DBSchemaManager::requireTable - Change detection for CREATE TABLE $options other than "ENGINE"

See:

* @todo Change detection for CREATE TABLE $options other than "Engine"

@GuySartorelli
Copy link
Member

@sabina-talipova Do you know what this todo is actually asking for? It seems like one we might not have enough context for, and should perhaps close.

@sabina-talipova
Copy link
Contributor Author

I assume it's related to this part of the code:

if ($dbID && isset($options[$dbID])) {
if (preg_match('/ENGINE=([^\s]*)/', $options[$dbID] ?? '', $alteredEngineMatches)) {
$alteredEngine = $alteredEngineMatches[1];
$tableStatus = $this->query(sprintf('SHOW TABLE STATUS LIKE \'%s\'', $table))->record();
$tableOptionsChanged = ($tableStatus['Engine'] != $alteredEngine);
}
}

I'm not sure that is still actual.

@GuySartorelli
Copy link
Member

We aren't aware of any limitations or problems caused by the current implementation - I'd rather not poke the bear.

@GuySartorelli GuySartorelli closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants