Index: Application/Ringtoets/src/Application.Ringtoets.Storage/StorageSqliteCreator.cs =================================================================== diff -u -rbcbae879035d5472efff973990ba1194e38b2ea5 -ra670da380b593fb1cec05bcb5df2da347eb8d384 --- Application/Ringtoets/src/Application.Ringtoets.Storage/StorageSqliteCreator.cs (.../StorageSqliteCreator.cs) (revision bcbae879035d5472efff973990ba1194e38b2ea5) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/StorageSqliteCreator.cs (.../StorageSqliteCreator.cs) (revision a670da380b593fb1cec05bcb5df2da347eb8d384) @@ -29,17 +29,16 @@ { using (var command = dbContext.CreateCommand()) { - dbContext.Open(); - command.CommandText = Resources.DatabaseStructure; try { + dbContext.Open(); + command.CommandText = Resources.DatabaseStructure; command.ExecuteNonQuery(); } catch (SQLiteException exception) { throw CreateUpdateStorageException(Resources.Error_Write_Structure_to_Database, exception); } - dbContext.Close(); } } }