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,
|
|
|
|
|
2012-03-09 13:15:24 +01:00
|
|
|
last_updated INTEGER,
|
|
|
|
last_update_error TEXT,
|
|
|
|
|
2012-03-04 21:47:58 +01:00
|
|
|
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,
|
2012-03-12 20:35:47 +01:00
|
|
|
listened_date INTEGER,
|
2012-03-04 21:47:58 +01:00
|
|
|
downloaded BOOLEAN,
|
|
|
|
local_url TEXT,
|
|
|
|
|
|
|
|
extra BLOB
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX podcast_idx_url ON podcasts(url);
|
|
|
|
|
2012-03-09 13:15:24 +01:00
|
|
|
CREATE INDEX podcast_episodes_idx_podcast_id ON podcast_episodes(podcast_id);
|
2012-03-04 21:47:58 +01:00
|
|
|
|
2012-03-11 13:27:48 +01:00
|
|
|
CREATE INDEX podcast_episodes_idx_url ON podcast_episodes(url);
|
|
|
|
|
|
|
|
CREATE INDEX podcast_episodes_idx_local_url ON podcast_episodes(local_url);
|
|
|
|
|
2012-03-04 21:47:58 +01:00
|
|
|
UPDATE schema_version SET version=37;
|