Skip to content

Commit

Permalink
Merge pull request #173 from hlnd/fix-compatibility-with-21
Browse files Browse the repository at this point in the history
Use new types introduced in Nextcloud 21 and bump compatibility
  • Loading branch information
violoncelloCH authored Apr 10, 2021
2 parents 8a4e57b + 1ef871d commit fa1e714
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Read the [documentation](https://github.com/nextcloud/user_external#readme) to learn how to configure it!
]]></description>
<version>1.0.0</version>
<version>2.0.0</version>
<licence>agpl</licence>
<author>Robin Appelman</author>
<types>
Expand All @@ -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>
<repository type="git">https://github.com/nextcloud/user_external.git</repository>
<dependencies>
<nextcloud min-version="17" max-version="20" />
<nextcloud min-version="21" max-version="21" />
</dependencies>
</info>
8 changes: 4 additions & 4 deletions lib/Migration/Version0010Date20200630193751.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
]);
Expand Down

0 comments on commit fa1e714

Please sign in to comment.