From 42c7ca40c4623070700c66d58ac8c60faa557012 Mon Sep 17 00:00:00 2001 From: Carl Hall Date: Sat, 20 Jun 2020 13:14:38 -0700 Subject: [PATCH] Update schema version to include latest migration. Remove transaction and vacuum from sqlite migration. Mark radio stations as implemented in the docs. --- docs/api.md | 8 ++++---- supysonic/db.py | 2 +- supysonic/schema/migration/sqlite/20200607.sql | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/api.md b/docs/api.md index e81640e..0aa269d 100644 --- a/docs/api.md +++ b/docs/api.md @@ -86,10 +86,10 @@ or with version 1.8.0. | [`deletePodcastEpisode`](#deletepodcastepisode) | 1.9.0 | ❔ | | [`downloadPodcastEpisode`](#downloadpodcastepisode) | 1.9.0 | ❔ | | [`jukeboxControl`](#jukeboxcontrol) | | ✔️ | -| [`getInternetRadioStations`](#getinternetradiostations) | 1.9.0 | ❔ | -| [`createInternetRadioStation`](#createinternetradiostation) | 1.16.0 | ❔ | -| [`updateInternetRadioStation`](#updateinternetradiostation) | 1.16.0 | ❔ | -| [`deleteInternetRadioStation`](#deleteinternetradiostation) | 1.16.0 | ❔ | +| [`getInternetRadioStations`](#getinternetradiostations) | 1.9.0 | ✔️ | +| [`createInternetRadioStation`](#createinternetradiostation) | 1.16.0 | ✔️ | +| [`updateInternetRadioStation`](#updateinternetradiostation) | 1.16.0 | ✔️ | +| [`deleteInternetRadioStation`](#deleteinternetradiostation) | 1.16.0 | ✔️ | | [`getChatMessages`](#getchatmessages) | | ✔️ | | [`addChatMessage`](#addchatmessage) | | ✔️ | | [`getUser`](#getuser) | | ✔️ | diff --git a/supysonic/db.py b/supysonic/db.py index b18f21e..a2712a8 100755 --- a/supysonic/db.py +++ b/supysonic/db.py @@ -23,7 +23,7 @@ from pony.orm import db_session from urllib.parse import urlparse, parse_qsl from uuid import UUID, uuid4 -SCHEMA_VERSION = "20190921" +SCHEMA_VERSION = "20200607" def now(): diff --git a/supysonic/schema/migration/sqlite/20200607.sql b/supysonic/schema/migration/sqlite/20200607.sql index 7040b7f..36bea44 100644 --- a/supysonic/schema/migration/sqlite/20200607.sql +++ b/supysonic/schema/migration/sqlite/20200607.sql @@ -1,5 +1,3 @@ -BEGIN TRANSACTION; - CREATE TABLE IF NOT EXISTS radio_station ( id CHAR(36) PRIMARY KEY, stream_url VARCHAR(256) NOT NULL, @@ -8,5 +6,3 @@ CREATE TABLE IF NOT EXISTS radio_station ( created DATETIME NOT NULL ); -COMMIT; -VACUUM;