Skip to content

Commit

Permalink
🎨 use nullable(false) for knex schema builder (#7511)
Browse files Browse the repository at this point in the history
refs #7470
  • Loading branch information
kirrg001 authored and ErisDS committed Oct 7, 2016
1 parent c8691a8 commit f9561ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/data/schema/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function addTableColumn(tableName, table, columnName) {
if (columnSpec.hasOwnProperty('nullable') && columnSpec.nullable === true) {
column.nullable();
} else {
column.notNullable();
column.nullable(false);
}
if (columnSpec.hasOwnProperty('primary') && columnSpec.primary === true) {
column.primary();
Expand Down

0 comments on commit f9561ee

Please sign in to comment.