0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

🎨 use nullable(false) for knex schema builder (#7511)

refs #7470
This commit is contained in:
Katharina Irrgang 2016-10-07 11:17:39 +02:00 committed by Hannah Wolfe
parent c8691a85c5
commit f9561eed29

View file

@ -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();