Skip to content

Commit a37e421

Browse files
authored
IBX-9941: Renamed content type version column to status (#77)
1 parent 7413323 commit a37e421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/Storage/Metrics/ContentTypesCountMetrics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class ContentTypesCountMetrics extends RepositoryConnectionAwareMetrics
1818
{
1919
private const string CONTENT_TYPE_TABLE = ContentTypeGateway::CONTENT_TYPE_TABLE;
2020
private const string ID_COLUMN = 'id';
21-
private const string VERSION_COLUMN = 'version';
21+
private const string STATUS_COLUMN = 'status';
2222

2323
/**
2424
* @throws \Doctrine\DBAL\Exception
@@ -30,7 +30,7 @@ public function getValue(): int
3030
->select($this->getCountExpression(self::ID_COLUMN))
3131
->from(self::CONTENT_TYPE_TABLE)
3232
->where(
33-
$queryBuilder->expr()->eq(self::VERSION_COLUMN, Type::STATUS_DEFINED)
33+
$queryBuilder->expr()->eq(self::STATUS_COLUMN, Type::STATUS_DEFINED)
3434
);
3535

3636
return (int) $queryBuilder->executeQuery()->fetchFirstColumn();

0 commit comments

Comments
 (0)