Skip to content
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

Don't throw on deleteAttribute if column doesn't exist #470

Merged
merged 7 commits into from
Nov 8, 2024

Conversation

PineappleIOnic
Copy link
Member

@PineappleIOnic PineappleIOnic commented Nov 5, 2024

This PR makes it so that when you deleteAttributes, if the column for the attribute does not exist, the adapter will still return true so the metadata can be cleaned up appropriately. Tests are not included for this as replicating the environment for this isn't easy with the tests architecture we have

Copy link
Member

@abnegate abnegate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a test to make sure this works as expected

src/Database/Adapter/MariaDB.php Outdated Show resolved Hide resolved
src/Database/Adapter/Postgres.php Outdated Show resolved Hide resolved
tests/e2e/Adapter/MariaDBTest.php Outdated Show resolved Hide resolved
tests/e2e/Adapter/Base.php Show resolved Hide resolved
@abnegate abnegate merged commit 4895188 into 0.53.x Nov 8, 2024
15 checks passed
@abnegate abnegate deleted the 0.53.x-success-on-missing-attribute-delete branch November 8, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants