Skip to:
Content
Pages
Categories
Search
Top
Bottom

What are mptt_right and mptt_left in bp_activity table ?

  • @mahdiar

    Participant

    Hi
    I’d like to add an activity right from the database ( via phpmyadmin ) . I know all of the parts except these ones . And even I don’t know primary_link and action used for . Please help me .
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • @djpaul

    Keymaster

    Activity stores data in what’s known as a “modified preorder tree traversal” structure; it’s a way of storing hierarchical data. http://www.sitepoint.com/hierarchical-data-database-2/ has more information.

    Left and right are used to store the position of the node in the tree. Unless you want to/are able to figure out correct values, I strongly suggest you use BuddyPress’ APIs to insert or update data.

    @mahdiar

    Participant

    I need to migrate to bp and there are a lot of activities !!! Thanks for your reply .

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What are mptt_right and mptt_left in bp_activity table ?’ is closed to new replies.
Skip to toolbar