Changeset 11457 for temp/branches/mobile/html/install
- Timestamp:
- 2007/02/25 03:39:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/mobile/html/install/index.php
r11418 r11457 331 331 "../user_data", 332 332 "../upload", 333 333 "../mobile/converted_images", 334 334 "../../data/Smarty/templates_c", 335 335 "../../data/downloads", … … 812 812 // ¥«¥é¥à¤ÎÄɲáʴû¤Ë¥«¥é¥à¤¬Â¸ºß¤¹¤ë¾ì¹ç¤ÏºîÀ®¤·¤Ê¤¤¡Ë 813 813 function lfAddColumn($dsn) { 814 global $objDBParam; 815 814 816 // ¼õÃí¥Æ¡¼¥Ö¥ë 815 817 sfColumnExists("dtb_order", "memo01", "text", $dsn, true); … … 853 855 sfColumnExists("dtb_payment", "memo09", "text", $dsn, true); 854 856 sfColumnExists("dtb_payment", "memo10", "text", $dsn, true); 857 858 // ¸ÜµÒ 859 if (!sfColumnExists("dtb_customer", "mobile_phone_id", "", $dsn)) { 860 sfColumnExists("dtb_customer", "mobile_phone_id", "text", $dsn, true); 861 $objQuery = new SC_Query($dsn); 862 if ($objDBParam->getValue('db_type') == 'mysql') { 863 $objQuery->query("CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id(64))"); 864 } else { 865 $objQuery->query("CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id)"); 866 } 867 } 868 869 // ¸ÜµÒ¥á¡¼¥ë 870 if ($objDBParam->getValue('db_type') == 'mysql') { 871 sfColumnExists("dtb_customer_mail", "secret_key", "varchar(50) unique", $dsn, true); 872 } else { 873 sfColumnExists("dtb_customer_mail", "secret_key", "text unique", $dsn, true); 874 } 855 875 } 856 876
Note: See TracChangeset
for help on using the changeset viewer.