Skip to content

Commit 3bfe067

Browse files
JaBistDuNarrischJaBistDuNarrisch
authored andcommitted
Remove column default value test
1 parent 5e957cf commit 3bfe067

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Migrator.Tests/Providers/Generic/Generic_DefaultValueTestsBase.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,19 @@ public void DefaultValue_ConvertStringToNotNull_DoesNotThrow()
3232

3333
Provider.ChangeColumn(tableNameSource, new Column(columnName1Target, DbType.String, ColumnProperty.Null));
3434
}
35+
36+
[Test]
37+
public void RemoveColumnDefaultValue_DoesNotThrow()
38+
{
39+
const string tableNameSource = "TableName";
40+
const string columnName1 = "ColumnName1";
41+
42+
Provider.AddTable(tableNameSource,
43+
new Column(columnName1, DbType.Int32, ColumnProperty.NotNull, 10)
44+
);
45+
46+
Provider.RemoveColumnDefaultValue(tableNameSource, columnName1);
47+
48+
Provider.ChangeColumn(tableNameSource, new Column(columnName1, DbType.Int32, ColumnProperty.Null));
49+
}
3550
}

0 commit comments

Comments
 (0)