2012-03-04 21:47:58 +01:00
|
|
|
CREATE TABLE podcasts (
|
|
|
|
url TEXT,
|
|
|
|
title TEXT,
|
|
|
|
description TEXT,
|
|
|
|
copyright TEXT,
|
|
|
|
link TEXT,
|
2012-03-07 13:27:31 +01:00
|
|
|
image_url_large TEXT,
|
|
|
|
image_url_small TEXT,
|
2012-03-04 21:47:58 +01:00
|
|
|
author TEXT,
|
|
|
|
owner_name TEXT,
|
|
|
|
owner_email TEXT,
|
|
|
|
|
|
|
|
extra BLOB
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE podcast_episodes (
|
|
|
|
podcast_id INTEGER,
|
|
|
|
|
|
|
|
title TEXT,
|
|
|
|
description TEXT,
|
|
|
|
author TEXT,
|
|
|
|
publication_date INTEGER,
|
|
|
|
duration_secs INTEGER,
|
|
|
|
url TEXT,
|
|
|
|
|
|
|
|
listened BOOLEAN,
|
|
|
|
downloaded BOOLEAN,
|
|
|
|
local_url TEXT,
|
|
|
|
|
|
|
|
extra BLOB
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX podcast_idx_url ON podcasts(url);
|
|
|
|
|
2012-03-06 19:37:46 +01:00
|
|
|
CREATE INDEX podcast_episodes_idx_aggregate ON podcast_episodes(podcast_id, listened);
|
2012-03-04 21:47:58 +01:00
|
|
|
|
|
|
|
UPDATE schema_version SET version=37;
|