# - #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 = "16.12.00.025";
+$VERSION = "16.12.00.026";
sub version {
return $VERSION;
+++ /dev/null
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-
- # In order to be overcomplete, we check if the situation is what we expect
- if( !index_exists( 'serialitems', 'PRIMARY' ) ) {
- if( index_exists( 'serialitems', 'serialitemsidx' ) ) {
- $dbh->do(q|
-ALTER TABLE serialitems ADD PRIMARY KEY (itemnumber), DROP INDEX serialitemsidx;
- |);
- } else {
- $dbh->do(q|ALTER TABLE serialitems ADD PRIMARY KEY (itemnumber)|);
- }
- }
-
- SetVersion( $DBversion );
- print "Upgrade to $DBversion done (Bug 18427 - Add a primary key to serialitems)\n";
-}
print "Upgrade to $DBversion done (Bug 17669 - Introduce preference for deleting temporary uploads)\n";
}
+$DBversion = '16.12.00.026';
+if( CheckVersion( $DBversion ) ) {
+
+ # In order to be overcomplete, we check if the situation is what we expect
+ if( !index_exists( 'serialitems', 'PRIMARY' ) ) {
+ if( index_exists( 'serialitems', 'serialitemsidx' ) ) {
+ $dbh->do(q|
+ ALTER TABLE serialitems ADD PRIMARY KEY (itemnumber), DROP INDEX serialitemsidx;
+ |);
+ } else {
+ $dbh->do(q|ALTER TABLE serialitems ADD PRIMARY KEY (itemnumber)|);
+ }
+ }
+
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug 18427 - Add a primary key to serialitems)\n";
+}
+
# 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.