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

Turn off strict mode on import #3784

Merged
merged 14 commits into from May 24, 2022
Merged

Turn off strict mode on import #3784

merged 14 commits into from May 24, 2022

Conversation

dafeder
Copy link
Member

@dafeder dafeder commented May 16, 2022

Strict mode on innodb makes it hard to create tables over 200 columns, which has come up in real world use. This sets strict mode off simply at the session level for the datastore, and keeps it on for the rest of Drupal's operation.

This has been tested locally and successfully created a 252 column table in the same environment where it had previously failed.

@dafeder dafeder marked this pull request as ready for review May 16, 2022 22:55
Copy link
Contributor

@clayliddell clayliddell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Just one documentation suggestion.

modules/datastore/src/Plugin/QueueWorker/Import.php Outdated Show resolved Hide resolved
Co-authored-by: Clayton Liddell <clayton.liddell@civicactions.com>
@dafeder
Copy link
Member Author

dafeder commented May 17, 2022

Hmm committed your suggestions @clayliddell but seeing it's failing one of the PHPunit runs, but not the other. Weird, will take another look.

@dafeder
Copy link
Member Author

dafeder commented May 23, 2022

Moved this into the datastore's DatabaseTable class, after realizing that's where the table creation is actually happening.

1 similar comment
@dafeder
Copy link
Member Author

dafeder commented May 23, 2022

Moved this into the datastore's DatabaseTable class, after realizing that's where the table creation is actually happening.

Copy link
Contributor

@clayliddell clayliddell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 1 small thing. Trying not to be picky, but I wanted to call this out.

@clayliddell clayliddell merged commit 1eac8dc into 2.x May 24, 2022
@clayliddell clayliddell deleted the innodb-create-table branch May 24, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants