On SQL Server and may be on others as well a unique index is created if using ColumnProperty.Unique.
If the ColumnProperty.Unique is removed by changing the column using ChangeColumn(), the unique index is not removed.
This one is tricky since it could remove an index that was intended and that matches the naming pattern used in ChangeColumn().
|
[Test, Ignore("This issue is not yet fixed. See https://github.com/dotnetprojects/Migrator.NET/issues/132")] |
=> Remove Ignore in test after fix
|
AddUniqueConstraint(string.Format("UX_{0}_{1}", table, column.Name), table, [column.Name]); |
On
SQL Serverand may be on others as well a unique index is created if usingColumnProperty.Unique.If the
ColumnProperty.Uniqueis removed by changing the column usingChangeColumn(), the unique index is not removed.This one is tricky since it could remove an index that was intended and that matches the naming pattern used in
ChangeColumn().Migrator.NET/src/Migrator.Tests/Providers/SQLServer/SQLServerTransformationProvider_ChangeColumnTests.cs
Line 39 in 00fbba4
=> Remove
Ignorein test after fixMigrator.NET/src/Migrator/Providers/TransformationProvider.cs
Line 562 in d17eab4