]> source.dussan.org Git - nextcloud-server.git/commitdiff
Register new command db:add-missing-primary-keys 24106/head
authorMichaIng <micha@dietpi.com>
Thu, 12 Nov 2020 23:02:05 +0000 (00:02 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 13 Nov 2020 14:41:51 +0000 (14:41 +0000)
Introduced with: https://github.com/nextcloud/server/commit/d5df033ede1f2b19b87c365b1f808130023edf17

Signed-off-by: MichaIng <micha@dietpi.com>
core/register_command.php

index 840c73484bf62b943faa0b3342fea8bc5e89ae6c..507dcfc3d418bd132e88b138200c0cdd46172272 100644 (file)
@@ -101,6 +101,7 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) {
        $application->add(new OC\Core\Command\Db\ConvertFilecacheBigInt(\OC::$server->getDatabaseConnection()));
        $application->add(new OC\Core\Command\Db\AddMissingIndices(\OC::$server->getDatabaseConnection(), \OC::$server->getEventDispatcher()));
        $application->add(new OC\Core\Command\Db\AddMissingColumns(\OC::$server->getDatabaseConnection(), \OC::$server->getEventDispatcher()));
+       $application->add(new OC\Core\Command\Db\AddMissingPrimaryKeys(\OC::$server->getDatabaseConnection(), \OC::$server->getEventDispatcher()));
        $application->add(new OC\Core\Command\Db\Migrations\StatusCommand(\OC::$server->getDatabaseConnection()));
        $application->add(new OC\Core\Command\Db\Migrations\MigrateCommand(\OC::$server->getDatabaseConnection()));
        $application->add(new OC\Core\Command\Db\Migrations\GenerateCommand(\OC::$server->getDatabaseConnection(), \OC::$server->getAppManager()));