-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added DB auto-migrations feature (#2)
* Bump version: 0.2.1 → 0.3.0 - Added `db_last_updated` column to the schema. All older DBs can be upgraded using the `--migrate-db` flag which will open up the migration menu and the users need to migrate sequentially i.e. 1 → 2 ... since each migration overwrites the column with NULL values - Added `--verbose` flag which can be used to show fic stats during download/update * Added `params` to GET request for `--fetch-urls` * Added 429s error handling and Bot UA - If HTTP 429 error: TooManyRequests is encountered, the CLI will sleep for 30s then retry once more. - Added user-agent with contact mail for users so that they can prevent themselves from getting IP banned since AO3 might ban you if they can't find a way to contact you. * Edited the prompt_user_contact() message * Improve the manual migration * Removed manual db migration * Added auto-migrations feature If any database schema changes are detected, the db is migrated to the new schema.
- Loading branch information
Showing
13 changed files
with
195 additions
and
117 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.2.1 | ||
current_version = 0.3.0 | ||
commit = True | ||
tag = False | ||
parse = ^ | ||
|
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.