pressidium / pressidium-cookie-consent

🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
https://wordpress.org/plugins/pressidium-cookie-consent/
GNU General Public License v2.0
53 stars 4 forks source link

Database error on plugin reactivation #35

Closed over-engineer closed 1 year ago

over-engineer commented 1 year ago

Initially reported by @mohammad425 on #33:

when reactivating the plugin, a SQL error occurred due to the attempt to redefine a primary key. The error was specifically caused by the ALTER TABLE statement trying to change the primary key of the "pressidium_cookie_consents" table, which already existed in the database.

We have to check if the pressidium_cookie_consents table exists before attempting to (re)create it.

over-engineer commented 1 year ago

Related

over-engineer commented 1 year ago

This was addressed in 1.2.1, which was just released. Closing as resolved.