==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    http://bugs.contribs.org/show_bug.cgi?id=6494

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

--- Comment #3 from Unnilennium <[email protected]> ---
a migrate fragment should be done simply.


regarding the old rpm all is stored in an extra db file named "extra"

domains already present in db domains are of type "domain"

domains not present in db domains are type ddhost

db extras print
mycompany.local=domain|dns|DYNDNS1|login|phdl|mx||password|fff
retrieve_ip=system|manualIP||method|WEB
toto.com=ddhost|desc||dns|DYNDNS1|login|phdl|mx||password|fgs
#  db domains print
mycompany.local=domain|Content|Primary|Description|Primary
domain|Nameservers|localhost|Removable|no|SystemPrimaryDomain|yes

I would suggest the following mechanism : a migration fragment in
/etc/e-smith/db/domains/migrate/30dynhosts ( see fragments already in the
folder as examples)

#check if extras db exists
##if yes 
###foreach keys
#### if ==ddhosts
####create in db domains key of type ddhosts
####
toto.com=domain|Content|Primary|Description|($desc||"Primary")|Nameservers|localhost|Removable|yes|SystemPrimaryDomain|no|dns|$dns|login|$login|mx|$mx|password|$password
#### if domaims
####update in db domains key of type domains
#### mycompany.local=domain|Content|Primary|Description|Primary
domain|Nameservers|localhost|Removable|no|SystemPrimaryDomain|yes|dns|$dns|login|$login|mx|$mx|password|$password
## mv /home/e-smith/db/extra /home/e-smith/db/extra_migrated

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/

Reply via email to