DamienHarper / auditor

auditor, the missing audit log library
MIT License
164 stars 53 forks source link

audit:schema:update does not take into account default table options #221

Closed oleg-andreyev closed 2 weeks ago

oleg-andreyev commented 2 months ago
Q A
auditor version 3.0.1
PHP version 8.3.x
Database MySQL

Summary

Running ./bin/console audit:schema:update --dump-sql Return ALTER that does not change anything, problem is https://github.com/doctrine/DoctrineBundle/issues/1468#issuecomment-2374497663

Database return charset and collation, but when building schema does not know about this options, even if they are defined on connection level.

\DH\Auditor\Provider\Doctrine\Persistence\Helper\SchemaHelper::getAuditTableColumns

Current behavior

ALTER that does not make sense.

image image

How to reproduce

-

Expected behavior

inherit default_table_options from config