Skip to content

Commit

Permalink
chore: replace int db types with integer
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Oct 22, 2024
1 parent 1c9b6e5 commit 0097fc1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions lib/Db/Alias.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ class Alias extends Entity implements JsonSerializable {
protected $smimeCertificateId;

public function __construct() {
$this->addType('accountId', 'int');
$this->addType('accountId', 'integer');
$this->addType('name', 'string');
$this->addType('alias', 'string');
$this->addType('provisioningId', 'int');
$this->addType('signatureMode', 'int');
$this->addType('smimeCertificateId', 'int');
$this->addType('provisioningId', 'integer');
$this->addType('signatureMode', 'integer');
$this->addType('smimeCertificateId', 'integer');
}

public function isProvisioned(): bool {
Expand Down
10 changes: 5 additions & 5 deletions lib/Db/Classifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ class Classifier extends Entity {
protected $createdAt;

public function __construct() {
$this->addType('accountId', 'int');
$this->addType('accountId', 'integer');
$this->addType('type', 'string');
$this->addType('appVersion', 'string');
$this->addType('trainingSetSize', 'int');
$this->addType('validationSetSize', 'int');
$this->addType('trainingSetSize', 'integer');
$this->addType('validationSetSize', 'integer');
$this->addType('recallImportant', 'float');
$this->addType('precisionImportant', 'float');
$this->addType('f1ScoreImportant', 'float');
$this->addType('duration', 'int');
$this->addType('duration', 'integer');
$this->addType('active', 'boolean');
$this->addType('createdAt', 'int');
$this->addType('createdAt', 'integer');
}
}
2 changes: 1 addition & 1 deletion lib/Db/MailAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function __construct(array $params = []) {
$this->addType('sieveEnabled', 'boolean');
$this->addType('sievePort', 'integer');
$this->addType('signatureAboveQuote', 'boolean');
$this->addType('signatureMode', 'int');
$this->addType('signatureMode', 'integer');
$this->addType('smimeCertificateId', 'integer');
$this->addType('quotaPercentage', 'integer');
$this->addType('trashRetentionDays', 'integer');
Expand Down

0 comments on commit 0097fc1

Please sign in to comment.