From 954bcafe8dfbff161d6436e9bce2b1fb8a5d12ff Mon Sep 17 00:00:00 2001
From: matteo-convertino <74453395+matteo-convertino@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:30:07 +0000
Subject: [PATCH] solved issue: #17
---
appinfo/info.xml | 2 +-
.../Version000010Date20240123120000.php | 40 +++++++++++++++++++
2 files changed, 41 insertions(+), 1 deletion(-)
create mode 100644 lib/Migration/Version000010Date20240123120000.php
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