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