chore(versioning): nvm, this is 3.3 now
This commit is contained in:
@@ -378,10 +378,10 @@ def run_migrations_if_needed():
|
|||||||
with _safe_connect(HISTORY_DB) as history_conn:
|
with _safe_connect(HISTORY_DB) as history_conn:
|
||||||
if history_conn and not _is_history_at_least_3_2_0(history_conn):
|
if history_conn and not _is_history_at_least_3_2_0(history_conn):
|
||||||
logger.error(
|
logger.error(
|
||||||
"Instance is not at schema version 3.2.0. Please upgrade to 3.2.0 before applying 3.2.2."
|
"Instance is not at schema version 3.2.0. Please upgrade to 3.2.0 before applying 3.3.0."
|
||||||
)
|
)
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"Instance is not at schema version 3.2.0. Please upgrade to 3.2.0 before applying 3.2.2."
|
"Instance is not at schema version 3.2.0. Please upgrade to 3.2.0 before applying 3.3.0."
|
||||||
)
|
)
|
||||||
|
|
||||||
# Watch playlists DB
|
# Watch playlists DB
|
||||||
@@ -413,4 +413,4 @@ def run_migrations_if_needed():
|
|||||||
else:
|
else:
|
||||||
_ensure_creds_filesystem()
|
_ensure_creds_filesystem()
|
||||||
log_noop_migration_detected()
|
log_noop_migration_detected()
|
||||||
logger.info("Database migrations check completed (3.2.0 -> 3.2.2 path)")
|
logger.info("Database migrations check completed (3.2.0 -> 3.3.0 path)")
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class MigrationV3_2_0:
|
class MigrationV3_2_0:
|
||||||
"""
|
"""
|
||||||
Migration for version 3.2.0 (upgrade path 3.2.0 -> 3.2.2).
|
Migration for version 3.2.0 (upgrade path 3.2.0 -> 3.3.0).
|
||||||
- Adds per-item batch progress columns to Watch DBs to support page-by-interval processing.
|
- Adds per-item batch progress columns to Watch DBs to support page-by-interval processing.
|
||||||
- Enforces prerequisite: previous instance version must be 3.1.2 (validated by runner).
|
- Enforces prerequisite: previous instance version must be 3.1.2 (validated by runner).
|
||||||
"""
|
"""
|
||||||
@@ -21,7 +21,7 @@ class MigrationV3_2_0:
|
|||||||
"batch_next_offset": "INTEGER DEFAULT 0",
|
"batch_next_offset": "INTEGER DEFAULT 0",
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- No-op for history/accounts in 3.2.2 ---
|
# --- No-op for history/accounts in 3.3.0 ---
|
||||||
|
|
||||||
def check_history(self, conn: sqlite3.Connection) -> bool:
|
def check_history(self, conn: sqlite3.Connection) -> bool:
|
||||||
return True
|
return True
|
||||||
@@ -59,14 +59,14 @@ class MigrationV3_2_0:
|
|||||||
f"ALTER TABLE watched_playlists ADD COLUMN {col_name} {col_type}"
|
f"ALTER TABLE watched_playlists ADD COLUMN {col_name} {col_type}"
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Added column '{col_name} {col_type}' to watched_playlists for 3.2.2 batch progress."
|
f"Added column '{col_name} {col_type}' to watched_playlists for 3.3.0 batch progress."
|
||||||
)
|
)
|
||||||
except sqlite3.OperationalError as e:
|
except sqlite3.OperationalError as e:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"Could not add column '{col_name}' to watched_playlists: {e}"
|
f"Could not add column '{col_name}' to watched_playlists: {e}"
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.error("Failed to update watched_playlists for 3.2.2", exc_info=True)
|
logger.error("Failed to update watched_playlists for 3.3.0", exc_info=True)
|
||||||
|
|
||||||
# --- Watch: artists ---
|
# --- Watch: artists ---
|
||||||
|
|
||||||
@@ -90,11 +90,11 @@ class MigrationV3_2_0:
|
|||||||
f"ALTER TABLE watched_artists ADD COLUMN {col_name} {col_type}"
|
f"ALTER TABLE watched_artists ADD COLUMN {col_name} {col_type}"
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Added column '{col_name} {col_type}' to watched_artists for 3.2.2 batch progress."
|
f"Added column '{col_name} {col_type}' to watched_artists for 3.3.0 batch progress."
|
||||||
)
|
)
|
||||||
except sqlite3.OperationalError as e:
|
except sqlite3.OperationalError as e:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"Could not add column '{col_name}' to watched_artists: {e}"
|
f"Could not add column '{col_name}' to watched_artists: {e}"
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.error("Failed to update watched_artists for 3.2.2", exc_info=True)
|
logger.error("Failed to update watched_artists for 3.3.0", exc_info=True)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class MigrationV3_2_1:
|
class MigrationV3_2_1:
|
||||||
"""
|
"""
|
||||||
No-op migration for version 3.2.1 (upgrade path 3.2.1 -> 3.2.2).
|
No-op migration for version 3.2.1 (upgrade path 3.2.1 -> 3.3.0).
|
||||||
No database schema changes are required.
|
No database schema changes are required.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -37,5 +37,5 @@ class MigrationV3_2_1:
|
|||||||
|
|
||||||
def log_noop_migration_detected() -> None:
|
def log_noop_migration_detected() -> None:
|
||||||
logger.info(
|
logger.info(
|
||||||
"No migration performed: detected schema for 3.2.1; no changes needed for 3.2.1 -> 3.2.2."
|
"No migration performed: detected schema for 3.2.1; no changes needed for 3.2.1 -> 3.3.0."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ CONFIG_FILE_PATH = Path("./data/config/main.json")
|
|||||||
|
|
||||||
DEFAULT_MAIN_CONFIG = {
|
DEFAULT_MAIN_CONFIG = {
|
||||||
"service": "spotify",
|
"service": "spotify",
|
||||||
"version": "3.2.2",
|
"version": "3.3.0",
|
||||||
"spotify": "",
|
"spotify": "",
|
||||||
"deezer": "",
|
"deezer": "",
|
||||||
"fallback": False,
|
"fallback": False,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "spotizerr-ui",
|
"name": "spotizerr-ui",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "3.2.2",
|
"version": "3.3.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
Reference in New Issue
Block a user