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

Support non-dbo schemas in schema dumper #1201

Merged
merged 9 commits into from
Jul 16, 2024
Merged

Conversation

aidanharan
Copy link
Contributor

@aidanharan aidanharan commented Jul 5, 2024

SQL Server supports databases having multiple schemas.

Previously the dumper:

  • Didn't generate the code to generate the schemas.
  • Only generated the code to create the tables within the "dbo" schema.

This PR will get the dumper to:

  • Generate the code to generate the non "dbo" schemas.
  • Generates the code to generate the tabes in all schema. The schema will only be included in tables that are not in the "dbo" schema.

Fixes issue #1155 for Rails 7.2

@aidanharan aidanharan changed the title Support non-dbo schemas in dumper Support non-dbo schemas in schema dumper Jul 15, 2024
@aidanharan aidanharan marked this pull request as ready for review July 16, 2024 13:46
@aidanharan aidanharan merged commit 0b61b94 into main Jul 16, 2024
5 checks passed
@aidanharan aidanharan deleted the dumper-non-dbo-table-schemas branch July 16, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant