Skip to content

Commit

Permalink
fix: Fix types used in Entity classes
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Dec 2, 2024
1 parent d02c2bf commit 5c12b76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions lib/Db/UserExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
namespace OCA\UserMigration\Db;

use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;

/**
* @method void setSourceUser(string $uid)
Expand All @@ -49,9 +50,9 @@ class UserExport extends Entity {
protected $status;

public function __construct() {
$this->addType('sourceUser', 'string');
$this->addType('migrators', 'string');
$this->addType('status', 'int');
$this->addType('sourceUser', Types::STRING);
$this->addType('migrators', Types::STRING);
$this->addType('status', Types::INTEGER);
}

/**
Expand Down
11 changes: 6 additions & 5 deletions lib/Db/UserImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
namespace OCA\UserMigration\Db;

use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;

/**
* @method void setAuthor(string $uid)
Expand Down Expand Up @@ -56,11 +57,11 @@ class UserImport extends Entity {
protected $status;

public function __construct() {
$this->addType('author', 'string');
$this->addType('targetUser', 'string');
$this->addType('path', 'string');
$this->addType('migrators', 'string');
$this->addType('status', 'int');
$this->addType('author', Types::STRING);
$this->addType('targetUser', Types::STRING);
$this->addType('path', Types::STRING);
$this->addType('migrators', Types::STRING);
$this->addType('status', Types::INTEGER);
}

/**
Expand Down

0 comments on commit 5c12b76

Please sign in to comment.