-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added settings for podcasts. * Added basic podcast level settings. * Added basic podcast level settings. * Fixed episode numbering * Fixed clippy
- Loading branch information
1 parent
48001a1
commit c55171d
Showing
36 changed files
with
783 additions
and
130 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
migrations/postgres/2024-08-25-170551_episode_numbering/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE podcasts DROP COLUMN episode_numbering; | ||
DROP TABLE podcast_settings; |
21 changes: 21 additions & 0 deletions
21
migrations/postgres/2024-08-25-170551_episode_numbering/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- Your SQL goes here | ||
|
||
ALTER TABLE podcast_episodes ADD COLUMN episode_numbering_processed BOOLEAN NOT NULL DEFAULT FALSE; | ||
CREATE TABLE podcast_settings ( | ||
podcast_id INTEGER PRIMARY KEY NOT NULL, | ||
episode_numbering BOOLEAN NOT NULL DEFAULT FALSE, | ||
auto_download BOOLEAN NOT NULL DEFAULT FALSE, | ||
auto_update BOOLEAN NOT NULL DEFAULT TRUE, | ||
auto_cleanup BOOLEAN NOT NULL DEFAULT FALSE, | ||
auto_cleanup_days INTEGER NOT NULL DEFAULT -1, | ||
replace_invalid_characters BOOLEAN DEFAULT TRUE NOT NULL, | ||
use_existing_filename BOOLEAN DEFAULT FALSE NOT NULL, | ||
replacement_strategy TEXT CHECK(replacement_strategy IN | ||
('replace-with-dash-and-underscore', 'remove', 'replace-with-dash')) NOT NULL DEFAULT | ||
'replace-with-dash-and-underscore', | ||
episode_format TEXT NOT NULL DEFAULT '{}', | ||
podcast_format TEXT NOT NULL DEFAULT '{}', | ||
direct_paths BOOLEAN NOT NULL DEFAULT FALSE, | ||
activated BOOLEAN NOT NULL DEFAULT FALSE, | ||
podcast_prefill INTEGER NOT NULL DEFAULT 0 | ||
); |
3 changes: 3 additions & 0 deletions
3
migrations/sqlite/2024-08-25-170551_episode_numbering/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE podcast_episodes DROP COLUMN episode_numbering_processed; | ||
DROP TABLE IF EXISTS podcast_settings; |
21 changes: 21 additions & 0 deletions
21
migrations/sqlite/2024-08-25-170551_episode_numbering/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- Your SQL goes here | ||
|
||
ALTER TABLE podcast_episodes ADD COLUMN episode_numbering_processed BOOLEAN NOT NULL DEFAULT FALSE; | ||
CREATE TABLE podcast_settings ( | ||
podcast_id INTEGER PRIMARY KEY NOT NULL, | ||
episode_numbering BOOLEAN NOT NULL DEFAULT FALSE, | ||
auto_download BOOLEAN NOT NULL DEFAULT FALSE, | ||
auto_update BOOLEAN NOT NULL DEFAULT TRUE, | ||
auto_cleanup BOOLEAN NOT NULL DEFAULT FALSE, | ||
auto_cleanup_days INTEGER NOT NULL DEFAULT -1, | ||
replace_invalid_characters BOOLEAN DEFAULT TRUE NOT NULL, | ||
use_existing_filename BOOLEAN DEFAULT FALSE NOT NULL, | ||
replacement_strategy TEXT CHECK(replacement_strategy IN | ||
('replace-with-dash-and-underscore', 'remove', 'replace-with-dash')) NOT NULL DEFAULT | ||
'replace-with-dash-and-underscore', | ||
episode_format TEXT NOT NULL DEFAULT '{}', | ||
podcast_format TEXT NOT NULL DEFAULT '{}', | ||
direct_paths BOOLEAN NOT NULL DEFAULT FALSE, | ||
activated BOOLEAN NOT NULL DEFAULT FALSE, | ||
podcast_prefill INTEGER NOT NULL DEFAULT 0 | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.