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

(-)a/installer/data/mysql/atomicupdate/bug_24299.perl (+24 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
4
    # Add stockrotation states to trigger enum
5
    $dbh->do(
6
        qq{
7
            ALTER TABLE
8
                `branchtransfers`
9
            MODIFY COLUMN
10
                `trigger` enum(
11
                    'MANUAL',
12
                    'StockrotationAdvance',
13
                    'StockrotationRepatriation',
14
                    'ReturnToHome',
15
                    'ReturnToHolding',
16
                    'RotatingCollection'
17
                )
18
            AFTER `comments`
19
          }
20
    );
21
22
    SetVersion( $DBversion );
23
    print "Upgrade to $DBversion done (Bug 24299 - Add 'collection' triggers to branchtransfers enum)\n";
24
}
(-)a/installer/data/mysql/kohastructure.sql (-2 / +1 lines)
Lines 951-957 CREATE TABLE `branchtransfers` ( -- information for items that are in transit be Link Here
951
  `datearrived` datetime default NULL, -- the date the transfer arrived at its destination
951
  `datearrived` datetime default NULL, -- the date the transfer arrived at its destination
952
  `tobranch` varchar(10) NOT NULL default '', -- the branch the transfer was going to
952
  `tobranch` varchar(10) NOT NULL default '', -- the branch the transfer was going to
953
  `comments` LONGTEXT, -- any comments related to the transfer
953
  `comments` LONGTEXT, -- any comments related to the transfer
954
  `trigger` ENUM('MANUAL', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding'), -- what triggered the transfer
954
  `trigger` ENUM('MANUAL', 'StockrotationAdvance', 'StockrotationRepatriation', 'ReturnToHome', 'ReturnToHolding', 'RotatingCollection'), -- what triggered the transfer
955
  PRIMARY KEY (`branchtransfer_id`),
955
  PRIMARY KEY (`branchtransfer_id`),
956
  KEY `frombranch` (`frombranch`),
956
  KEY `frombranch` (`frombranch`),
957
  KEY `tobranch` (`tobranch`),
957
  KEY `tobranch` (`tobranch`),
958
- 

Return to bug 24299