Skip to content

Commit 44c7b98

Browse files
committed
fix: do not declare the id column type for autoincrement ones
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent f6ebb48 commit 44c7b98

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

lib/Db/Bill.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class Bill extends Entity implements \JsonSerializable {
6666
protected $deleted;
6767

6868
public function __construct() {
69-
$this->addType('id', Types::INTEGER);
7069
$this->addType('what', Types::STRING);
7170
$this->addType('comment', Types::STRING);
7271
$this->addType('payerId', Types::INTEGER);

lib/Db/BillOwer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class BillOwer extends Entity implements \JsonSerializable {
2727
protected $memberId;
2828

2929
public function __construct() {
30-
$this->addType('id', Types::INTEGER);
3130
$this->addType('billId', Types::INTEGER);
3231
$this->addType('memberId', Types::INTEGER);
3332
}

lib/Db/Member.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class Member extends Entity implements \JsonSerializable {
5151
private $avatarManager;
5252

5353
public function __construct() {
54-
$this->addType('id', Types::INTEGER);
5554
$this->addType('projectId', Types::STRING);
5655
$this->addType('name', Types::STRING);
5756
$this->addType('weight', Types::FLOAT);

0 commit comments

Comments
 (0)