Commit | Line | Data |
---|---|---|
aa1f260a FB |
1 | #!/usr/bin/env bash |
2 | ||
3 | copyTable() { | |
4 | echo "CREATE TABLE $2 LIKE $1;" | |
5 | if [ -z "$3" ] ; then | |
6 | echo "ALTER TABLE $2 ENGINE = InnoDB;" | |
7 | fi | |
8 | echo "INSERT INTO $2 SELECT * FROM $1;" | |
9 | } | |
10 | ||
11 | ||
12 | copyTable '#forums#.list' 'forums' | |
13 | copyTable '#forums#.abos' 'forum_subs' | |
14 | copyTable '#forums#.innd' 'forum_innd' | |
15 | copyTable '#forums#.profils' 'forum_profiles' | |
16 | ||
17 | copyTable '#logger#.actions' 'log_actions' | |
18 | copyTable '#logger#.events' 'log_events' | |
19 | copyTable '#logger#.last_sessions' 'log_last_sessions' | |
20 | copyTable '#logger#.sessions' 'log_sessions' | |
21 | ||
22 | copyTable '#paiement#.paiements' 'payments' | |
23 | copyTable '#paiement#.codeC' 'payment_codeC' | |
24 | copyTable '#paiement#.codeRCB' 'payment_codeRCB' | |
25 | copyTable '#paiement#.methodes' 'payment_methods' | |
26 | copyTable '#paiement#.transactions' 'payment_transactions' | |
27 | ||
28 | copyTable '#groupex#.announces' 'group_announces' | |
29 | copyTable '#groupex#.announces_photo' 'group_announces_photo' | |
30 | copyTable '#groupex#.announces_read' 'group_announces_read' | |
31 | copyTable '#groupex#.asso' 'groups' | |
32 | copyTable '#groupex#.dom' 'group_dom' | |
33 | copyTable '#groupex#.evenements' 'group_events' | |
34 | copyTable '#groupex#.evenements_items' 'group_event_items' | |
35 | copyTable '#groupex#.evenements_participants' 'group_event_participants' | |
36 | copyTable '#groupex#.membres' 'group_members' | |
37 | copyTable '#groupex#.membres_sub_requests' 'group_member_sub_requests' | |
38 | copyTable '#x4dat#.groupesx_auth' 'group_auth' | |
39 | ||
40 | copyTable '#x4dat#.axletter' 'axletter' | |
41 | copyTable '#x4dat#.axletter_ins' 'axletter_ins' | |
42 | copyTable '#x4dat#.axletter_rights' 'axletter_rights' | |
43 | ||
44 | copyTable '#x4dat#.newsletter' 'newsletter' | |
45 | copyTable '#x4dat#.newsletter_art' 'newsletter_art' | |
46 | copyTable '#x4dat#.newsletter_cat' 'newsletter_cat' | |
47 | copyTable '#x4dat#.newsletter_ins' 'newsletter_ins' | |
48 | ||
49 | copyTable '#x4dat#.evenements' 'announces' | |
50 | copyTable '#x4dat#.evenements_photo' 'announce_photos' | |
51 | copyTable '#x4dat#.evenements_vus' 'announce_read' | |
52 | ||
53 | copyTable '#x4dat#.gapps_accounts' 'gapps_accounts' 'false' | |
54 | copyTable '#x4dat#.gapps_nicknames' 'gapps_nicknames' 'false' | |
55 | copyTable '#x4dat#.gapps_queue' 'gapps_queue' | |
56 | copyTable '#x4dat#.gapps_reporting' 'gapps_reporting' | |
57 | ||
58 | copyTable '#x4dat#.contacts' 'contacts' | |
59 | copyTable '#x4dat#.coupures' 'downtimes' | |
60 | copyTable '#x4dat#.emails_watch' 'email_watch' | |
61 | copyTable '#x4dat#.emails_send_save' 'email_send_save' | |
62 | copyTable '#x4dat#.homonymes' 'homonyms' | |
63 | copyTable '#x4dat#.ip_watch' 'ip_watch' | |
64 | copyTable '#x4dat#.mx_watch' 'mx_watch' | |
65 | copyTable '#x4dat#.ml_moderate' 'email_list_moderate' | |
66 | ||
67 | copyTable '#x4dat#.postfix_blacklist' 'postfix_blacklist' | |
68 | copyTable '#x4dat#.postfix_mailseen' 'postfix_mailseen' | |
69 | copyTable '#x4dat#.postfix_whitelist' 'postfix_whitelist' | |
70 | ||
71 | copyTable '#x4dat#.photo' 'profile_photos' | |
72 | copyTable '#x4dat#.binets_def' 'profile_binet_enum' | |
73 | copyTable '#x4dat#.binets_ins' 'profile_binets' | |
74 | copyTable '#x4dat#.sections' 'profile_section_enum' | |
75 | copyTable '#x4dat#.profile_medals' 'profile_medal_enum' | |
76 | copyTable '#x4dat#.profile_medals_sub' 'profile_medals' | |
77 | copyTable '#x4dat#.competences_def' 'profile_skill_enum' | |
78 | copyTable '#x4dat#.competences_ins' 'profile_skills' | |
79 | copyTable '#x4dat#.langues_def' 'profile_langskill_enum' | |
80 | copyTable '#x4dat#.langues_ins' 'profile_langskills' | |
81 | ||
82 | copyTable '#x4dat#.register_marketing' 'register_marketing' | |
83 | copyTable '#x4dat#.register_pending' 'register_pending' | |
84 | copyTable '#x4dat#.register_subs' 'register_subs' | |
85 | copyTable '#x4dat#.register_mstats' 'register_mstats' | |
86 | ||
87 | copyTable '#x4dat#.reminder' 'reminder' | |
88 | copyTable '#x4dat#.reminder_type' 'reminder_type' | |
89 | ||
90 | copyTable '#x4dat#.requests' 'requests' | |
91 | copyTable '#x4dat#.requests_answers' 'requests_answers' | |
92 | copyTable '#x4dat#.requests_hidden' 'requests_hidden' | |
93 | ||
94 | copyTable '#x4dat#.search_autocomplete' 'search_autocomplete' | |
95 | copyTable '#x4dat#.search_name' 'search_name' | |
96 | ||
97 | copyTable '#x4dat#.skins' 'skins' | |
98 | copyTable '#x4dat#.tips' 'tips' | |
99 | ||
100 | copyTable '#x4dat#.survey_surveys' 'surveys' | |
101 | copyTable '#x4dat#.survey_answers' 'survey_answers' | |
102 | copyTable '#x4dat#.survey_votes' 'survey_votes' | |
103 | ||
104 | copyTable '#x4dat#.watch_profile' 'watch_profile' | |
105 | copyTable '#x4dat#.perte_pass' 'account_lost_passwords' | |
106 | ||
107 | copyTable '#x4dat#.emails' 'emails' | |
108 | copyTable '#x4dat#.aliases' 'aliases' | |
109 | copyTable '#x4dat#.virtual' 'virtual' | |
110 | copyTable '#x4dat#.virtual_domains' 'virtual_domains' | |
111 | copyTable '#x4dat#.virtual_redirect' 'virtual_redirect' | |
112 | ||
113 | copyTable '#x4dat#.watch_nonins' 'watch_nonins' | |
114 | copyTable '#x4dat#.watch_promo' 'watch_promo' | |
115 | ||
116 | copyTable '#x4dat#.openid_trusted' 'account_auth_openid' 'false' |