Unable to remove constraints in update
siemensikkema opened this issue · comments
Siemen Sikkema commented
On version 3.0.2 when doing
return Database.update(Product.self, on: conn) { updater in
updater.deleteConstraint(.constraint(.notNull, .keyPath(\Product.someProperty)))
}
No statement to delete the constraint is created: ALTER TABLE `Product` []
The deleteConstraints
value from FluentMySQLSchema
is not copied to MySQLAlterTable
here as there is no such property on that struct.
This issue is similar to #147
Tanner commented
thanks @siemensikkema !
fixed here: https://github.com/vapor/fluent-mysql-driver/releases/tag/3.1.0