aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php')
-rw-r--r--apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php b/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php
index 93ac3161670..c759caf515f 100644
--- a/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php
+++ b/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php
@@ -25,6 +25,7 @@
namespace OCA\TwoFactorBackupCodes\Migration;
use Doctrine\DBAL\Types\Type;
+use Doctrine\DBAL\Types\Types;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
@@ -47,8 +48,8 @@ class Version1002Date20170919123342 extends SimpleMigrationStep {
$column->setDefault('');
$column = $table->getColumn('used');
- if ($column->getType()->getName() !== Type::SMALLINT) {
- $column->setType(Type::getType(Type::SMALLINT));
+ if ($column->getType()->getName() !== Types::SMALLINT) {
+ $column->setType(Type::getType(Types::SMALLINT));
$column->setOptions(['length' => 6]);
}