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 nodes. BEP 5
- Loading branch information
1 parent
0cd58e4
commit 7b9d5a4
Showing
7 changed files
with
106 additions
and
4 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
migrations/mysql/20240304165035_torrust_add_nodes_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,7 @@ | ||
CREATE TABLE IF NOT EXISTS torrust_torrent_nodes ( | ||
node_id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, | ||
torrent_id INTEGER NOT NULL, | ||
node_ip VARCHAR(256) NOT NULL, | ||
node_port INTEGER NOT NULL, | ||
FOREIGN KEY(torrent_id) REFERENCES torrust_torrents(torrent_id) ON DELETE CASCADE | ||
) |
7 changes: 7 additions & 0 deletions
7
migrations/sqlite3/20240304165035_torrust_add_nodes_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,7 @@ | ||
CREATE TABLE IF NOT EXISTS torrust_torrent_nodes ( | ||
node_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
torrent_id INTEGER NOT NULL, | ||
node_ip TEXT NOT NULL, | ||
node_port INTEGER 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
log_level = "info" | ||
log_level = "debug" | ||
|
||
[website] | ||
name = "Torrust" | ||
|
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