@@ -, +, @@ Also update kohaversion.pl. Run updatestructure. Did you see the DevUpdateControl dbrev? Remove the line again from updatedatabase. Reset kohaversion.pl. --- .../mysql/atomicupdate/13068_DevUpdateControl.sql | 1 + installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/admin.pref | 10 ++++++++++ 3 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/13068_DevUpdateControl.sql --- a/installer/data/mysql/atomicupdate/13068_DevUpdateControl.sql +++ a/installer/data/mysql/atomicupdate/13068_DevUpdateControl.sql @@ -0,0 +1, @@ +INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('DevUpdateControl','PROD','PROD|RESET|ALWAYS|TRACK','Controls how development updates from atomicupdate folder are handled','Choice'); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -99,6 +99,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('defaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'), ('defaultSortOrder','dsc','asc|dsc|az|za','Specify the default sort order','Choice'), ('delimiter',';',';|tabulation|,|/|\\|#||','Define the default separator character for exporting reports','Choice'), +('DevUpdateControl','PROD','PROD|RESET|ALWAYS|TRACK','Controls how development updates from atomicupdate folder are handled','Choice'), ('Display856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','Choice'), ('DisplayClearScreenButton','0','','If set to ON, a clear screen button will appear on the circulation page.','YesNo'), ('displayFacetCount','0',NULL,NULL,'YesNo'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref @@ -50,6 +50,16 @@ Administration: yes: Allow no: "Don't allow" - staff and patrons to create and view saved lists of books. + - + - pref: DevUpdateControl + default: "PROD" + choices: + "PROD": "Only install official database revisions (PROD mode)" + "RESET": "After an official database revision, reinstall all development updates (RESET mode)" + "ALWAYS": "When upgrading, reinstall all development updates (ALWAYS mode)" + "TRACK": "Do not reinstall applied development updates (TRACK mode)" + - "from the atomicupdate folder of the installer.
" + - "NOTE: The PROD mode is (obviously) for production use, the other options are for developers. The list of recently installed development updates is saved in the local syspref _LocalAtomicUpdates (when using RESET or TRACK mode)." Login options: - - Automatically log out users after --