Revision 11654460
Von Moritz Bunkus vor etwa 15 Jahren hinzugefügt
sql/Pg-upgrade2/cp_greeting_migration.pl | ||
---|---|---|
88 | 88 |
sub do_update { |
89 | 89 |
# main function |
90 | 90 |
|
91 |
# Do not ask the user anything if there are no entries in the |
|
92 |
# contacts table. |
|
93 |
my ($data_exists) = $dbh->selectrow_array("SELECT * FROM contacts LIMIT 1"); |
|
94 |
return 1 if !$data_exists; |
|
95 |
|
|
91 | 96 |
# first of all check if gender.sql was already run and thus cp_gender exists |
92 | 97 |
# if it exists there is no need for this update anymore, so return |
93 | 98 |
# without doing anything |
Auch abrufbar als: Unified diff
Bei der Migration zu "Anrede -> Geschlecht" nicht nachfragen, wenn Tabelle leer ist.