We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37747a8 + d4de0a4 commit e2efd0eCopy full SHA for e2efd0e
src/Model/Table/UsersTable.php
@@ -84,7 +84,9 @@ public function initialize(array $config): void
84
public function getSchema(): TableSchemaInterface
85
{
86
$schema = parent::getSchema();
87
- $schema->setColumnType('additional_data', 'json');
+ if ($schema->hasColumn('additional_data')) {
88
+ $schema->setColumnType('additional_data', 'json');
89
+ }
90
91
return $schema;
92
}
0 commit comments