1
0

mysql_update_tf-b4rt-5.to.tf-b4rt-6.sql 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -- -----------------------------------------------------------------------------
  2. -- $Id: mysql_update_tf-b4rt-5.to.tf-b4rt-6.sql 2607 2007-03-09 19:33:07Z b4rt $
  3. -- -----------------------------------------------------------------------------
  4. --
  5. -- MySQL-Update-File for 'Torrentflux-2.1-b4rt-6'.
  6. -- Updates a 'Torrentflux 2.1-b4rt-5' Database to a 'Torrentflux 2.1-b4rt-6'.
  7. --
  8. -- This Stuff is provided 'as-is'. In no way will the author be held
  9. -- liable for any damages to your soft- or hardware from this.
  10. -- -----------------------------------------------------------------------------
  11. --
  12. -- tf_torrent_totals
  13. --
  14. CREATE TABLE tf_torrent_totals (
  15. tid VARCHAR(40) NOT NULL default '',
  16. uptotal BIGINT(80) NOT NULL default '0',
  17. downtotal BIGINT(80) NOT NULL default '0',
  18. PRIMARY KEY (tid)
  19. ) TYPE=MyISAM;
  20. --
  21. -- tf_torrents
  22. --
  23. ALTER TABLE tf_torrents ADD `btclient` VARCHAR(32) DEFAULT 'tornado' NOT NULL ;
  24. --
  25. -- tf_xfer
  26. --
  27. ALTER TABLE tf_xfer CHANGE `download` `download` BIGINT(80) DEFAULT '0' NOT NULL;
  28. ALTER TABLE tf_xfer CHANGE `upload` `upload` BIGINT(80) DEFAULT '0' NOT NULL;
  29. --
  30. -- extra inserts
  31. --
  32. INSERT INTO tf_settings VALUES ('btclient','tornado');
  33. INSERT INTO tf_settings VALUES ('btclient_tornado_bin','/var/www/TF_BitTornado/btphptornado.py');
  34. INSERT INTO tf_settings VALUES ('btclient_tornado_options','--alloc_type sparse --min_peers 40 --upnp_nat_access 0 --write_buffer_size 8');
  35. INSERT INTO tf_settings VALUES ('btclient_transmission_bin','/usr/local/bin/transmissioncli');
  36. INSERT INTO tf_settings VALUES ('btclient_transmission_options','');