migration from cp_greeting to cp_gender
authorG. Richardson <information@richardson-bueren.de>
Sat, 19 Sep 2009 22:43:46 +0000 (00:43 +0200)
committerG. Richardson <information@richardson-bueren.de>
Mon, 12 Oct 2009 01:14:22 +0000 (03:14 +0200)
commit946324538fb1706eb9f3ff7f98ecad8e27710c95
treee03864f085568662a91b477954667f09da0476dc
parent1c603341fc02e3a5a7b5126cd7df6478d2e34700
migration from cp_greeting to cp_gender

this commit replaces commit e09347c89ca119213c4d8ba43083653cda793399 which introduced gender.sql

In database table contacts cp_greeting is removed and instead cp_gender is introduced
For print variables cp_greeting is generated from cp_gender and generic_translations

During migration user gets a chance to
* set gender of contacts where gender couldn't be easily inferred from cp_greeting
* set default greeting (Herr/Frau) for male and female
* transfer any data in cp_greeting that is not gender-related to cp_title

gender.sql is deleted, as there was a risk of losing data in cp_title

Migration code was originally copied from warehouse code
sql/Pg-upgrade2/cp_greeting_migration.pl [new file with mode: 0644]
sql/Pg-upgrade2/gender.sql [deleted file]
templates/webpages/dbupgrade/cp_greeting_update_form_de.html [new file with mode: 0644]
templates/webpages/dbupgrade/cp_greeting_update_form_master.html [new file with mode: 0644]