diff --git a/appinfo/info.xml b/appinfo/info.xml index a8f7fa4..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 @@ -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, ]);