# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
-$VERSION = "3.23.00.028";
+$VERSION = "3.23.00.029";
sub version {
return $VERSION;
+++ /dev/null
--- move marc21_field_003.pl 040c and 040d to marc21_orgcode.pl
-update marc_subfield_structure set value_builder='marc21_orgcode.pl' where value_builder IN ( 'marc21_field_003.pl', 'marc21_field_040c.pl', 'marc21_field_040d.pl' );
-update auth_subfield_structure set value_builder='marc21_orgcode.pl' where value_builder IN ( 'marc21_field_003.pl', 'marc21_field_040c.pl', 'marc21_field_040d.pl' );
SetVersion($DBversion);
}
+$DBversion = "3.23.00.029";
+if ( CheckVersion($DBversion) ) {
+
+ # move marc21_field_003.pl 040c and 040d to marc21_orgcode.pl
+ $dbh->do(q{
+ update marc_subfield_structure set value_builder='marc21_orgcode.pl' where value_builder IN ( 'marc21_field_003.pl', 'marc21_field_040c.pl', 'marc21_field_040d.pl' );
+ });
+ $dbh->do(q{
+ update auth_subfield_structure set value_builder='marc21_orgcode.pl' where value_builder IN ( 'marc21_field_003.pl', 'marc21_field_040c.pl', 'marc21_field_040d.pl' );
+ });
+
+ print "Upgrade to $DBversion done (Bug 14199 - Unify all organization code plugins)\n";
+ SetVersion($DBversion);
+}
+
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.