View | Details | Raw Unified | Return to bug 12754
Collapse All | Expand All

(-)a/installer/data/mysql/kohastructure.sql (-1 / +2 lines)
Lines 3383-3389 CREATE TABLE IF NOT EXISTS marc_modification_template_actions ( Link Here
3383
  mmta_id int(11) NOT NULL AUTO_INCREMENT,
3383
  mmta_id int(11) NOT NULL AUTO_INCREMENT,
3384
  template_id int(11) NOT NULL,
3384
  template_id int(11) NOT NULL,
3385
  ordering int(3) NOT NULL,
3385
  ordering int(3) NOT NULL,
3386
  action enum('delete_field','update_field','move_field','copy_field') NOT NULL,
3386
  action enum('delete_field','update_field','move_field','copy_field','run_xslt') NOT NULL,
3387
  field_number smallint(6) NOT NULL DEFAULT '0',
3387
  field_number smallint(6) NOT NULL DEFAULT '0',
3388
  from_field varchar(3) NOT NULL,
3388
  from_field varchar(3) NOT NULL,
3389
  from_subfield varchar(1) DEFAULT NULL,
3389
  from_subfield varchar(1) DEFAULT NULL,
Lines 3400-3405 CREATE TABLE IF NOT EXISTS marc_modification_template_actions ( Link Here
3400
  conditional_value text,
3400
  conditional_value text,
3401
  conditional_regex tinyint(1) NOT NULL DEFAULT '0',
3401
  conditional_regex tinyint(1) NOT NULL DEFAULT '0',
3402
  description text,
3402
  description text,
3403
  run_xslt text,
3403
  PRIMARY KEY (mmta_id),
3404
  PRIMARY KEY (mmta_id),
3404
  CONSTRAINT `mmta_ibfk_1` FOREIGN KEY (`template_id`) REFERENCES `marc_modification_templates` (`template_id`) ON DELETE CASCADE ON UPDATE CASCADE
3405
  CONSTRAINT `mmta_ibfk_1` FOREIGN KEY (`template_id`) REFERENCES `marc_modification_templates` (`template_id`) ON DELETE CASCADE ON UPDATE CASCADE
3405
) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
3406
) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +12 lines)
Lines 8603-8608 if ( CheckVersion($DBversion) ) { Link Here
8603
    SetVersion($DBversion);
8603
    SetVersion($DBversion);
8604
}
8604
}
8605
8605
8606
8607
$DBversion = "3.17.00.XXX";  ### NOTE TO RM: Please update DBIx schema !!!
8608
if ( CheckVersion($DBversion) ) {
8609
    $dbh->do(q|
8610
ALTER TABLE marc_modification_template_actions
8611
    MODIFY COLUMN action enum('delete_field','update_field','move_field','copy_field','run_xslt'),
8612
    ADD COLUMN run_xslt TEXT
8613
    |);
8614
    print "Upgrade to $DBversion done (Bug 12754: Add XSLT action to MARC modification templates)\n";
8615
    SetVersion($DBversion);
8616
}
8617
8606
=head1 FUNCTIONS
8618
=head1 FUNCTIONS
8607
8619
8608
=head2 TableExists($table)
8620
=head2 TableExists($table)
8609
- 

Return to bug 12754