Skip to content

Commit

Permalink
Use TEXT for column type
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu authored and craue committed Jan 10, 2024
1 parent da358b2 commit 70b3a3f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion Storage/DoctrineStorage.php
Expand Up @@ -152,7 +152,7 @@ private function tableExists() {
private function createTable() {
$table = new Table(self::TABLE, [
new Column($this->keyColumn, Type::getType(Types::STRING), ['length' => 255]),
new Column($this->valueColumn, Type::getType(Types::ARRAY), ['length' => 255]),
new Column($this->valueColumn, Type::getType(Types::TEXT)),
]);

$table->setPrimaryKey([$this->keyColumn]);
Expand Down
10 changes: 0 additions & 10 deletions phpstan-config.neon
Expand Up @@ -63,10 +63,6 @@ parameters:
-
message: '#^Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Result\|int\|string\.$#'
path: Storage/DoctrineStorage.php
# TODO remove as soon as Doctrine DBAL >= 3.0 is required
-
message: '#^Access to undefined constant Doctrine\\DBAL\\Types\\Type::(STRING|TARRAY)\.$#'
path: Storage/DoctrineStorage.php
# TODO remove as soon as Doctrine DBAL >= 3.1 is required
-
message: "#^Call to function method_exists\\(\\) with Doctrine\\\\DBAL\\\\Connection and 'createSchemaManager' will always evaluate to true\\.$#"
Expand All @@ -78,9 +74,3 @@ parameters:
Use \\{@see createSchemaManager\\(\\)\\} instead\\.$#
"""
path: Storage/DoctrineStorage.php
-
message: """
#^Fetching deprecated class constant ARRAY of class Doctrine\\\\DBAL\\\\Types\\\\Types:
Use \\{@link Types::JSON} instead\\.$#
"""
path: Storage/DoctrineStorage.php

0 comments on commit 70b3a3f

Please sign in to comment.