1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
4 unless ( column_exists( 'marc_subfield_structure', 'display_order' ) ) {
6 ALTER TABLE marc_subfield_structure
7 ADD COLUMN display_order INT(2) NOT NULL DEFAULT 0 AFTER maxlength
11 unless ( column_exists( 'auth_subfield_structure', 'display_order' ) ) {
13 ALTER TABLE auth_subfield_structure
14 ADD COLUMN display_order INT(2) NOT NULL DEFAULT 0 AFTER defaultvalue
18 # Always end with this (adjust the bug info)
19 NewVersion( $DBversion, 8976, "Allow setting a default sequence of subfields in cataloguing editor" );