Allows us to force consumers to do exactly one alteration to a column.
Basically, deny the following:
db.schema.alterTable('person').alterColumn('age', (ac) => ac) Copy
db.schema.alterTable('person').alterColumn('age', (ac) => ac)
db.schema.alterTable('person').alterColumn('age', (ac) => ac.dropNotNull().setNotNull()) Copy
db.schema.alterTable('person').alterColumn('age', (ac) => ac.dropNotNull().setNotNull())
Which would now throw a compilation error, instead of a runtime error.
Generated using TypeDoc
Allows us to force consumers to do exactly one alteration to a column.
Basically, deny the following:
Which would now throw a compilation error, instead of a runtime error.