SonarQube 5.61 -> 6.0 upgrade fails: Table 'projects' already exists
<p>After following the usual upgrade procedure to upgrade from 5.6.1 to 6.0, the SonarQube server doesn't start:</p>

<blockquote>
  <p>ActiveRecord::JDBCError: Table 'projects' already exists </p>
</blockquote>

<pre><code>CREATE TABLE `projects` (
    `id` int(11) auto_increment PRIMARY KEY, 
    `name` varchar(256), 
    `description` varchar(2000), 
    `enabled` tinyint(1) DEFAULT 1 NOT NULL, 
    `scope` varchar(3), 
    `qualifier` varchar(10), 
    `kee` varchar(400), 
    `root_id` integer, 
    `language` varchar(20), 
    `copy_resource_id` integer, 
    `long_name` varchar(256), 
    `person_id` integer, 
    `created_at` datetime
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin
</code></pre>

<p>This error happens when:</p>

<ul>
<li>Starting the 6.0 just after deploying the new distribution and
configuring it according to the upgrade procedure </li>
<li>It is configured to connect to the existing 5.6.1 database (same location,
credentials, etc..) running on MySQL 5.7</li>
<li>At that stage, I didn't run any db upgrade</li>
</ul>

<p>The same error occurs if I start again the sonarqube server</p>