[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 mysql_upgrade_zencart_121_to_122.sql

Zen Cart 源代码 mysql_upgrade_zencart_121_to_122.sql




下载文件

文件名: mysql_upgrade_zencart_121_to_122.sql
文件类型: Unknown文件
文件大小: 4.37 KiB
MD5: 76cf4e68dbcca261304b5181d5488fb2

mysql_upgrade_zencart_121_to_122.sql - 关闭高亮
  1. # This SQL script upgrades the core Zen Cart database structure from v1.2.1 to v1.2.2
  2. #
  3. # $Id: mysql_upgrade_zencart_121_to_122.sql 18695 2011-05-04 05:24:19Z drbyte $
  4. #
  5.  
  6. ## CONFIGURATION TABLE
  7. UPDATE configuration set configuration_title='Send Copy of Order Confirmation Emails To', configuration_description ='Send COPIES of order confirmation emails to the following email addresses, in this format: Name 1 <email@address1>, Name 2 <email@address2>' WHERE configuration_key = 'SEND_EXTRA_ORDER_EMAILS_TO';
  8. INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('E-Mail Friendly-Errors', 'EMAIL_FRIENDLY_ERRORS', 'true', 'Do you want to display friendly errors if emails fail?  Setting this to false will display PHP errors and likely cause the script to fail. Only set to false while troubleshooting.', '12', '7', 'zen_cfg_select_option(array(\'true\', \'false\'),', now());
  9. #INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Show Shopping Cart - Delete Checkboxes or Delete Button', 'SHOW_SHOPPING_CART_DELETE', '3', 'Show on Shopping Cart Delete Button and/or Checkboxes<br /><br />1= Delete Button Only<br />2= Checkbox Only<br />3= Delete Button and Checkbox Only', '9', '20', 'zen_cfg_select_option(array(\'1\', \'2\', \'3\'), ', now());
  10.  
  11. ## Table Structure updates
  12.  
  13. #orders table
  14. ALTER TABLE orders ADD COLUMN payment_module_code varchar(32) NOT NULL default '' AFTER payment_method;
  15. ALTER TABLE orders ADD COLUMN shipping_method varchar(32) NOT NULL default '' AFTER payment_module_code;
  16. ALTER TABLE orders ADD COLUMN shipping_module_code varchar(32) NOT NULL default '' AFTER shipping_method;
  17.  
  18. #paypal
  19. ALTER TABLE paypal ADD COLUMN zen_order_id int(17) NOT NULL default '0' AFTER paypal_ipn_id;
  20. DROP TABLE IF EXISTS orders_session_info;
  21. DROP TABLE IF EXISTS paypal_payment_status;
  22. DROP TABLE IF EXISTS paypal_payment_status_history;
  23.  
  24. #DROP TABLE IF EXISTS paypal_session;
  25. CREATE TABLE paypal_session (
  26.   unique_id int(11) NOT NULL auto_increment,
  27.   session_id text NOT NULL,
  28.   saved_session blob NOT NULL,
  29.   expiry int(17) NOT NULL default '0',
  30.   PRIMARY KEY  (unique_id)
  31. ) ;
  32.  
  33.  
  34.  
  35. #Version Control
  36. ALTER TABLE project_version CHANGE COLUMN project_version_patch_major project_version_patch1 varchar(20) NOT NULL default '';
  37. ALTER TABLE project_version CHANGE COLUMN project_version_patch_minor project_version_patch2 varchar(20) NOT NULL default '';
  38. ALTER TABLE project_version ADD COLUMN project_version_patch1_source varchar(20) NOT NULL default '' AFTER project_version_patch2;
  39. ALTER TABLE project_version ADD COLUMN project_version_patch2_source varchar(20) NOT NULL default '' AFTER project_version_patch1_source;
  40. ALTER TABLE project_version DROP COLUMN project_version_ip_address;
  41.  
  42. CREATE TABLE project_version_history (
  43.   project_version_id tinyint(3) NOT NULL auto_increment,
  44.   project_version_key varchar(40) NOT NULL default '',
  45.   project_version_major varchar(20) NOT NULL default '',
  46.   project_version_minor varchar(20) NOT NULL default '',
  47.   project_version_patch varchar(20) NOT NULL default '',
  48.   project_version_comment varchar(250) NOT NULL default '',
  49.   project_version_date_applied datetime NOT NULL default '0001-01-01 01:01:01',
  50.   project_version_ip_address varchar(20) NOT NULL default '',
  51.   PRIMARY KEY  (project_version_id),
  52.   UNIQUE KEY project_version_key (project_version_key)
  53. ) COMMENT='Database Version Tracking History';
  54.  
  55.  
  56.  
  57.  
  58. ## THE FOLLOWING SHOULD BE THE "LAST" ITEMS IN THE FILE, so that if the upgrade fails prematurely, the version info is not updated.
  59. #NEXT_X_ROWS_AS_ONE_COMMAND:2
  60. UPDATE project_version SET project_version_major='1', project_version_minor='2.2', project_version_patch1='', project_version_patch1_source='', project_version_patch2='', project_version_patch2_source='', project_version_date_applied=now() WHERE project_version_key = 'Zen-Cart Main';
  61. UPDATE project_version SET project_version_major='1', project_version_minor='2.2', project_version_patch1='', project_version_patch1_source='', project_version_patch2='', project_version_patch2_source='', project_version_date_applied=now() WHERE project_version_key = 'Zen-Cart Database';
  62.  
  63.  
  64. #####  END OF UPGRADE SCRIPT
  65.  


cron