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

Use not null by default for sqlite column definitions #1718

Merged
merged 1 commit into from
Apr 5, 2020
Merged

Use not null by default for sqlite column definitions #1718

merged 1 commit into from
Apr 5, 2020

Conversation

MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented Apr 5, 2020

Fixes #1446

This brings the SQLite adapter inline with all other adapters, making it so that all creates columns as NOT NULL by default. SQLite does have an annoying "bug" where a column can be NOT NULL without specifying a default on table creation, but cannot if appending it to an existing table. I've added a note to the docs about this

Either this PR or #1687 should be merged and the other should be closed.

The change to the MySQLAdapter is just cosmetic to make it match the other adapters.

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@sitedyno
Copy link

#1872 🏓

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

Successfully merging this pull request may close these issues.

3 participants