@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_20352.perl | 13 +++++++++++++ installer/data/mysql/kohastructure.sql | 1 + 2 files changed, 14 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_20352.perl --- a/installer/data/mysql/atomicupdate/bug_20352.perl +++ a/installer/data/mysql/atomicupdate/bug_20352.perl @@ -0,0 +1,13 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + if( !column_exists( 'currency', 'p_cs_precedes' ) ) { + $dbh->do(q| + ALTER TABLE currency + ADD COLUMN p_cs_precedes tinyint(1) DEFAULT 1 + AFTER p_sep_by_space + |); + } + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20352 - Add column currency.p_cs_precedes)\n"; +} --- a/installer/data/mysql/kohastructure.sql +++ a/installer/data/mysql/kohastructure.sql @@ -432,6 +432,7 @@ CREATE TABLE `currency` ( `active` tinyint(1) default NULL, `archived` tinyint(1) DEFAULT 0, `p_sep_by_space` tinyint(1) DEFAULT 0, + `p_cs_precedes` tinyint(1) DEFAULT 1, PRIMARY KEY (`currency`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; --