diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-19 12:31:49 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-09-29 11:10:57 +0200 |
commit | c58ff2990e2a15a69be0e5487a5c6fa3458ac0bd (patch) | |
tree | 63232895e48ee63a59a662777e29ef1943943811 | |
parent | ce3bcf7e284f865284da94b53817f61c17cc6b08 (diff) | |
download | nextcloud-server-c58ff2990e2a15a69be0e5487a5c6fa3458ac0bd.tar.gz nextcloud-server-c58ff2990e2a15a69be0e5487a5c6fa3458ac0bd.zip |
Migrate the twofactor_backupcodes app to bigint
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/twofactor_backupcodes/appinfo/info.xml | 2 | ||||
-rw-r--r-- | apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/apps/twofactor_backupcodes/appinfo/info.xml b/apps/twofactor_backupcodes/appinfo/info.xml index 0002d0dcf0c..18728a7047a 100644 --- a/apps/twofactor_backupcodes/appinfo/info.xml +++ b/apps/twofactor_backupcodes/appinfo/info.xml @@ -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> diff --git a/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php b/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php new file mode 100644 index 00000000000..60fbcf796ed --- /dev/null +++ b/apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919101419.php @@ -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'], + ]; + } + +} |