-
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.
Merge #513: BEP 17. Persist metainfo field
httpseeds
d98c61a feat: [#438] persist metainfo field httpseeds. BEP 17 (Jose Celano) Pull request description: The field `httpseeds` was included in the `Torrent` struct but not persisted into or loaded from database. ACKs for top commit: josecelano: ACK d98c61a Tree-SHA512: cf8e10aa288f7922134e47547dcd971460b5ba34bc865f782de6960f53604f3fe46211a8d9413b051cafa29d11208770bb1ab2a2b3ecad60d9ad3a09d3a3a530
- Loading branch information
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