Index: Application/Ringtoets/src/Application.Ringtoets.Migration/RingtoetsDatabaseFile.cs
===================================================================
diff -u -r4adc05fb0d7306ef1c21c56052193f526a4fad54 -rf53b3c70d87b9e66c3a46981b8d8a471b95e2adc
--- Application/Ringtoets/src/Application.Ringtoets.Migration/RingtoetsDatabaseFile.cs (.../RingtoetsDatabaseFile.cs) (revision 4adc05fb0d7306ef1c21c56052193f526a4fad54)
+++ Application/Ringtoets/src/Application.Ringtoets.Migration/RingtoetsDatabaseFile.cs (.../RingtoetsDatabaseFile.cs) (revision f53b3c70d87b9e66c3a46981b8d8a471b95e2adc)
@@ -48,22 +48,18 @@
/// - does not end with a directory or path separator (empty file name),
/// - is not writable.
///
+ /// Creates the file if it does not exist.
public RingtoetsDatabaseFile(string path)
{
- IOUtils.ValidateFilePathIsWritable(path);
+ IOUtils.CreateFileIfNotExists(path);
filePath = path;
}
///
/// Opens the connection to the file.
///
- /// Creates the file if it does not exist.
public void OpenDatabaseConnection()
{
- if (!File.Exists(filePath))
- {
- SQLiteConnection.CreateFile(filePath);
- }
connection = new SQLiteConnection(SqLiteConnectionStringBuilder.BuildSqLiteConnectionString(filePath, false));
connection.Open();
}