Closed siemensikkema closed 5 years ago
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` []
ALTER TABLE `Product` []
The deleteConstraints value from FluentMySQLSchema is not copied to MySQLAlterTable here as there is no such property on that struct.
deleteConstraints
FluentMySQLSchema
MySQLAlterTable
This issue is similar to https://github.com/vapor/fluent-mysql-driver/pull/147
thanks @siemensikkema ! fixed here: https://github.com/vapor/fluent-mysql-driver/releases/tag/3.1.0
On version 3.0.2 when doing
No statement to delete the constraint is created:
ALTER TABLE `Product` []
The
deleteConstraints
value fromFluentMySQLSchema
is not copied toMySQLAlterTable
here as there is no such property on that struct.This issue is similar to https://github.com/vapor/fluent-mysql-driver/pull/147