Hello again,
How can I move a namespace to a new index? All I want is to change the index from 106 to 112, so that articles in this namespace are still found correctly.
Thanx Javier
On Monday, September 28, 2009, Javier Bezos jbezos@fundeu.es wrote:
Hello again,
How can I move a namespace to a new index? All I want is to change the index from 106 to 112, so that articles in this namespace are still found correctly.
Off the top of my head, the fastest way would be doing the following query on the database:
update page set page_namespace = 112 where page_namespace = 106;
and then adjusting $wgExtraNamespaces
Remember to repeat this operation for the talk namespace.
Łukasz Garczewski schrieb:
On Monday, September 28, 2009, Javier Bezos jbezos@fundeu.es wrote:
Hello again,
How can I move a namespace to a new index? All I want is to change the index from 106 to 112, so that articles in this namespace are still found correctly.
Off the top of my head, the fastest way would be doing the following query on the database:
update page set page_namespace = 112 where page_namespace = 106;
and then adjusting $wgExtraNamespaces
Remember to repeat this operation for the talk namespace.
If you do that, you have to update all secondary tables too: links, logs, etc.
running maintenance/rebuildall.php should help, but i don't know if it will fix the log entries.
-- daniel
update page set page_namespace = 112 where page_namespace = 106;
and then adjusting $wgExtraNamespaces
If you do that, you have to update all secondary tables too: links, logs, etc.
Thank you. As I expected it's not direct :-(. Fortunately, the namespace is closed (no edits allowed) and its contents come from a database, so I presume changing just the page table won't hurt.
Javier
mediawiki-l@lists.wikimedia.org