This commit is contained in:
1 parent
2f39ee11df
commit
da30de0318
16 files changed
+142
-22
No files matched your search
+8
-1
@@ -8,7 +8,7 @@ from datetime import datetime, timezone
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
DEFAULT_DB = os.path.join(BASE_DIR, "steam.db")
|
||||
SCHEMA_PATH = os.path.join(BASE_DIR, "tools", "schema.sql")
|
||||
SCHEMA_VERSION = 6
|
||||
SCHEMA_VERSION = 7
|
||||
|
||||
MOOD_PRESETS = {
|
||||
"adventure-rpg-party": {
|
||||
@@ -562,6 +562,12 @@ def _migration_6(con):
|
||||
_ensure_column(con, "games", column, declaration)
|
||||
|
||||
|
||||
def _migration_7(con):
|
||||
"""Track HLTB checks (including games without a match)."""
|
||||
_ensure_column(con, "games", "hltb_checked_at", "TEXT")
|
||||
_ensure_column(con, "games", "hltb_match", "INTEGER")
|
||||
|
||||
|
||||
MIGRATIONS = {
|
||||
1: _migration_1,
|
||||
2: _migration_2,
|
||||
@@ -569,6 +575,7 @@ MIGRATIONS = {
|
||||
4: _migration_4,
|
||||
5: _migration_5,
|
||||
6: _migration_6,
|
||||
7: _migration_7,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user