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

sequelize.sync() does not create schemas #17041

Open
2 of 6 tasks
CoryGH opened this issue Feb 4, 2024 · 3 comments
Open
2 of 6 tasks

sequelize.sync() does not create schemas #17041

CoryGH opened this issue Feb 4, 2024 · 3 comments
Labels
type: feature For issues and PRs. For new features. Never breaking changes.

Comments

@CoryGH
Copy link

CoryGH commented Feb 4, 2024

Feature Description

Describe the feature you'd like to see implemented

I'd like to see sequalize.sync() and model.create() be extended to be able to create schemas within the database if the schema called for does not currently exist to allow for fully-sequalized initialization of databases without the need to call upon postgresql/mysql/etc specific libraries as necessary.

As a separate item, it would also be nice if there were a way to tell the initial Sequelize().constructor(database, username, password, options) call to create the database if it does not already exist, assuming the user+pass combination for the server allows that level of access.

Describe why you would like this feature to be added to Sequelize

It seems odd sequelize does not already have it and would reduce the complexity of downstream code.

Is this feature dialect-specific?

  • No. This feature is relevant to Sequelize as a whole.
  • Yes. This feature only applies to the following dialect(s): different adapters would be needed for different dialects.

Would you be willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time and I know how to start.
  • Yes, I have the time but I will need guidance.
  • No, I don't have the time, but my company or I are supporting Sequelize through donations on OpenCollective.
  • No, I don't have the time, and I understand that I will need to wait until someone from the community or maintainers is interested in implementing my feature.

Indicate your interest in the addition of this feature by adding the 👍 reaction. Comments such as "+1" will be removed.

@CoryGH CoryGH added pending-approval Bug reports that have not been verified yet, or feature requests that have not been accepted yet type: feature For issues and PRs. For new features. Never breaking changes. labels Feb 4, 2024
@daifuyang
Copy link

same as i

@ephys ephys removed the pending-approval Bug reports that have not been verified yet, or feature requests that have not been accepted yet label Feb 8, 2024
@yumin2002
Copy link

Can I work on this issue?

@ephys
Copy link
Member

ephys commented Apr 2, 2024

Sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature For issues and PRs. For new features. Never breaking changes.
Projects
None yet
Development

No branches or pull requests

4 participants