-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix doctrine mapping & add integration test that fails on invalid schema #170
Conversation
b59c8b9
to
77dd85c
Compare
c39423b
to
8450e99
Compare
8450e99
to
b2764c4
Compare
tests/Integration/Repository/PublicKeyCredentialSourceRepositoryTest.php
Outdated
Show resolved
Hide resolved
Was not sufficient to only add |
Add test that asserts PublicKeyCredentialSource can be saved Add doctrine schema validate to pipeline Fix: Implement PublicKeyCredentialSource schema changes Prior to this change, the PublicKeyCredentialSource entity could not be saved, because a 3rd party web authn package which we extend PublicKeyCredentialSource from has new db fields. This resulted in sql errors. This change implements the required fields and adds a migration. Fixes #143 Caused by dd32c26#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R37 See web-auth/webauthn-framework#592 See https://github.com/web-auth/webauthn-framework/releases/tag/4.8.6
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.
b2764c4
to
ba929a4
Compare
Strictly speaking it would be sufficient. But because there is no integration tests, which are now made possible, I added this to see if it works and make a start to add coverage. I merged the first 2 commits. I left the last one in because it's not related to this ticket. |
This change: