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

To allow an optional force option when calling Sequalize.sync() #89

Closed
namiwang opened this issue Apr 15, 2020 · 3 comments
Closed

To allow an optional force option when calling Sequalize.sync() #89

namiwang opened this issue Apr 15, 2020 · 3 comments

Comments

@namiwang
Copy link

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Currently, SequelizeModuleOptions.synchronize is being typed as a boolean, which makes it impossible to pass in an additional { force: true } option.

ref:

@kamilmysliwiec
Copy link
Member

Would you like to create a PR for this issue?

@dcdourado
Copy link

You can use sync: { force: true } instead of synchronize option

@uharston
Copy link

uharston commented Jun 1, 2021

I know this issue is closed, but sync: { force: true } does not change the db script behavior on init. Right now it looks that synchronize: true | false is the only sync option available when using SequelizeModule.

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

No branches or pull requests

4 participants