From bd610e28b5a07597b03c5341f19c0ab70cc25440 Mon Sep 17 00:00:00 2001 From: Ole Morten Date: Tue, 9 Mar 2021 20:28:00 +0100 Subject: [PATCH 1/2] Use new types introduced in Nextcloud 21 and bump compatibility Signed-off-by: Ole Morten --- appinfo/info.xml | 2 +- lib/Migration/Version0010Date20200630193751.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index a8f7fa4..2080e88 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -32,6 +32,6 @@ Read the [documentation](https://github.com/nextcloud/user_external#readme) to l https://github.com/nextcloud/user_external/issues https://github.com/nextcloud/user_external.git - + diff --git a/lib/Migration/Version0010Date20200630193751.php b/lib/Migration/Version0010Date20200630193751.php index e59a250..d1e6ba0 100644 --- a/lib/Migration/Version0010Date20200630193751.php +++ b/lib/Migration/Version0010Date20200630193751.php @@ -26,8 +26,8 @@ namespace OCA\User_external\Migration; use Closure; -use Doctrine\DBAL\Types\Type; use OCP\DB\ISchemaWrapper; +use OCP\DB\Types; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; @@ -44,17 +44,17 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if (!$schema->hasTable('users_external')) { $table = $schema->createTable('users_external'); - $table->addColumn('backend', Type::STRING, [ + $table->addColumn('backend', Types::STRING, [ 'notnull' => true, 'length' => 128, 'default' => '', ]); - $table->addColumn('uid', Type::STRING, [ + $table->addColumn('uid', Types::STRING, [ 'notnull' => true, 'length' => 64, 'default' => '', ]); - $table->addColumn('displayname', Type::STRING, [ + $table->addColumn('displayname', Types::STRING, [ 'notnull' => false, 'length' => 64, ]); From 1ef871d2f866b8dafbf1e7440be8f5722cd8c7f8 Mon Sep 17 00:00:00 2001 From: Jonas Sulzer Date: Sat, 10 Apr 2021 16:34:43 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=80=20RELEASE:=20v2.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Sulzer --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 2080e88..68134ea 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -16,7 +16,7 @@ Read the [documentation](https://github.com/nextcloud/user_external#readme) to learn how to configure it! ]]> - 1.0.0 + 2.0.0 agpl Robin Appelman