my @columns = qw(cp_title cp_givenname cp_name cp_email cp_phone1 cp_phone2 cp_abteilung cp_fax
                    cp_mobile1 cp_mobile2 cp_satphone cp_satfax cp_project cp_privatphone cp_privatemail cp_birthday cp_gender
-                   cp_street cp_zipcode cp_city cp_function);
+                   cp_street cp_zipcode cp_city cp_position);
   my @values  = map(
     {
       if ( $_ eq 'cp_gender' ) {
     'vcnumber'  => 'vcnumber, cp_name, cp_givenname',
     );
 
-  my %sortcols  = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email cp_street cp_zipcode cp_city cp_function vcname vcnumber);
+  my %sortcols  = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email cp_street cp_zipcode cp_city cp_position vcname vcnumber);
 
   my $order_by  = $sortcols{$::form->{sort}} ? $::form->{sort} : 'cp_name';
   $::form->{sort} = $order_by;
 
     cp_zipcode     => { type => 'text' },
     cp_city        => { type => 'text' },
     cp_birthday    => { type => 'date' },
-    cp_function    => { type => 'text' },
+    cp_position    => { type => 'character', length => 75 },
   ],
 
   primary_key_columns => [ 'cp_id' ],
 
 
   my @columns      = qw(
     cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2
-    cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_function cp_birthday cp_gender
+    cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_position cp_birthday cp_gender
   );
 
   my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
     'cp_mobile2'   => { 'text' => $::locale->text('Mobile2'), },
     'cp_email'     => { 'text' => $::locale->text('E-mail'), },
     'cp_abteilung' => { 'text' => $::locale->text('Department'), },
-    'cp_function'  => { 'text' => $::locale->text('Function/position'), },
+    'cp_position'  => { 'text' => $::locale->text('Function/position'), },
     'cp_birthday'  => { 'text' => $::locale->text('Birthday'), },
     'cp_gender'    => { 'text' => $::locale->text('Gender'), },
     %column_defs_cvars,
 
+++ /dev/null
--- @tag: contacts_add_cp_function
--- @description: Feld 'Funktion/Position' zu Kontakten
--- @depends: release_3_0_0
--- @charset: utf-8
-ALTER TABLE contacts ADD COLUMN cp_function text;
 
--- /dev/null
+# @tag: contacts_add_cp_position
+# @description: Feld 'Funktion/Position' zu Kontakten
+# @depends: release_3_0_0
+# @charset: utf-8
+
+package contacts_add_cp_position;
+use strict;
+
+die 'This script cannot be run from the command line.' if !$::form;
+
+my $query = 'ALTER TABLE contacts ADD COLUMN cp_position VARCHAR(75)';
+
+if (!$dbh->do($query)) {
+  $dbh->rollback;
+  $dbh->begin_work;
+}
+
+1;
 
 
      <tr>
       <th align="left" nowrap>[% 'Function/position' | $T8 %]</th>
-      <td>[% L.input_tag('cp_function', cp_function, size=40) %]</td>
+      <td>[% L.input_tag('cp_position', cp_position, size=40, maxlength=75) %]</td>
      </tr>
 
      <tr>
 
         <label for="l_cp_abteilung">[% 'Department' | $T8 %]</label>
        </td>
 
-       <td>[% L.checkbox_tag('l.cp_function', value='Y', label=LxERP.t8('Function/position'), class='checkbox') %]</td>
+       <td>[% L.checkbox_tag('l.cp_position', value='Y', label=LxERP.t8('Function/position'), class='checkbox') %]</td>
       </tr>
 
       <tr>