mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Merge pull request #13780 from peppy/disable-foreign-keys
Disable foreign key enforcing at an sqlite level
This commit is contained in:
commit
28faa8c330
@ -77,6 +77,9 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
cmd.CommandText = "PRAGMA journal_mode=WAL;";
|
cmd.CommandText = "PRAGMA journal_mode=WAL;";
|
||||||
cmd.ExecuteNonQuery();
|
cmd.ExecuteNonQuery();
|
||||||
|
|
||||||
|
cmd.CommandText = "PRAGMA foreign_keys=OFF;";
|
||||||
|
cmd.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
Loading…
Reference in New Issue
Block a user