Mandi! Dombre Julien
  In chel di` si favelave...

> 2 glpi installations using 2 databases can not been merged using 
> transfer process.
> The only way to merge datas is to use data_injection plugin.
> If someone want to code such a thing in a plugin, he is welcome.

An idea.

Merge data is a real pain, and i think it is hard, very hard, to do
this task in an automatic.
Really i don't need that, i know that if i merge, i have to 'solve'
many conflict, the worst one the licence duplication, anoter one the
cathegory. by hand.

But this is not a real problem, becuse i can clean the data in spare
time, using the cathegory handling and so on. Hard work, but there's no
way out.


But we have the 'XML dump' in place: and if we simply import an XML
backup adding some fixed amount to the ID of the row?
ID are not infinite, every table have one or more id but are strictly
bound and known (by the schema).

An import function can have simple switch:

 a) cleanup the database and insert
 b) add to database

in 'add mode' firstly we scan all the tables seeking max(ID)+1 values;
the we alter the xml adding to every ID this fix amount, and then we
insert.


In this way we have merged the two database. Could be?

-- 
dott. Marco Gaiarin                                 GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it      tel +39-0434-842711  fax +39-0434-842797

_______________________________________________
Glpi-user mailing list
Glpi-user@gna.org
https://mail.gna.org/listinfo/glpi-user

Reply via email to