sudo -u www-data php occ migrations:migrate core

# sudo -u www-data php occ migrations:migrate core
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
[Doctrine\DBAL\Schema\SchemaException]
The table with name 'owncloud.oc_accounts' already exists.
migrations:migrate <app> [<version>]