Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/19/2014 11:34:18 AM (12 years ago)
Author:
netweb
Message:

Importer templates updates to coincide with r5525 changeset to differentiating original forum, topic and reply meta ID's from new bbPress post meta keys.

  • Renames _bbp_forum_id to _bbp_old_forum_id
  • Renames _bbp_topic_id to _bbp_old_topic_id
  • Renames _bbp_post_id to _bbp_old_reply_id

See #2650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/MyBB.php

    r5516 r5526  
    2626                /** Forum Section *****************************************************/
    2727
    28                 // Forum id (Stored in postmeta)
     28                // Old forum id (Stored in postmeta)
    2929                $this->field_map[] = array(
    3030                        'from_tablename' => 'forums',
    3131                        'from_fieldname' => 'fid',
    3232                        'to_type'        => 'forum',
    33                         'to_fieldname'   => '_bbp_forum_id'
     33                        'to_fieldname'   => '_bbp_old_forum_id'
    3434                );
    3535
     
    130130                /** Topic Section *****************************************************/
    131131
    132                 // Topic id (Stored in postmeta)
     132                // Old topic id (Stored in postmeta)
    133133                $this->field_map[] = array(
    134134                        'from_tablename' => 'threads',
    135135                        'from_fieldname' => 'tid',
    136136                        'to_type'        => 'topic',
    137                         'to_fieldname'   => '_bbp_topic_id'
     137                        'to_fieldname'   => '_bbp_old_topic_id'
    138138                );
    139139
     
    287287                /** Reply Section *****************************************************/
    288288
    289                 // Reply id (Stored in postmeta)
     289                // Old reply id (Stored in postmeta)
    290290                $this->field_map[] = array(
    291291                        'from_tablename'  => 'posts',
     
    293293                        'from_expression' => 'WHERE replyto != 0',
    294294                        'to_type'         => 'reply',
    295                         'to_fieldname'    => '_bbp_post_id'
     295                        'to_fieldname'    => '_bbp_old_reply_id'
    296296                );
    297297
Note: See TracChangeset for help on using the changeset viewer.