-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [#256] store the original infohash in the database
Torrent InfoHash migth change after uploading it becuase we do not extract/store all the fields in the info dictionary. We store a copy of the original infohash in the database field `torrust_torrents::original_info_hash`.
- Loading branch information
1 parent
0cb63dc
commit d7c9d93
Showing
6 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
migrations/mysql/20230824164316_torrust_torrents_add_original_info_hash.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 @@ | ||
ALTER TABLE torrust_torrents ADD COLUMN original_info_hash TEXT DEFAULT NULL |
1 change: 1 addition & 0 deletions
1
migrations/sqlite3/20230824164316_torrust_torrents_add_original_info_hash.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 @@ | ||
ALTER TABLE torrust_torrents ADD COLUMN original_info_hash TEXT DEFAULT NULL |
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