HomeHelpTrac

Ignore:
Timestamp:
04/06/09 05:42:46 (3 years ago)
Author:
Andrey Prikaznov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/sql/v70.sql

    r9976 r9977  
    66 
    77SET NAMES 'utf8'; 
    8 DROP TABLE IF EXISTS `sys_account_custom_stat_elements`, `sys_admin_ban_list`, `sys_admin_links`, `sys_admin_menu`, `sys_admin_menu_categ`, `Admins`, `aff`, `sys_aff_banners`, `sys_aff_members`, `alerts`, `sys_albums`, `sys_albums_objects`,`sys_banners`, `sys_banners_clicks`, `sys_banners_shows`, `sys_block_list`, `sys_objects_browse`, `Categories`, `sys_objects_categories`, `sys_objects_cmts`, `sys_cmts_profile`, `sys_cmts_track`, `sys_color_base`, `sys_countries`, `sys_email_templates`, `sys_menu_member`, `sys_friend_list`, `sys_options`, `sys_options_cats`, `Groups`, `GroupsCateg`, `GroupsGallery`, `GroupsMembers`, `groups_rating`, `groups_voting_track`, `grp_forum`, `grp_forum_cat`, `grp_forum_flag`, `grp_forum_post`, `grp_forum_report`, `grp_forum_topic`, `grp_forum_user`, `grp_forum_user_activity`, `grp_forum_user_stat`, `grp_forum_vote`, `sys_fave_list`, `sys_ip_list`, `sys_ip_members_visits`, `Links`, `sys_localization_categories`, `sys_localization_keys`, `sys_localization_languages`, `sys_localization_string_params`, `sys_localization_strings`, `sys_acl_actions`, `sys_acl_actions_track`, `sys_members_as_aff`, `sys_acl_matrix`, `sys_acl_level_prices`, `sys_acl_levels`, `Messages`, `sys_moderators`, `News`, `sys_subscriptions`, `sys_mail_mass_messages`, `sys_mail_queue`, `sys_page_compose`, `sys_page_compose_pages`, `sys_payment_parameters`, `sys_payment_providers`, `sys_payment_subscriptions`, `sys_stat_member`, `sys_pre_values`, `ProfileFields`, `sys_acl_levels_members`, `Profiles`, `profile_views_track`, `ProfilesMatch`, `ProfilesSettings`, `ProfilesTrack`, `profile_rating`, `profile_voting_track`, `RayBoardCurrentUsers`, `RayBoardBoards`, `RayBoardUsers`, `RayChatCurrentUsers`, `RayChatMessages`, `RayChatProfiles`, `RayChatRooms`, `RayChatRoomsUsers`, `RayGlobalTrackUsers`, `RayImContacts`, `RayImMessages`, `RayImPendings`, `RayImProfiles`, `RayMp3Files`, `RayShoutboxMessages`, `RayVideoFiles`, `RayVideo_commentsFiles`, `SearchObjects`, `sharedSites`, `sys_stat_site`, `smiles`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_permalinks`, `Stories`, `Tags`, `TagObjects`, `TopMenu`, `Transactions`, `sys_objects_actions`, `Greetings`, `Votes`, `ZIPCodes`, `VoteObjects`, `sys_objects_views`, `sys_box_download`; 
     8DROP TABLE IF EXISTS `sys_account_custom_stat_elements`, `sys_admin_ban_list`, `sys_admin_links`, `sys_admin_menu`, `sys_admin_menu_categ`, `Admins`, `aff`, `sys_aff_banners`, `sys_aff_members`, `alerts`, `sys_albums`, `sys_albums_objects`,`sys_banners`, `sys_banners_clicks`, `sys_banners_shows`, `sys_block_list`, `sys_objects_browse`, `Categories`, `sys_objects_categories`, `sys_objects_cmts`, `sys_cmts_profile`, `sys_cmts_track`, `sys_color_base`, `sys_countries`, `sys_email_templates`, `sys_menu_member`, `sys_friend_list`, `sys_options`, `sys_options_cats`, `Groups`, `GroupsCateg`, `GroupsGallery`, `GroupsMembers`, `groups_rating`, `groups_voting_track`, `grp_forum`, `grp_forum_cat`, `grp_forum_flag`, `grp_forum_post`, `grp_forum_report`, `grp_forum_topic`, `grp_forum_user`, `grp_forum_user_activity`, `grp_forum_user_stat`, `grp_forum_vote`, `sys_fave_list`, `sys_ip_list`, `sys_ip_members_visits`, `Links`, `sys_localization_categories`, `sys_localization_keys`, `sys_localization_languages`, `sys_localization_string_params`, `sys_localization_strings`, `sys_acl_actions`, `sys_acl_actions_track`, `sys_members_as_aff`, `sys_acl_matrix`, `sys_acl_level_prices`, `sys_acl_levels`, `Messages`, `sys_moderators`, `News`, `sys_subscriptions`, `sys_mail_mass_messages`, `sys_mail_queue`, `sys_page_compose`, `sys_page_compose_pages`, `sys_payment_parameters`, `sys_payment_providers`, `sys_payment_subscriptions`, `sys_stat_member`, `sys_pre_values`, `ProfileFields`, `sys_acl_levels_members`, `Profiles`, `sys_profile_views_track`, `sys_profiles_match`, `sys_profiles_settings`, `sys_profiles_track`, `sys_profile_rating`, `sys_profile_voting_track`, `RayBoardCurrentUsers`, `RayBoardBoards`, `RayBoardUsers`, `RayChatCurrentUsers`, `RayChatMessages`, `RayChatProfiles`, `RayChatRooms`, `RayChatRoomsUsers`, `RayGlobalTrackUsers`, `RayImContacts`, `RayImMessages`, `RayImPendings`, `RayImProfiles`, `RayMp3Files`, `RayShoutboxMessages`, `RayVideoFiles`, `RayVideo_commentsFiles`, `sys_objects_search`, `sys_shared_sites`, `sys_stat_site`, `smiles`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_permalinks`, `Stories`, `Tags`, `TagObjects`, `TopMenu`, `Transactions`, `sys_objects_actions`, `Greetings`, `Votes`, `ZIPCodes`, `VoteObjects`, `sys_objects_views`, `sys_box_download`; 
    99ALTER DATABASE DEFAULT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci'; 
    1010 
     
    23522352INSERT INTO `sys_stat_member` VALUES('mgc', 'SELECT COUNT(*) FROM `Greetings` WHERE `ID` = ''__member_id__'' AND New = ''1'''); 
    23532353INSERT INTO `sys_stat_member` VALUES('mbc', 'SELECT COUNT(*) FROM `sys_block_list` WHERE `ID` = ''__member_id__'''); 
    2354 INSERT INTO `sys_stat_member` VALUES('mvc', 'SELECT COUNT(*) FROM `ProfilesTrack` WHERE `ID` = ''__member_id__'''); 
     2354INSERT INTO `sys_stat_member` VALUES('mvc', 'SELECT COUNT(*) FROM `sys_profiles_track` WHERE `ID` = ''__member_id__'''); 
    23552355INSERT INTO `sys_stat_member` VALUES('mg', 'SELECT COUNT(*) FROM `Groups` WHERE `creatorID` = ''__member_id__'' AND `status`=''Active'''); 
    23562356INSERT INTO `sys_stat_member` VALUES('mgj', 'SELECT COUNT(*) FROM `GroupsMembers` WHERE `memberID` = ''__member_id__'' AND `status`=''Active'''); 
    23572357INSERT INTO `sys_stat_member` VALUES('mgmc', 'SELECT COUNT(*) FROM `Greetings` WHERE `Profile` = ''__member_id__'' AND New = ''1'''); 
    23582358INSERT INTO `sys_stat_member` VALUES('mrc', 'SELECT COUNT(*) FROM `sys_block_list` WHERE `ID` = ''__member_id__'''); 
    2359 INSERT INTO `sys_stat_member` VALUES('mvmc', 'SELECT COUNT(*) FROM `ProfilesTrack` WHERE `Profile` = ''__member_id__'''); 
     2359INSERT INTO `sys_stat_member` VALUES('mvmc', 'SELECT COUNT(*) FROM `sys_profiles_track` WHERE `Profile` = ''__member_id__'''); 
    23602360 
    23612361 
     
    29312931 
    29322932-- 
    2933 -- Table structure for table `profile_views_track` 
    2934 -- 
    2935  
    2936 CREATE TABLE IF NOT EXISTS `profile_views_track` ( 
     2933-- Table structure for table `sys_profile_views_track` 
     2934-- 
     2935 
     2936CREATE TABLE IF NOT EXISTS `sys_profile_views_track` ( 
    29372937  `id` int(10) unsigned NOT NULL, 
    29382938  `viewer` int(10) unsigned NOT NULL, 
     
    29432943 
    29442944-- 
    2945 -- Dumping data for table `profile_views_track` 
    2946 -- 
    2947  
    2948 -- -------------------------------------------------------- 
    2949  
    2950 -- 
    2951 -- Table structure for table `ProfilesMatch` 
    2952 -- 
    2953  
    2954 CREATE TABLE `ProfilesMatch` ( 
     2945-- Dumping data for table `sys_profile_views_track` 
     2946-- 
     2947 
     2948-- -------------------------------------------------------- 
     2949 
     2950-- 
     2951-- Table structure for table `sys_profiles_match` 
     2952-- 
     2953 
     2954CREATE TABLE `sys_profiles_match` ( 
    29552955  `PID1` int(10) unsigned NOT NULL default '0' COMMENT 'Profile ID', 
    29562956  `PID2` int(10) unsigned NOT NULL default '0', 
     
    29602960 
    29612961-- 
    2962 -- Dumping data for table `ProfilesMatch` 
    2963 -- 
    2964  
    2965  
    2966 -- -------------------------------------------------------- 
    2967  
    2968 -- 
    2969 -- Table structure for table `ProfilesSettings` 
    2970 -- 
    2971  
    2972 CREATE TABLE `ProfilesSettings` ( 
     2962-- Dumping data for table `sys_profiles_match` 
     2963-- 
     2964 
     2965 
     2966-- -------------------------------------------------------- 
     2967 
     2968-- 
     2969-- Table structure for table `sys_profiles_settings` 
     2970-- 
     2971 
     2972CREATE TABLE `sys_profiles_settings` ( 
    29732973  `IDMember` int(10) NOT NULL default '0', 
    29742974  `BackgroundFilename` varchar(40) default NULL, 
     
    29822982 
    29832983-- 
    2984 -- Dumping data for table `ProfilesSettings` 
    2985 -- 
    2986  
    2987  
    2988 -- -------------------------------------------------------- 
    2989  
    2990 -- 
    2991 -- Table structure for table `ProfilesTrack` 
    2992 -- 
    2993  
    2994 CREATE TABLE `ProfilesTrack` ( 
     2984-- Dumping data for table `sys_profiles_settings` 
     2985-- 
     2986 
     2987 
     2988-- -------------------------------------------------------- 
     2989 
     2990-- 
     2991-- Table structure for table `sys_profiles_track` 
     2992-- 
     2993 
     2994CREATE TABLE `sys_profiles_track` ( 
    29952995  `ID` int(10) unsigned NOT NULL default '0', 
    29962996  `Profile` int(10) unsigned NOT NULL default '0', 
     
    30043004 
    30053005-- 
    3006 -- Dumping data for table `ProfilesTrack` 
    3007 -- 
    3008  
    3009  
    3010 -- -------------------------------------------------------- 
    3011  
    3012 -- 
    3013 -- Table structure for table `profile_rating` 
    3014 -- 
    3015  
    3016 CREATE TABLE `profile_rating` ( 
     3006-- Dumping data for table `sys_profiles_track` 
     3007-- 
     3008 
     3009 
     3010-- -------------------------------------------------------- 
     3011 
     3012-- 
     3013-- Table structure for table `sys_profile_rating` 
     3014-- 
     3015 
     3016CREATE TABLE `sys_profile_rating` ( 
    30173017  `pr_id` int(10) unsigned NOT NULL default '0', 
    30183018  `pr_rating_count` int(11) NOT NULL default '0', 
     
    30223022 
    30233023-- 
    3024 -- Dumping data for table `profile_rating` 
    3025 -- 
    3026  
    3027  
    3028 -- -------------------------------------------------------- 
    3029  
    3030 -- 
    3031 -- Table structure for table `profile_voting_track` 
    3032 -- 
    3033  
    3034 CREATE TABLE `profile_voting_track` ( 
     3024-- Dumping data for table `sys_profile_rating` 
     3025-- 
     3026 
     3027 
     3028-- -------------------------------------------------------- 
     3029 
     3030-- 
     3031-- Table structure for table `sys_profile_voting_track` 
     3032-- 
     3033 
     3034CREATE TABLE `sys_profile_voting_track` ( 
    30353035  `pr_id` int(10) unsigned NOT NULL default '0', 
    30363036  `pr_ip` varchar(20) default NULL, 
     
    30403040 
    30413041-- 
    3042 -- Dumping data for table `profile_voting_track` 
     3042-- Dumping data for table `sys_profile_voting_track` 
    30433043-- 
    30443044 
     
    34923492 
    34933493-- 
    3494 -- Table structure for table `Stories` 
    3495 -- 
    3496  
    3497 CREATE TABLE `Stories` ( 
    3498   `ID` smallint(6) unsigned NOT NULL auto_increment, 
    3499   `Date` date NOT NULL default '0000-00-00', 
    3500   `Sender` bigint(8) unsigned NOT NULL default '0', 
    3501   `Header` varchar(50) NOT NULL default '', 
    3502   `Text` longtext NOT NULL, 
    3503   `active` varchar(4) NOT NULL default '', 
    3504   PRIMARY KEY  (`ID`), 
    3505   KEY `Sender` (`Sender`) 
    3506 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
    3507  
    3508 -- 
    3509 -- Dumping data for table `Stories` 
    3510 -- 
    3511  
    3512 -- -------------------------------------------------------- 
    3513  
    3514 -- 
    3515 -- Table structure for table 'SearchObjects' 
    3516 -- 
    3517  
    3518 CREATE TABLE `SearchObjects` ( 
     3494-- Table structure for table 'sys_objects_search' 
     3495-- 
     3496 
     3497CREATE TABLE `sys_objects_search` ( 
    35193498  `ID` int(10) unsigned NOT NULL auto_increment, 
    35203499  `ObjectName` varchar(50) NOT NULL  default '', 
     
    35263505 
    35273506-- 
    3528 -- Dumping data for table 'SearchObjects' 
    3529 -- 
    3530  
    3531 INSERT INTO `SearchObjects` VALUES(2, 'group', '_Groups', 'BxTemplSearchGroup', 'templates/tmpl_{tmpl}/scripts/BxTemplSearchGroup.php'); 
    3532 INSERT INTO `SearchObjects` VALUES(3, 'profile', '_Profiles', 'BxTemplSearchProfile', 'templates/tmpl_{tmpl}/scripts/BxTemplSearchProfile.php'); 
    3533  
    3534 -- -------------------------------------------------------- 
    3535  
    3536 -- 
    3537 -- Table structure for table 'sharedSites' 
    3538 -- 
    3539  
    3540 CREATE TABLE `sharedSites` ( 
     3507-- Dumping data for table 'sys_objects_search' 
     3508-- 
     3509 
     3510INSERT INTO `sys_objects_search` VALUES(2, 'group', '_Groups', 'BxTemplSearchGroup', 'templates/tmpl_{tmpl}/scripts/BxTemplSearchGroup.php'); 
     3511INSERT INTO `sys_objects_search` VALUES(3, 'profile', '_Profiles', 'BxTemplSearchProfile', 'templates/tmpl_{tmpl}/scripts/BxTemplSearchProfile.php'); 
     3512 
     3513-- -------------------------------------------------------- 
     3514 
     3515-- 
     3516-- Table structure for table 'sys_shared_sites' 
     3517-- 
     3518 
     3519CREATE TABLE `sys_shared_sites` ( 
    35413520  `ID` tinyint(4) unsigned NOT NULL auto_increment, 
    35423521  `Name` varchar(255) default NULL, 
     
    35463525) ENGINE=MyISAM  DEFAULT CHARSET=utf8; 
    35473526 
    3548 INSERT INTO `sharedSites` VALUES('', 'digg', 'http://digg.com/submit?phase=2&url=', 'digg.png'); 
    3549 INSERT INTO `sharedSites` VALUES('', 'delicious', 'http://del.icio.us/post?url=', 'delicious.png'); 
    3550 INSERT INTO `sharedSites` VALUES('', 'blinklist', 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=', 'blinklist.png'); 
    3551 INSERT INTO `sharedSites` VALUES('', 'furl', 'http://www.furl.net/storeIt.jsp?u=', 'furl.png'); 
    3552 INSERT INTO `sharedSites` VALUES('', 'netscape', 'http://www.netscape.com/submit/?U=', 'netscape.gif'); 
    3553 INSERT INTO `sharedSites` VALUES('', 'newsvine', 'http://www.newsvine.com/_tools/seed&save?u=', 'newsvine.png'); 
    3554 INSERT INTO `sharedSites` VALUES('', 'reddit', 'http://reddit.com/submit?url=', 'reddit.png'); 
    3555 INSERT INTO `sharedSites` VALUES('', 'shadows', 'http://www.shadows.com/features/tcr.htm?url=', 'shadows.png'); 
    3556 INSERT INTO `sharedSites` VALUES('', 'slashdot', 'http://slashdot.org/bookmark.pl?url=', 'slashdot.png'); 
    3557 INSERT INTO `sharedSites` VALUES('', 'sphere', 'http://www.sphere.com/search?q=sphereit:', 'sphere.png'); 
    3558 INSERT INTO `sharedSites` VALUES('', 'stumbleupon', 'http://www.stumbleupon.com/url/http', 'stumbleupon.png'); 
    3559 INSERT INTO `sharedSites` VALUES('', 'technorati', 'http://technorati.com/faves?add=', 'technorati.png'); 
    3560  
    3561 -- 
    3562 -- Dumping data for table 'sharedSites' 
     3527INSERT INTO `sys_shared_sites` VALUES('', 'digg', 'http://digg.com/submit?phase=2&url=', 'digg.png'); 
     3528INSERT INTO `sys_shared_sites` VALUES('', 'delicious', 'http://del.icio.us/post?url=', 'delicious.png'); 
     3529INSERT INTO `sys_shared_sites` VALUES('', 'blinklist', 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url=', 'blinklist.png'); 
     3530INSERT INTO `sys_shared_sites` VALUES('', 'furl', 'http://www.furl.net/storeIt.jsp?u=', 'furl.png'); 
     3531INSERT INTO `sys_shared_sites` VALUES('', 'netscape', 'http://www.netscape.com/submit/?U=', 'netscape.gif'); 
     3532INSERT INTO `sys_shared_sites` VALUES('', 'newsvine', 'http://www.newsvine.com/_tools/seed&save?u=', 'newsvine.png'); 
     3533INSERT INTO `sys_shared_sites` VALUES('', 'reddit', 'http://reddit.com/submit?url=', 'reddit.png'); 
     3534INSERT INTO `sys_shared_sites` VALUES('', 'shadows', 'http://www.shadows.com/features/tcr.htm?url=', 'shadows.png'); 
     3535INSERT INTO `sys_shared_sites` VALUES('', 'slashdot', 'http://slashdot.org/bookmark.pl?url=', 'slashdot.png'); 
     3536INSERT INTO `sys_shared_sites` VALUES('', 'sphere', 'http://www.sphere.com/search?q=sphereit:', 'sphere.png'); 
     3537INSERT INTO `sys_shared_sites` VALUES('', 'stumbleupon', 'http://www.stumbleupon.com/url/http', 'stumbleupon.png'); 
     3538INSERT INTO `sys_shared_sites` VALUES('', 'technorati', 'http://technorati.com/faves?add=', 'technorati.png'); 
     3539 
     3540-- 
     3541-- Dumping data for table 'sys_shared_sites' 
    35633542-- 
    35643543 
     
    38583837-- 
    38593838 
    3860 INSERT INTO `VoteObjects` VALUES(1, 'profile', 'profile_rating', 'profile_voting_track', 'pr_', '5', 'vote_send_result', 'BX_PERIOD_PER_VOTE', '1', '', '', 'Profiles', 'Rate', 'RateCount', 'ID', '', ''); 
     3839INSERT INTO `VoteObjects` VALUES(1, 'profile', 'sys_profile_rating', 'sys_profile_voting_track', 'pr_', '5', 'vote_send_result', 'BX_PERIOD_PER_VOTE', '1', '', '', 'Profiles', 'Rate', 'RateCount', 'ID', '', ''); 
    38613840 
    38623841-- 
     
    40564035-- 
    40574036 
    4058 INSERT INTO `sys_objects_views` VALUES(NULL, 'profiles', 'profile_views_track', 86400, 'Profiles', 'ID', 'Views', 1); 
     4037INSERT INTO `sys_objects_views` VALUES(NULL, 'profiles', 'sys_profile_views_track', 86400, 'Profiles', 'ID', 'Views', 1); 
    40594038 
    40604039-- 
Note: See TracChangeset for help on using the changeset viewer.