Commit Graph

496 Commits

Author SHA1 Message Date
1fbbee14e4 Allow migration from sqlite-net to EF
Bonus stage
2017-10-19 20:04:59 +09:00
f7d0df1743 Fix beatmap difficulty and metadata deletion 2017-10-19 17:50:46 +09:00
b02dd196f6 Don't make one factory each context
A factory is supposed to be re-used.
2017-10-19 17:29:39 +09:00
36c00577af Reduce database log output
Also hard-disables it for uninteresting log levels, providing a further performance boost.
2017-10-19 16:35:06 +09:00
5d5ea5fb2e Fix all remaining db structure issues 2017-10-19 14:05:11 +09:00
4e8019b313 Add some more missing indices 2017-10-17 19:59:22 +09:00
e4a066dc5f Run cleanup tasks only on startup via manual calls 2017-10-17 19:58:33 +09:00
b9d0fb96ed Fix cascade deletions 2017-10-17 18:26:28 +09:00
12639c6819 Use a different database name for now to avoid conflicts when switching versions 2017-10-17 17:52:20 +09:00
3e415e3269 Fix tooling failures 2017-10-17 17:52:02 +09:00
0177fcbe5f Fix xmldoc 2017-10-17 17:08:47 +09:00
ad54ca9268 Fix TestCasePlaySongSelect 2017-10-17 16:04:54 +09:00
e487b6f82a Standardise context retrieval 2017-10-17 15:50:42 +09:00
cd41862e3b Add back transaction support for beatmap importing 2017-10-17 15:00:27 +09:00
fe44a28d48 Add back startup tasks runner 2017-10-17 12:46:38 +09:00
66894d11ea Connection -> context 2017-10-17 12:46:29 +09:00
ec51314e37 Remove duplicate command 2017-10-16 16:11:34 +09:00
7049a73490 Remove ValidTypes from databased stored; explicitly expose query methods instead 2017-10-16 14:47:33 +09:00
4981630131 Fix formatting regressions 2017-10-16 13:12:51 +09:00
8a0b184dd6 Revert "Return back DatabaseBackedStore's query and populate functions"
This reverts commit 7cf5d63cd3.
2017-10-16 12:59:59 +09:00
e3d31bdd10 Not implemented instead of incorrect 2017-10-16 12:59:59 +09:00
129cca0704 Tidy up context creation 2017-10-16 12:59:59 +09:00
a232033469 Fix some file headers and unused files 2017-10-16 00:54:09 +09:00
7cf5d63cd3 Return back DatabaseBackedStore's query and populate functions 2017-10-15 00:40:41 +03:00
167eefa397 Add logging 2017-10-14 15:16:08 +09:00
ef417c6388 Small DB-related refactoring 2017-10-09 23:30:32 +03:00
81b9e08fb6 Fix foreign key constraint failure 2017-10-09 00:30:52 +03:00
6a4198d0d6 Initial EF Core commit 2017-10-04 22:52:12 +03:00
3b1166d1e6 Optimise file lookups and other database operations
FirstOrDefault when called on a TableQuery with a predicate doesn't use table indices
2017-08-01 17:37:21 +09:00
b4acdd5f90 Merge remote-tracking branch 'upstream/master' into fix-file-references 2017-08-01 11:05:38 +09:00
c060d32765 Separate out startup tasks to ensure they run after migrations 2017-08-01 10:24:00 +09:00
404497fa10 Allow a single beatmap to reference the same file multiple times
This fixes incorrect reference counts causing database desync.
2017-07-31 21:49:57 +09:00
bc8f8de049 Make QueryAndPopulate's filter non-optional (you basically *never* want this missing) 2017-07-31 18:41:54 +09:00
9ee59dd637 Add the ability to create migrations on a per-store level
Now stores store versions to the database itself.
2017-07-28 12:58:35 +09:00
3a6f3cdd8a Add the ability to create migrations on a per-store level
Now stores store versions to the database itself.
2017-07-27 20:38:40 +09:00
5f53426a9a *Database -> *Store
Welcome back BeatmapManager
2017-07-27 16:56:41 +09:00
96b08b8777 Simplify and document DatabaseStore API 2017-07-27 15:06:10 +09:00
898a601098 Introduce a reference counting file store 2017-07-26 20:22:02 +09:00
9e20a02c0a Split out BeatmapDatabase into BeatmapStore
Hide database functionality at a lower level in preparation from eventually making it private.
2017-07-26 16:31:34 +09:00
fce580d717 Reshuffle namespaces 2017-07-26 13:22:46 +09:00
d6968ca09c Remove FullyLoaded logic
Always parse storyboards for now.

Let's not optimise this until it is necessary. It was leading to weird threading problems due to the load call in Player's async load method.
2017-07-20 11:01:50 +09:00
d69470f2ae Fix TestWorkingBeatmap broken by attempting to load storyboard 2017-07-20 09:22:39 +09:00
da92fccdb0 Merge branch 'master' into non-null-beatmap 2017-07-19 18:32:42 +09:00
d7dddec328 Set zero-difficulty values local to the dummy beatmap 2017-07-19 18:32:11 +09:00
35157ca6b8 Make DefaultBeatmap private get. 2017-07-19 18:09:59 +09:00
632d2e8ba5 Dummy beatmap has dummy ruleset 2017-07-19 15:16:48 +09:00
f168ee660c Move dummy to BeatmapDatabase 2017-07-19 15:16:43 +09:00
6016310b09 Use a better default for difficulty values 2017-07-19 15:16:37 +09:00
f00140f0a4 Avoid crashes on attempting to import the same path twice in quick succession 2017-07-19 14:56:24 +09:00
5761eb30a0 Fix nullref error on re-importing a DeletePending beatmap
Callback was expecting the beatmap to be populated where it wasn't being.
2017-07-19 14:56:20 +09:00