Skip to content

Commit

Permalink
Change notNull to notNullable for consistency (knex#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleff authored Apr 16, 2020
1 parent 4c72e80 commit bc4fb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ export default [
type: "method",
method: "alter",
example: "column.alter()",
description: 'Marks the column as an alter / modify, instead of the default add. Note: This only works in .alterTable() and is not supported by SQlite or Amazon Redshift. Alter is *not* done incrementally over older column type so if you like to add `notNull` and keep the old default value, the alter statement must contain both `.notNull().defaultTo(1).alter()`. If one just tries to add `.notNull().alter()` the old default value will be dropped.',
description: 'Marks the column as an alter / modify, instead of the default add. Note: This only works in .alterTable() and is not supported by SQlite or Amazon Redshift. Alter is *not* done incrementally over older column type so if you like to add `notNullable` and keep the old default value, the alter statement must contain both `.notNullable().defaultTo(1).alter()`. If one just tries to add `.notNullable().alter()` the old default value will be dropped.',
children: [ ]
},
{
Expand Down

0 comments on commit bc4fb7e

Please sign in to comment.