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

Set the default allowNull: false globally #13439

Closed
zq0904 opened this issue Aug 13, 2021 · 4 comments
Closed

Set the default allowNull: false globally #13439

zq0904 opened this issue Aug 13, 2021 · 4 comments
Labels
type: feature For issues and PRs. For new features. Never breaking changes.

Comments

@zq0904
Copy link

zq0904 commented Aug 13, 2021

First of all I want to thank you for this great project!

original intention

  1. I don't want allowNull: false on every field, it's really troublesome
  2. I personally think rigor is great. It is possible to determine the type of the query instead of null or some other type
    Referred to this but this issue has been closed

Hope to support:

new Sequelize("db", "user", "pass", {
    define: {
        allowNull: false
    }
})
@r0ulito
Copy link

r0ulito commented Sep 7, 2021

I'm facing the same problem today. It's really disturbing that you have to set allowNull to false for every fields when I'm used to set only a few fields to nullable. DRY principle is not applicable there

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂

@github-actions github-actions bot added stale and removed stale labels Oct 27, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2021

This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂

@github-actions github-actions bot added the stale label Nov 4, 2021
@fzn0x fzn0x added type: feature For issues and PRs. For new features. Never breaking changes. and removed stale labels Apr 4, 2022
@fzn0x fzn0x reopened this Apr 4, 2022
@ephys
Copy link
Member

ephys commented Apr 16, 2022

Regrouped under #14260

@ephys ephys closed this as completed Apr 16, 2022
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