Skip to content

Tests: Added drop and create schema helper methods#6786

Merged
morozov merged 1 commit intodoctrine:3.9.xfrom
cristi-contiu:helper-drop-create-schema
Feb 17, 2025
Merged

Tests: Added drop and create schema helper methods#6786
morozov merged 1 commit intodoctrine:3.9.xfrom
cristi-contiu:helper-drop-create-schema

Conversation

@cristi-contiu
Copy link
Contributor

Q A
Type improvement
Fixed issues N/A

Summary

Helper methods in tests for dropping and creating schemas for PostgreSQL and MS SQL Server. See #6773 (comment)

'default schema' => ['some_table'],
'unquoted schema' => ['test_drop_index_schema.some_table'],
'quoted schema' => ['"test_drop_index_schema".some_table'],
'unquoted schema' => ['other_schema.some_table'],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Intentionally changed the name so it conflicts with previous test

@cristi-contiu cristi-contiu marked this pull request as ready for review February 16, 2025 23:47
@morozov
Copy link
Member

morozov commented Feb 17, 2025

Looks great! Please squash everything into one commit.

@cristi-contiu cristi-contiu force-pushed the helper-drop-create-schema branch from 4220878 to 665ff4b Compare February 17, 2025 06:30
@cristi-contiu
Copy link
Contributor Author

cristi-contiu commented Feb 17, 2025

@morozov Done. Let me know if I can assist in porting this and the other PRs into 4.2.x.

@morozov morozov merged commit 73c7ccd into doctrine:3.9.x Feb 17, 2025
68 checks passed
@morozov
Copy link
Member

morozov commented Feb 17, 2025

The merge up PR is #6792 if you want to take a look.

@morozov
Copy link
Member

morozov commented Feb 17, 2025

@cristi-contiu once #6793 is merged, do you want to give it a try and replace string $schemaName with UnqualifiedName $schemaName in 4.3.x? This will get rid of the usage of deprecated methods and will unblock merging this code up to 5.0.x where those methods are already removed.

UPD: I did it myself: #6794 (sorry, was just going to check if there were any caveats and ended up writing all the code 🤪).

@cristi-contiu
Copy link
Contributor Author

@morozov They all look good, thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants