Change node id number?

cBoy - May 9, 2008 - 16:43

Hello,

If I export my database to a text format, is there any way I could change node id numbers without breaking the site?

Thanks in advance!!

Theoretically, yes.

davedelong - May 9, 2008 - 16:45

Theoretically, yes. Realistically, no.

As davedelong said, it is

Afief - May 9, 2008 - 18:15

As davedelong said, it is theoretically possible, but it'll feel like pulling teeth.

You'll need extensive knowledge of drupal's database, you'll need to know how everything is referenced(and believe me, changing a node's ID is gonna change a LOT of things) and you'll have to take into account the additional tables your modules created... As I said, pulling teeth.

On the other hand, you could probably use the path module to fake a node's ID by setting the path node/101 to point to the node you want to change(this will not work if there is a node with the 101 id though).

Thank you guys for your

cBoy - May 10, 2008 - 16:04

Thank you guys for your answers. I had the same feeling this could be like pulling teeth.
I just wanted to know what other users thought.

Bye!!

 
 

Drupal is a registered trademark of Dries Buytaert.