Project

General

Profile

Forum conversion » History » Version 12

Amber Herold, 07/08/2010 03:30 PM

1 1 Amber Herold
h1. Forum conversion
2
3
Notes on porting the Leginon BB to Redmine
4
5 10 Amber Herold
# Add Forums by hand
6 11 Amber Herold
# Import all posts to current forums (map forum id's)
7 10 Amber Herold
# edit posts to put into new forum
8
# delete unwanted forums
9 1 Amber Herold
10 10 Amber Herold
11 1 Amber Herold
h2. Redmine DB Tables
12
13
+Messages+
14
15
id   	  board_id   	  parent_id   	  subject   	  content   	  author_id   	  replies_count   	  last_reply_id   	  created_on   	  updated_on   	  locked   	  sticky
16
17
+Boards+
18
19
id   	  project_id   	  name   	  description   	  position   	  topics_count   	  messages_count   	  last_message_id
20
21
22
+Users+
23
24
id   	  login   	  hashed_password   	  firstname   	  lastname   	  mail   	  mail_notification   	  admin   	  status   	  last_login_on   	  language   	  auth_source_id   	  created_on   	  updated_on   	  type   	  identity_url
25
26
27
h2. BB DB Tables
28 2 Amber Herold
29
+Notre_forums+
30
31
forum_id   	  parent_id   	  left_id   	  right_id   	  forum_parents   	  forum_name   	  forum_desc   	  forum_desc_bitfield   	  forum_desc_options   	  forum_desc_uid   	  forum_link   	  forum_password   	  forum_style   	  forum_image   	  forum_rules   	  forum_rules_link   	  forum_rules_bitfield   	  forum_rules_options   	  forum_rules_uid   	  forum_topics_per_page   	  forum_type   	  forum_status   	  forum_posts   	  forum_topics   	  forum_topics_real   	  forum_last_post_id   	  forum_last_poster_id   	  forum_last_post_subject   	  forum_last_post_time   	  forum_last_poster_name   	  forum_last_poster_colour   	  forum_flags   	  display_subforum_list   	  display_on_index   	  enable_indexing   	  enable_icons   	  enable_prune   	  prune_next   	  prune_days   	  prune_viewed   	  prune_freq
32 3 Amber Herold
33
+Notre_posts+
34
35
post_id   	  topic_id   	  forum_id   	  poster_id   	  icon_id   	  poster_ip   	  post_time   	  post_approved   	  post_reported   	  enable_bbcode   	  enable_smilies   	  enable_magic_url   	  enable_sig   	  post_username   	  post_subject   	  post_text   	  post_checksum   	  post_attachment   	  bbcode_bitfield   	  bbcode_uid   	  post_postcount   	  post_edit_time   	  post_edit_reason   	  post_edit_user   	  post_edit_count   	  post_edit_locked
36
37 4 Amber Herold
38
39
+Notre_topics+
40
41
topic_id   	  forum_id   	  icon_id   	  topic_attachment   	  topic_approved   	  topic_reported   	  topic_title   	  topic_poster   	  topic_time   	  topic_time_limit   	  topic_views   	  topic_replies   	  topic_replies_real   	  topic_status   	  topic_type   	  topic_first_post_id   	  topic_first_poster_name   	  topic_first_poster_colour   	  topic_last_post_id   	  topic_last_poster_id   	  topic_last_poster_name   	  topic_last_poster_colour   	  topic_last_post_subject   	  topic_last_post_time   	  topic_last_view_time   	  topic_moved_id   	  topic_bumped   	  topic_bumper   	  poll_title   	  poll_start   	  poll_length   	  poll_max_options   	  poll_last_vote   	  poll_vote_change
42
43 3 Amber Herold
+Notre_users+
44
45
user_id   	  user_type   	  group_id   	  user_permissions   	  user_perm_from   	  user_ip   	  user_regdate   	  username   	  username_clean   	  user_password   	  user_passchg   	  user_pass_convert   	  user_email   	  user_email_hash   	  user_birthday   	  user_lastvisit   	  user_lastmark   	  user_lastpost_time   	  user_lastpage   	  user_last_confirm_key   	  user_last_search   	  user_warnings   	  user_last_warning   	  user_login_attempts   	  user_inactive_reason   	  user_inactive_time   	  user_posts   	  user_lang   	  user_timezone   	  user_dst   	  user_dateformat   	  user_style   	  user_rank   	  user_colour   	  user_new_privmsg   	  user_unread_privmsg   	  user_last_privmsg   	  user_message_rules   	  user_full_folder   	  user_emailtime   	  user_topic_show_days   	  user_topic_sortby_type   	  user_topic_sortby_dir   	  user_post_show_days   	  user_post_sortby_type   	  user_post_sortby_dir   	  user_notify   	  user_notify_pm   	  user_notify_type   	  user_allow_pm   	  user_allow_viewonline   	  user_allow_viewemail   	  user_allow_massemail   	  user_options   	  user_avatar   	  user_avatar_type   	  user_avatar_width   	  user_avatar_height   	  user_sig   	  user_sig_bbcode_uid   	  user_sig_bbcode_bitfield   	  user_from   	  user_icq   	  user_aim   	  user_yim   	  user_msnm   	  user_jabber   	  user_website   	  user_occ   	  user_interests   	  user_actkey   	  user_newpasswd   	  user_form_salt
46 5 Amber Herold
47
48 7 Amber Herold
h2. Conversion tables
49 1 Amber Herold
50 7 Amber Herold
51 9 Amber Herold
h3. Redmine Users
52 7 Amber Herold
53 1 Amber Herold
|_.Redmine Entry|_.BB Entry|
54 5 Amber Herold
|id||
55 7 Amber Herold
|login|notre_users->username|
56 1 Amber Herold
|hashed_password||
57 5 Amber Herold
|firstname||
58
|lastname||
59 7 Amber Herold
|mail|Notre_users->user_email|
60 1 Amber Herold
|mail_notification||
61 5 Amber Herold
|admin||
62
|status||
63
|last_login_on||
64 7 Amber Herold
|language|Notre_users->user_lang|
65 5 Amber Herold
|auth_source_id||
66
|created_on||
67
|updated_on||
68
|type||
69
|identity_url||
70 8 Amber Herold
71
72 9 Amber Herold
h3. Redmine Boards
73 1 Amber Herold
74 10 Amber Herold
We will create these from scratch - Development, Using Leginon, Using Appion, Tomography, Installation, Administration Tools
75
76 1 Amber Herold
|_.Redmine Entry|_.BB Entry|
77 9 Amber Herold
|id||   	  
78
|project_id||   	  
79
|name||   	  
80
|description||   	  
81
|position||   	  
82
|topics_count||   	  
83
|messages_count||   	  
84
|last_message_id||
85 1 Amber Herold
86
87 9 Amber Herold
88
h3. Redmine Messages
89 1 Amber Herold
90 9 Amber Herold
|_.Redmine Entry|_.BB Entry|
91
|id||   	  
92 12 Amber Herold
|board_id|map forum ids|
93 10 Amber Herold
|parent_id|Notre_posts->topic_id->Notre_topics->topic_first_post_id|   	  
94 12 Amber Herold
|subject|Notre_posts->post_subject|   	  
95
|content|Notre_posts->post_text (need to get BLOB)|   	  
96
|author_id|Notre_posts->poster_id->Notre_users->user_email->Users->mail->Users->id|   	  
97
|replies_count|Set all to 0 then check Notre_topics->topic_first_post_id and update that message with Notre_topics->topic_replies|   	  
98 9 Amber Herold
|last_reply_id||   	  
99
|created_on||   	  
100
|updated_on||   	  
101
|locked||   	  
102
|sticky||