Migrate the twofactor_backupcodes app to bigint

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/6563/head
Joas Schilling 7 years ago
parent ce3bcf7e28
commit c58ff2990e
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
  1. 2
      apps/twofactor_backupcodes/appinfo/info.xml
  2. 25
      apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php

@ -5,7 +5,7 @@
<description>A two-factor auth backup codes provider</description>
<licence>agpl</licence>
<author>Christoph Wurst</author>
<version>1.2.2</version>
<version>1.2.3</version>
<namespace>TwoFactorBackupCodes</namespace>
<category>other</category>

@ -0,0 +1,25 @@
<?php
namespace OCA\TwoFactorBackupCodes\Migration;
use Doctrine\DBAL\Schema\Schema;
use OCP\Migration\BigIntMigration;
use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;
/**
* Auto-generated migration step: Please modify to your needs!
*/
class Version1002Date20170919101419 extends BigIntMigration {
/**
* @return array Returns an array with the following structure
* ['table1' => ['column1', 'column2'], ...]
* @since 13.0.0
*/
protected function getColumnsByTable() {
return [
'twofactor_backupcodes' => ['id'],
];
}
}
Loading…
Cancel
Save