diff --git a/appinfo/info.xml b/appinfo/info.xml index deb13fb..bfe877a 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -33,7 +33,7 @@ This way, the migration from Google Authenticator to OTP Manager will be quick a * [Official iOS App](https://apps.apple.com/us/app/nextcloud-otp-manager/id6471510170) ]]> - 0.3.3 + 0.3.4 agpl Matteo Convertino OtpManager diff --git a/lib/Migration/Version000010Date20240123120000.php b/lib/Migration/Version000010Date20240123120000.php new file mode 100644 index 0000000..9470a68 --- /dev/null +++ b/lib/Migration/Version000010Date20240123120000.php @@ -0,0 +1,40 @@ +getTable(Application::ACCOUNTS_DB); + + $secretCol = $table->getColumn("secret"); + $nameCol = $table->getColumn("name"); + $issuerCol = $table->getColumn("issuer"); + $digitsCol = $table->getColumn("digits"); + $periodCol = $table->getColumn("period"); + + $secretCol->setLength(512); + $nameCol->setLength(256); + $issuerCol->setLength(256); + $digitsCol->setNotnull(false); + $periodCol->setNotnull(false); + + return $schema; + } +} \ No newline at end of file