From 60b4e14522f77fb987d04ed6c19c07803e298572 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 21 Dec 2021 18:11:24 -0600 Subject: [PATCH] Add test to ensure Identity is maintained on Id column during migration --- .../SqliteSchemaDumperTests/SqliteSchemaDumperFixture.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NzbDrone.Core.Test/Datastore/SqliteSchemaDumperTests/SqliteSchemaDumperFixture.cs b/src/NzbDrone.Core.Test/Datastore/SqliteSchemaDumperTests/SqliteSchemaDumperFixture.cs index e80fc4623..f99e08254 100644 --- a/src/NzbDrone.Core.Test/Datastore/SqliteSchemaDumperTests/SqliteSchemaDumperFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/SqliteSchemaDumperTests/SqliteSchemaDumperFixture.cs @@ -33,6 +33,7 @@ namespace NzbDrone.Core.Test.Datastore.SqliteSchemaDumperTests 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")]