sblaisot / automatic_addressbook

roundcube automatic-addressbook plugin
GNU General Public License v3.0
26 stars 14 forks source link

Check if DB table already exists before creating it #31

Open CodeShakingSheep opened 2 months ago

CodeShakingSheep commented 2 months ago

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.