Skip to content

Commit 6b8117f

Browse files
Staubiiisteinkel
authored andcommitted
Only set column type for "additional_data" if column exists
1 parent d217813 commit 6b8117f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Model/Table/UsersTable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ public function initialize(array $config): void
9393
public function getSchema(): TableSchemaInterface
9494
{
9595
$schema = parent::getSchema();
96-
$schema->setColumnType('additional_data', 'json');
96+
if ($schema->hasColumn('additional_data')) {
97+
$schema->setColumnType('additional_data', 'json');
98+
}
9799

98100
return $schema;
99101
}

0 commit comments

Comments
 (0)