# - #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 = "18.06.00.018";
+$VERSION = "18.06.00.019";
sub version {
return $VERSION;
+++ /dev/null
-INSERT INTO columns_settings (module, page, tablename, columnname, cannot_be_toggled, is_hidden) VALUES
-("circ", "circulation", "issues-table", "collection", 0, 1),
-("members", "moremember", "issues-table", "collection", 0, 1);
-
--- Bug 19719: Add collection column to issues table
print "Upgrade to $DBversion done (Bug 20487: Clear items.onloan for unissued items)\n";
}
+$DBversion = '18.06.00.019';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do( q|
+INSERT IGNORE INTO columns_settings (module, page, tablename, columnname, cannot_be_toggled, is_hidden) VALUES
+("circ", "circulation", "issues-table", "collection", 0, 1),
+("members", "moremember", "issues-table", "collection", 0, 1);
+ |);
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug 19719: Default to hiding collection code column)\n";
+}
+
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.