mysql_update_tf-b4rt-6.to.tf-b4rt-61.sql 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. -- -----------------------------------------------------------------------------
  2. -- $Id: mysql_update_tf-b4rt-6.to.tf-b4rt-61.sql 2607 2007-03-09 19:33:07Z b4rt $
  3. -- -----------------------------------------------------------------------------
  4. --
  5. -- MySQL-Update-File for 'Torrentflux-2.1-b4rt-61'.
  6. -- Updates a 'Torrentflux 2.1-b4rt-6' Database to a 'Torrentflux 2.1-b4rt-61'.
  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. -- to do an update use the following statement.
  13. -- but you have to assign the sort_order-values manual after doing so !
  14. -- or you wont be able to re-order your existing links.
  15. --
  16. -- ALTER TABLE tf_links ADD `sitename` VARCHAR(255) DEFAULT 'Old Link' NOT NULL , ADD `sort_order` TINYINT(3) UNSIGNED DEFAULT '0';
  17. --
  18. --
  19. --
  20. -- tf_links
  21. --
  22. DROP TABLE IF EXISTS tf_links;
  23. CREATE TABLE tf_links (
  24. lid int(10) NOT NULL auto_increment,
  25. url VARCHAR(255) NOT NULL default '',
  26. sitename VARCHAR(255) NOT NULL default 'Old Link',
  27. sort_order TINYINT(3) UNSIGNED default '0',
  28. PRIMARY KEY (lid)
  29. ) TYPE=MyISAM;
  30. INSERT INTO tf_links VALUES (NULL,'http://www.torrentflux.com/forum/index.php/topic,1265.0.html','Home','0');