-
Notifications
You must be signed in to change notification settings - Fork 171
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
Fix handling of empty typed columns in Alter Table MySQL query and sanitize data-dictionary field names #3844
Conversation
The fix is relying on datastore_mysql_import, this is not enabled by default as it depends on specific db config.
When that module is enabled, all but the time columns import correctly.
sometimes the error looks like this
And if the format is left at 'default'
|
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.
I need more information on how time values are imported.
@@ -4,6 +4,7 @@ | |||
|
|||
use Drupal\Core\Database\StatementInterface; | |||
|
|||
use Drupal\datastore_mysql_import\Service\MysqlImport; |
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.
This module is not enabled by default.
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.
Can we move the sanitizing and truncating to common/src/Storage/AbstractDatabaseTable.php datastore/src/Storage/DatabaseTable.php
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.
OR maybe the sanitizing/truncating of things should be in Drupal\datastore\Plugin\QueueWorker\ImportJob.php
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.
Moved sanitizing/truncating methods to ImportJob.
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.
Excellent
This PR is intended to clean up some bugs in the
AlterTableQuery/MySQLQuery
class. The changes in this PR are:NULL
on import to avoid typing related errors in MySQL.QA Steps