From 7bf08871dd0e2bc857adae7fe3bdd240fa8db645 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 12 Aug 2026 11:15:24 +0200 Subject: [PATCH] fix(entity): Use ColumnType also in SnowflakeAwareEntity Signed-off-by: Carl Schwan --- lib/public/AppFramework/Db/SnowflakeAwareEntity.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/public/AppFramework/Db/SnowflakeAwareEntity.php b/lib/public/AppFramework/Db/SnowflakeAwareEntity.php index 5f68708a6ca..ab5ea1fd246 100644 --- a/lib/public/AppFramework/Db/SnowflakeAwareEntity.php +++ b/lib/public/AppFramework/Db/SnowflakeAwareEntity.php @@ -9,7 +9,7 @@ declare(strict_types=1); namespace OCP\AppFramework\Db; use OCP\AppFramework\Attribute\Consumable; -use OCP\DB\Types; +use OCP\DB\Schema\ColumnType; use OCP\Server; use OCP\Snowflake\ISnowflakeDecoder; use OCP\Snowflake\ISnowflakeGenerator; @@ -24,8 +24,8 @@ use OCP\Snowflake\Snowflake; abstract class SnowflakeAwareEntity extends Entity { protected ?Snowflake $snowflake = null; - /** @psalm-param $_fieldTypes array */ - protected array $_fieldTypes = ['id' => Types::STRING]; + /** @psalm-param $_fieldTypes array */ + protected array $_fieldTypes = ['id' => ColumnType::String]; /** * @since 33.0.0