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

Check if DB table already exists before creating it #31

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

CodeShakingSheep
Copy link

Problem
I have the following error from this plugin when I want to upgrade my Roundcube installation.

18459 INFO DEBUG - ERROR: [1050] Table 'collected_contacts' already exists

Solution
Added conditional checks to the SQL scripts that only create the table if it doesn't exist.

Create table if not exists
Create table if not exists
Create table if not exists
Create table if not exists
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.

1 participant