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

Clearing user types wipes extension types #49349

Closed
simon-tma opened this issue Dec 12, 2023 · 2 comments · Fixed by #49358
Closed

Clearing user types wipes extension types #49349

simon-tma opened this issue Dec 12, 2023 · 2 comments · Fixed by #49358
Labels

Comments

@simon-tma
Copy link

Laravel Version

10.37.1

PHP Version

8.3.0

Database Driver & Version

Postgres 14 + Postgis

Description

After the inclusion of 57ae89a, dropping types is now also trying to drop types added by extensions (e.g. postgis). This is causing the database reset step of tests to fail.

  SQLSTATE[2BP01]: Dependent objects still exist: 7 ERROR:  cannot drop type spheroid because extension postgis requires it

Steps To Reproduce

  1. Add protected bool $dropTypes = true; to a feature test with multiple tests
  2. Configure the database to use Postgres and create the postgis extension
  3. Run the tests
@hafezdivandari
Copy link
Contributor

I sent PR #49358 for this.

@simon-tma
Copy link
Author

Thanks, can confirm this has fixed the issue for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants