Skip to content

Commit fa1e714

Browse files
Merge pull request #173 from hlnd/fix-compatibility-with-21
Use new types introduced in Nextcloud 21 and bump compatibility
2 parents 8a4e57b + 1ef871d commit fa1e714

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

appinfo/info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
Read the [documentation](https://github.com/nextcloud/user_external#readme) to learn how to configure it!
1818
]]></description>
19-
<version>1.0.0</version>
19+
<version>2.0.0</version>
2020
<licence>agpl</licence>
2121
<author>Robin Appelman</author>
2222
<types>
@@ -32,6 +32,6 @@ Read the [documentation](https://github.com/nextcloud/user_external#readme) to l
3232
<bugs>https://github.com/nextcloud/user_external/issues</bugs>
3333
<repository type="git">https://github.com/nextcloud/user_external.git</repository>
3434
<dependencies>
35-
<nextcloud min-version="17" max-version="20" />
35+
<nextcloud min-version="21" max-version="21" />
3636
</dependencies>
3737
</info>

lib/Migration/Version0010Date20200630193751.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
namespace OCA\User_external\Migration;
2727

2828
use Closure;
29-
use Doctrine\DBAL\Types\Type;
3029
use OCP\DB\ISchemaWrapper;
30+
use OCP\DB\Types;
3131
use OCP\Migration\IOutput;
3232
use OCP\Migration\SimpleMigrationStep;
3333

@@ -44,17 +44,17 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4444

4545
if (!$schema->hasTable('users_external')) {
4646
$table = $schema->createTable('users_external');
47-
$table->addColumn('backend', Type::STRING, [
47+
$table->addColumn('backend', Types::STRING, [
4848
'notnull' => true,
4949
'length' => 128,
5050
'default' => '',
5151
]);
52-
$table->addColumn('uid', Type::STRING, [
52+
$table->addColumn('uid', Types::STRING, [
5353
'notnull' => true,
5454
'length' => 64,
5555
'default' => '',
5656
]);
57-
$table->addColumn('displayname', Type::STRING, [
57+
$table->addColumn('displayname', Types::STRING, [
5858
'notnull' => false,
5959
'length' => 64,
6060
]);

0 commit comments

Comments
 (0)