Merge pull request #173 from hlnd/fix-compatibility-with-21

Use new types introduced in Nextcloud 21 and bump compatibility
This commit is contained in:
violoncello.ch
2021-04-10 16:35:25 +02:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
Read the [documentation](https://github.com/nextcloud/user_external#readme) to learn how to configure it! Read the [documentation](https://github.com/nextcloud/user_external#readme) to learn how to configure it!
]]></description> ]]></description>
<version>1.0.0</version> <version>2.0.0</version>
<licence>agpl</licence> <licence>agpl</licence>
<author>Robin Appelman</author> <author>Robin Appelman</author>
<types> <types>
@@ -32,6 +32,6 @@ Read the [documentation](https://github.com/nextcloud/user_external#readme) to l
<bugs>https://github.com/nextcloud/user_external/issues</bugs> <bugs>https://github.com/nextcloud/user_external/issues</bugs>
<repository type="git">https://github.com/nextcloud/user_external.git</repository> <repository type="git">https://github.com/nextcloud/user_external.git</repository>
<dependencies> <dependencies>
<nextcloud min-version="17" max-version="20" /> <nextcloud min-version="21" max-version="21" />
</dependencies> </dependencies>
</info> </info>

View File

@@ -26,8 +26,8 @@ declare(strict_types=1);
namespace OCA\User_external\Migration; namespace OCA\User_external\Migration;
use Closure; use Closure;
use Doctrine\DBAL\Types\Type;
use OCP\DB\ISchemaWrapper; use OCP\DB\ISchemaWrapper;
use OCP\DB\Types;
use OCP\Migration\IOutput; use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep; use OCP\Migration\SimpleMigrationStep;
@@ -44,17 +44,17 @@ class Version0010Date20200630193751 extends SimpleMigrationStep {
if (!$schema->hasTable('users_external')) { if (!$schema->hasTable('users_external')) {
$table = $schema->createTable('users_external'); $table = $schema->createTable('users_external');
$table->addColumn('backend', Type::STRING, [ $table->addColumn('backend', Types::STRING, [
'notnull' => true, 'notnull' => true,
'length' => 128, 'length' => 128,
'default' => '', 'default' => '',
]); ]);
$table->addColumn('uid', Type::STRING, [ $table->addColumn('uid', Types::STRING, [
'notnull' => true, 'notnull' => true,
'length' => 64, 'length' => 64,
'default' => '', 'default' => '',
]); ]);
$table->addColumn('displayname', Type::STRING, [ $table->addColumn('displayname', Types::STRING, [
'notnull' => false, 'notnull' => false,
'length' => 64, 'length' => 64,
]); ]);