Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <github@dartcafe.de>
  • Loading branch information
dartcafe committed Nov 3, 2024
1 parent a17df6e commit e731b3c
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 56 deletions.
6 changes: 3 additions & 3 deletions lib/Db/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class Comment extends EntityWithUser implements JsonSerializable {
protected int $parent = 0;

public function __construct() {
$this->addType('pollId', 'int');
$this->addType('timestamp', 'int');
$this->addType('deleted', 'int');
$this->addType('pollId', 'integer');
$this->addType('timestamp', 'integer');
$this->addType('deleted', 'integer');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Db/EntityWithUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ abstract class EntityWithUser extends Entity {

public function __construct() {
// joined Attributes
$this->addType('anonymized', 'int');
$this->addType('poll_expire', 'int');
$this->addType('anonymized', 'integer');
$this->addType('poll_expire', 'integer');
}
/**
* Anonymized the user completely (ANON_FULL) or just strips out personal information
Expand Down
6 changes: 3 additions & 3 deletions lib/Db/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class Log extends Entity implements JsonSerializable {
protected int $processed = 0;

public function __construct() {
$this->addType('pollId', 'int');
$this->addType('created', 'int');
$this->addType('processed', 'int');
$this->addType('pollId', 'integer');
$this->addType('created', 'integer');
$this->addType('processed', 'integer');
}

/**
Expand Down
30 changes: 15 additions & 15 deletions lib/Db/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ class Option extends EntityWithUser implements JsonSerializable {
protected int $showResults = 0;

public function __construct() {
$this->addType('released', 'int');
$this->addType('pollId', 'int');
$this->addType('timestamp', 'int');
$this->addType('order', 'int');
$this->addType('confirmed', 'int');
$this->addType('duration', 'int');
$this->addType('deleted', 'int');
$this->addType('released', 'integer');
$this->addType('pollId', 'integer');
$this->addType('timestamp', 'integer');
$this->addType('order', 'integer');
$this->addType('confirmed', 'integer');
$this->addType('duration', 'integer');
$this->addType('deleted', 'integer');

// joined Attributes
$this->addType('optionLimit', 'int');
$this->addType('voteLimit', 'int');
$this->addType('userCountYesVotes', 'int');
$this->addType('countOptionVotes', 'int');
$this->addType('votesYes', 'int');
$this->addType('votesNo', 'int');
$this->addType('votesMaybe', 'int');
$this->addType('showResults', 'int');
$this->addType('optionLimit', 'integer');
$this->addType('voteLimit', 'integer');
$this->addType('userCountYesVotes', 'integer');
$this->addType('countOptionVotes', 'integer');
$this->addType('votesYes', 'integer');
$this->addType('votesNo', 'integer');
$this->addType('votesMaybe', 'integer');
$this->addType('showResults', 'integer');
}

/**
Expand Down
40 changes: 20 additions & 20 deletions lib/Db/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,30 +162,30 @@ class Poll extends EntityWithUser implements JsonSerializable {
protected int $currentUserCountVotesYes = 0;

public function __construct() {
$this->addType('created', 'int');
$this->addType('expire', 'int');
$this->addType('deleted', 'int');
$this->addType('anonymous', 'int');
$this->addType('allowComment', 'int');
$this->addType('allowMaybe', 'int');
$this->addType('proposalsExpire', 'int');
$this->addType('voteLimit', 'int');
$this->addType('optionLimit', 'int');
$this->addType('adminAccess', 'int');
$this->addType('hideBookedUp', 'int');
$this->addType('useNo', 'int');
$this->addType('lastInteraction', 'int');
$this->addType('created', 'integer');
$this->addType('expire', 'integer');
$this->addType('deleted', 'integer');
$this->addType('anonymous', 'integer');
$this->addType('allowComment', 'integer');
$this->addType('allowMaybe', 'integer');
$this->addType('proposalsExpire', 'integer');
$this->addType('voteLimit', 'integer');
$this->addType('optionLimit', 'integer');
$this->addType('adminAccess', 'integer');
$this->addType('hideBookedUp', 'integer');
$this->addType('useNo', 'integer');
$this->addType('lastInteraction', 'integer');

// joined columns
$this->addType('isCurrentUserLocked', 'int');
$this->addType('maxDate', 'int');
$this->addType('minDate', 'int');
$this->addType('countOptions', 'int');
$this->addType('isCurrentUserLocked', 'integer');
$this->addType('maxDate', 'integer');
$this->addType('minDate', 'integer');
$this->addType('countOptions', 'integer');

// subqueried columns
$this->addType('currentUserCountVotes', 'int');
$this->addType('currentUserCountVotesYes', 'int');
$this->addType('currentUserCountOrphanedVotes', 'int');
$this->addType('currentUserCountVotes', 'integer');
$this->addType('currentUserCountVotesYes', 'integer');
$this->addType('currentUserCountOrphanedVotes', 'integer');

$this->urlGenerator = Container::queryClass(IURLGenerator::class);
$this->userSession = Container::queryClass(UserSession::class);
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Preferences extends Entity implements JsonSerializable {
protected ?string $preferences = '';

public function __construct() {
$this->addType('timestamp', 'int');
$this->addType('timestamp', 'integer');

// initialize with default values
$this->setPreferences(json_encode(self::DEFAULT));
Expand Down
10 changes: 5 additions & 5 deletions lib/Db/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ class Share extends EntityWithUser implements JsonSerializable {
protected int $voted = 0;

public function __construct() {
$this->addType('pollId', 'int');
$this->addType('invitationSent', 'int');
$this->addType('locked', 'int');
$this->addType('reminderSent', 'int');
$this->addType('deleted', 'int');
$this->addType('pollId', 'integer');
$this->addType('invitationSent', 'integer');
$this->addType('locked', 'integer');
$this->addType('reminderSent', 'integer');
$this->addType('deleted', 'integer');
$this->urlGenerator = Server::get(IURLGenerator::class);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Subscription extends Entity implements JsonSerializable {


public function __construct() {
$this->addType('pollId', 'int');
$this->addType('pollId', 'integer');
}

/**
Expand Down
8 changes: 4 additions & 4 deletions lib/Db/Vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class Vote extends EntityWithUser implements JsonSerializable {
protected ?int $optionId = null;

public function __construct() {
$this->addType('id', 'int');
$this->addType('pollId', 'int');
$this->addType('voteOptionId', 'int');
$this->addType('deleted', 'int');
$this->addType('id', 'integer');
$this->addType('pollId', 'integer');
$this->addType('voteOptionId', 'integer');
$this->addType('deleted', 'integer');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Db/Watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class Watch extends Entity implements JsonSerializable {
protected string $sessionId = '';

public function __construct() {
$this->addType('pollId', 'int');
$this->addType('updated', 'int');
$this->addType('pollId', 'integer');
$this->addType('updated', 'integer');
}

/**
Expand Down

0 comments on commit e731b3c

Please sign in to comment.