• Resolved owenwalz

    (@owenwalz)


    I have a number of connections that were registered before it was required for a connection to have a name / ID. They do not have an assigned ID, but they include a large number of connections already.

    Is there a way to add an ID to an existing registration, without losing its connections (so I can update to the latest version of P2P and update my queries)?

    Thanks,

    http://ww.wp.xz.cn/extend/plugins/posts-to-posts/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter owenwalz

    (@owenwalz)

    Also, is ‘name’ and ‘ID’ interchangeable in P2P registrations?

    Plugin Author scribu

    (@scribu)

    Thread Starter owenwalz

    (@owenwalz)

    Thanks again Scribu.

    I see a variety of solutions in the thread you’ve linked to. I’m wondering which is most appropriate for my situation.

    I’m currently using P2P version 1.1.3. Currently the p2p_type column in my database is all filled in, mostly with auto-generated hashes (apart from a few recent named connections). I would like to add names in the registration, and have them attach to the proper existing connections somehow.

    I have yet to upgrade, assuming there will be issues.

    Plugin Author scribu

    (@scribu)

    If they have hashes, you’re fine:

    1. Upgrade P2P.
    2. Add names to your connection types.
    3. Go through each un-named connection type:
    3.1. Assign a ‘name’ to the p2p_register_connection_type() call
    3.2. Rename the connections using WP Admin -> Tools -> Connection Types.

    Thread Starter owenwalz

    (@owenwalz)

    Awesome. I will try that. Thanks.

    Thread Starter owenwalz

    (@owenwalz)

    This worked very well, thanks. It did require referencing the table to get the right hashes, but it wasn’t too arduous.

    Appreciate it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Posts 2 Posts] Adding ID / Names for old connections’ is closed to new replies.