1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-24 08:42:19 +02:00

Add test to ensure Identity is maintained on Id column during migration

This commit is contained in:
Qstick 2021-12-21 18:11:24 -06:00 committed by Mark McDowall
parent 385a756a7e
commit 60b4e14522

View File

@ -33,6 +33,7 @@ public void should_parse_table_language_flavors(string sql, string tableName, st
result.Name.Should().Be(tableName);
result.Columns.Count.Should().Be(1);
result.Columns.First().Name.Should().Be(columnName);
result.Columns.First().IsIdentity.Should().BeTrue();
}
[TestCase(@"CREATE INDEX TestIndex ON TestTable (MyId)", "TestIndex", "TestTable", "MyId")]