Skip to content

Commit

Permalink
Fix doctrine mapping
Browse files Browse the repository at this point in the history
Prior to this change, doctrine would detect changes in the entity mapping vs the actual database schema.

```sql
ALTER TABLE users CHANGE icon icon VARCHAR(255) DEFAULT NULL;
ALTER TABLE public_key_credential_sources CHANGE other_ui other_ui LONGTEXT DEFAULT NULL COMMENT '(DC2Type:array)';
```

This changes tells doctrine the correct MySQL version, so it no longer wants to change the database.
  • Loading branch information
johanib committed Jan 9, 2025
1 parent a6090a4 commit c39423b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.6'
server_version: '10.6.19-MariaDB'
charset: utf8mb4
default_table_options:
charset: utf8mb4
Expand Down

0 comments on commit c39423b

Please sign in to comment.