mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-10 04:02:17 +00:00
Make bitrate field int to match xml schema datatype.
Correct index names and FK refs
This commit is contained in:
parent
be305225e1
commit
51b30014c6
@ -645,7 +645,7 @@ class PodcastEpisode(db.Entity):
|
|||||||
created = Required(datetime, precision=0, default=now)
|
created = Required(datetime, precision=0, default=now)
|
||||||
size = Optional(int, nullable=True)
|
size = Optional(int, nullable=True)
|
||||||
suffix = Optional(str, nullable=True)
|
suffix = Optional(str, nullable=True)
|
||||||
bitrate = Optional(str, nullable=True)
|
bitrate = Optional(int, nullable=True)
|
||||||
content_type = Optional(str, nullable=True)
|
content_type = Optional(str, nullable=True)
|
||||||
cover_art = Optional(str, nullable=True)
|
cover_art = Optional(str, nullable=True)
|
||||||
genre = Optional(str, nullable=True)
|
genre = Optional(str, nullable=True)
|
||||||
|
@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS podcast_episode (
|
|||||||
created DATETIME NOT NULL,
|
created DATETIME NOT NULL,
|
||||||
size INTEGER,
|
size INTEGER,
|
||||||
suffix VARCHAR(8),
|
suffix VARCHAR(8),
|
||||||
bitrate VARCHAR(16),
|
bitrate INTEGER,
|
||||||
content_type VARCHAR(64),
|
content_type VARCHAR(64),
|
||||||
cover_art VARCHAR(256),
|
cover_art VARCHAR(256),
|
||||||
genre VARCHAR(16),
|
genre VARCHAR(16),
|
||||||
|
@ -28,11 +28,11 @@ CREATE TABLE IF NOT EXISTS podcast_episode (
|
|||||||
created TIMESTAMP NOT NULL,
|
created TIMESTAMP NOT NULL,
|
||||||
size INTEGER,
|
size INTEGER,
|
||||||
suffix VARCHAR(8),
|
suffix VARCHAR(8),
|
||||||
bitrate VARCHAR(16),
|
bitrate INTEGER,
|
||||||
content_type VARCHAR(64),
|
content_type VARCHAR(64),
|
||||||
cover_art VARCHAR(256),
|
cover_art VARCHAR(256),
|
||||||
genre VARCHAR(16),
|
genre VARCHAR(16),
|
||||||
year SMALLINT
|
year SMALLINT
|
||||||
);
|
);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_channel(id);
|
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_episode(channel_id);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_status ON podcast_episode(status);
|
CREATE INDEX IF NOT EXISTS index_episode_status ON podcast_episode(status);
|
||||||
|
@ -28,11 +28,11 @@ CREATE TABLE IF NOT EXISTS podcast_episode (
|
|||||||
created DATETIME NOT NULL,
|
created DATETIME NOT NULL,
|
||||||
size INT,
|
size INT,
|
||||||
suffix VARCHAR(8),
|
suffix VARCHAR(8),
|
||||||
bitrate VARCHAR(16),
|
bitrate INT,
|
||||||
content_type VARCHAR(64),
|
content_type VARCHAR(64),
|
||||||
cover_art VARCHAR(256),
|
cover_art VARCHAR(256),
|
||||||
genre VARCHAR(16),
|
genre VARCHAR(16),
|
||||||
year SMALLINT
|
year SMALLINT
|
||||||
);
|
);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_channel(id);
|
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_episode(channel_id);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_status_id_fk ON podcast_episode(status);
|
CREATE INDEX IF NOT EXISTS index_episode_status ON podcast_episode(status);
|
||||||
|
@ -186,7 +186,7 @@ CREATE TABLE IF NOT EXISTS podcast_episode (
|
|||||||
created DATETIME NOT NULL,
|
created DATETIME NOT NULL,
|
||||||
size INTEGER,
|
size INTEGER,
|
||||||
suffix VARCHAR(8),
|
suffix VARCHAR(8),
|
||||||
bitrate VARCHAR(16),
|
bitrate INTEGER,
|
||||||
content_type VARCHAR(64),
|
content_type VARCHAR(64),
|
||||||
cover_art VARCHAR(256),
|
cover_art VARCHAR(256),
|
||||||
genre VARCHAR(16),
|
genre VARCHAR(16),
|
||||||
|
@ -187,11 +187,11 @@ CREATE TABLE IF NOT EXISTS podcast_episode (
|
|||||||
created TIMESTAMP NOT NULL,
|
created TIMESTAMP NOT NULL,
|
||||||
size INTEGER,
|
size INTEGER,
|
||||||
suffix VARCHAR(8),
|
suffix VARCHAR(8),
|
||||||
bitrate VARCHAR(16),
|
bitrate INTEGER,
|
||||||
content_type VARCHAR(64),
|
content_type VARCHAR(64),
|
||||||
cover_art VARCHAR(256),
|
cover_art VARCHAR(256),
|
||||||
genre VARCHAR(16),
|
genre VARCHAR(16),
|
||||||
year SMALLINT
|
year SMALLINT
|
||||||
);
|
);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_channel(id);
|
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_episode(channel_id);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_status ON podcast_episode(status);
|
CREATE INDEX IF NOT EXISTS index_episode_status ON podcast_episode(status);
|
||||||
|
@ -189,11 +189,11 @@ CREATE TABLE IF NOT EXISTS podcast_episode (
|
|||||||
created DATETIME NOT NULL,
|
created DATETIME NOT NULL,
|
||||||
size INT,
|
size INT,
|
||||||
suffix VARCHAR(8),
|
suffix VARCHAR(8),
|
||||||
bitrate VARCHAR(16),
|
bitrate INTEGER,
|
||||||
content_type VARCHAR(64),
|
content_type VARCHAR(64),
|
||||||
cover_art VARCHAR(256),
|
cover_art VARCHAR(256),
|
||||||
genre VARCHAR(16),
|
genre VARCHAR(16),
|
||||||
year SMALLINT
|
year SMALLINT
|
||||||
);
|
);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_channel(id);
|
CREATE INDEX IF NOT EXISTS index_episode_channel_id_fk ON podcast_episode(channel_id);
|
||||||
CREATE INDEX IF NOT EXISTS index_episode_status_id_fk ON podcast_episode(status);
|
CREATE INDEX IF NOT EXISTS index_episode_status ON podcast_episode(status);
|
||||||
|
Loading…
Reference in New Issue
Block a user