forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [torrust#438] persist metainfo field httpseeds. BEP 17
The field `httpseeds` was included in the `Torrent` struct but not persisted into or loaded from database.
- Loading branch information
1 parent
11519b4
commit d98c61a
Showing
6 changed files
with
121 additions
and
8 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
migrations/mysql/20240304104106_torrust_add_http_seeds_to_torrent.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,6 @@ | ||
CREATE TABLE IF NOT EXISTS torrust_torrent_http_seeds ( | ||
http_seed_id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, | ||
torrent_id INTEGER NOT NULL, | ||
seed_url VARCHAR(256) NOT NULL, | ||
FOREIGN KEY(torrent_id) REFERENCES torrust_torrents(torrent_id) ON DELETE CASCADE | ||
) |
6 changes: 6 additions & 0 deletions
6
migrations/sqlite3/20240304104106_torrust_add_http_seeds_to_torrent.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,6 @@ | ||
CREATE TABLE IF NOT EXISTS torrust_torrent_http_seeds ( | ||
http_seed_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
torrent_id INTEGER NOT NULL, | ||
seed_url TEXT NOT NULL, | ||
FOREIGN KEY(torrent_id) REFERENCES torrust_torrents(torrent_id) ON DELETE CASCADE | ||
) |
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