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/Vanilla.php

    r5523 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'  => 'Category',
     
    3232                        'from_expression' => 'WHERE Category.CategoryID > 0',
    3333                        'to_type'         => 'forum',
    34                         'to_fieldname'    => '_bbp_forum_id'
     34                        'to_fieldname'    => '_bbp_old_forum_id'
    3535                );
    3636
     
    152152                /** Topic Section *****************************************************/
    153153
    154                 // Topic id (Stored in postmeta)
     154                // Old topic id (Stored in postmeta)
    155155                $this->field_map[] = array(
    156156                        'from_tablename' => 'Discussion',
    157157                        'from_fieldname' => 'DiscussionID',
    158158                        'to_type'        => 'topic',
    159                         'to_fieldname'   => '_bbp_topic_id'
     159                        'to_fieldname'   => '_bbp_old_topic_id'
    160160                );
    161161
     
    321321                /** Reply Section *****************************************************/
    322322
    323                 // Reply id (Stored in postmeta)
     323                // Old reply id (Stored in postmeta)
    324324                $this->field_map[] = array(
    325325                        'from_tablename'  => 'Comment',
    326326                        'from_fieldname'  => 'CommentID',
    327327                        'to_type'         => 'reply',
    328                         'to_fieldname'    => '_bbp_post_id'
     328                        'to_fieldname'    => '_bbp_old_reply_id'
    329329                );
    330330
Note: See TracChangeset for help on using the changeset viewer.