summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/SqliteAutoincrement.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-22 15:35:39 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-25 15:01:13 +0200
commitc7542c02dbc997d818e984dae23bdf1780843559 (patch)
treeeaa5e6b7230b531a4e5f494544be41449a0100f5 /lib/private/Repair/SqliteAutoincrement.php
parenta4b1d9feee79218268abcb0c20ed16bec82c993c (diff)
downloadnextcloud-server-c7542c02dbc997d818e984dae23bdf1780843559.tar.gz
nextcloud-server-c7542c02dbc997d818e984dae23bdf1780843559.zip
Introduce OCP\Migration\IRepairStep and adopt all repair steps to this new interface - refs #24198
Diffstat (limited to 'lib/private/Repair/SqliteAutoincrement.php')
-rw-r--r--lib/private/Repair/SqliteAutoincrement.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Repair/SqliteAutoincrement.php b/lib/private/Repair/SqliteAutoincrement.php
index d7cac57229d..e6f90dcece3 100644
--- a/lib/private/Repair/SqliteAutoincrement.php
+++ b/lib/private/Repair/SqliteAutoincrement.php
@@ -26,13 +26,14 @@ use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\SchemaDiff;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Schema\ColumnDiff;
-use OC\Hooks\BasicEmitter;
+use OCP\Migration\IOutput;
+use OCP\Migration\IRepairStep;
/**
* Fixes Sqlite autoincrement by forcing the SQLite table schemas to be
* altered in order to retrigger SQL schema generation through OCSqlitePlatform.
*/
-class SqliteAutoincrement extends BasicEmitter implements \OC\RepairStep {
+class SqliteAutoincrement implements IRepairStep {
/**
* @var \OC\DB\Connection
*/
@@ -52,7 +53,7 @@ class SqliteAutoincrement extends BasicEmitter implements \OC\RepairStep {
/**
* Fix mime types
*/
- public function run() {
+ public function run(IOutput $out) {
if (!$this->connection->getDatabasePlatform() instanceof SqlitePlatform) {
return;
}