-
Notifications
You must be signed in to change notification settings - Fork 38
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
_pum_subscribers table fails to create on MySQL 8.0.19+ due to VALUES keyword #876
Comments
@danieliser Do you think this is the source of all the subscriber-related tickets? I looked through the code to see what the Popup-Maker/classes/Newsletters.php Lines 179 to 195 in bd1541b
Do we use that data anywhere? What was its intended purpose? Is it still necessary? If we keep the field, what would be a better name? Maybe |
Yea it needs renamed, but that is 3 step process:
|
And no I'm not sure its used. Going forward we will likely be moving that all to a saas form so not sure its worth saving overall or just drop it for now. |
@danieliser I looked through the PUM_Newsletters class and the PUM_Admin_Subscribers_Table class and we do not seem to use the values column anywhere. On my local site, I deleted the data in the values column for my entries and received no errors when viewing the subscriber page or adding more subscribers. So, what should we do here? Do you want to drop the column or do the renaming process? We had several people post about this issue in the FB group just this weekend so we probably need to get this solved quickly. |
@fpcorso I say lets just drop it for now. It was likely put there for some future proofing, but never ended up being useful. |
@danieliser Ok. The easy first step is to remove that column from the install query which I can add to 1.12 now. Since those who experienced the error couldn't create the table anyways, do we need to build out a check/process for dropping the column on the existing tables or is removing it from the install query enough for this case? |
Removed all the |
@fpcorso I think just removing it and most importantly bumping the table version should do the trick for now. While you are at it, convert the version from a semantic style to a date style for better consistency and tracking of changes. For example given todays date.
Would become the following.
In the case there are multiple version changes in a single day, you simple append a |
@danieliser Updated the version in PUM_DB_Subscribers class. |
Describe the bug
Subscribers table not created when MySQL version is over 8.0.19 it appears due to the
values
field name being a reserved keyword.https://dev.mysql.com/doc/refman/8.0/en/values.html
Site information
MySQL 8.0.19+
Errors
Additional context
Tickets:
The text was updated successfully, but these errors were encountered: