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

(-)a/installer/data/mysql/kohastructure.sql (-1 / +2 lines)
Lines 966-972 CREATE TABLE `import_batches` ( -- information about batches of marc records tha Link Here
966
  `num_records` int(11) NOT NULL default 0, -- number of records in the file
966
  `num_records` int(11) NOT NULL default 0, -- number of records in the file
967
  `num_items` int(11) NOT NULL default 0, -- number of items in the file
967
  `num_items` int(11) NOT NULL default 0, -- number of items in the file
968
  `upload_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, -- date and time the file was uploaded
968
  `upload_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, -- date and time the file was uploaded
969
  `overlay_action` enum('replace', 'create_new', 'use_template', 'ignore') NOT NULL default 'create_new', -- how to handle duplicate records
969
  `overlay_action` enum('replace', 'create_new', 'use_template', 'ignore','appendmarctag') NOT NULL default 'create_new', -- how to handle duplicate records
970
  `nomatch_action` enum('create_new', 'ignore') NOT NULL default 'create_new', -- how to handle records where no match is found
970
  `nomatch_action` enum('create_new', 'ignore') NOT NULL default 'create_new', -- how to handle records where no match is found
971
  `item_action` enum('always_add', 'add_only_for_matches', 'add_only_for_new', 'ignore') NOT NULL default 'always_add', -- what to do with item records
971
  `item_action` enum('always_add', 'add_only_for_matches', 'add_only_for_new', 'ignore') NOT NULL default 'always_add', -- what to do with item records
972
  `import_status` enum('staging', 'staged', 'importing', 'imported', 'reverting', 'reverted', 'cleaned') NOT NULL default 'staging', -- the status of the imported file
972
  `import_status` enum('staging', 'staged', 'importing', 'imported', 'reverting', 'reverted', 'cleaned') NOT NULL default 'staging', -- the status of the imported file
Lines 974-979 CREATE TABLE `import_batches` ( -- information about batches of marc records tha Link Here
974
  `record_type` enum('biblio', 'auth', 'holdings') NOT NULL default 'biblio', -- type of record in the batch
974
  `record_type` enum('biblio', 'auth', 'holdings') NOT NULL default 'biblio', -- type of record in the batch
975
  `file_name` varchar(100), -- the name of the file uploaded
975
  `file_name` varchar(100), -- the name of the file uploaded
976
  `comments` mediumtext, -- any comments added when the file was uploaded
976
  `comments` mediumtext, -- any comments added when the file was uploaded
977
  `marctag` mediumtext, -- marc tag for ex: 100a, 700a
977
  PRIMARY KEY (`import_batch_id`),
978
  PRIMARY KEY (`import_batch_id`),
978
  KEY `branchcode` (`branchcode`)
979
  KEY `branchcode` (`branchcode`)
979
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
980
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +8 lines)
Lines 7010-7015 CREATE TABLE IF NOT EXISTS borrower_files ( Link Here
7010
    SetVersion($DBversion);
7010
    SetVersion($DBversion);
7011
}
7011
}
7012
7012
7013
$DBversion = "3.13.00.XXX";
7014
if (CheckVersion($DBversion)) {
7015
    $dbh->do("ALTER TABLE import_batches  MODIFY overlay_action  enum('replace', 'create_new', 'use_template', 'ignore', 'appendmarctag') NOT NULL default 'create_new'");
7016
    $dbh->do("ALTER TABLE import_batches ADD COLUMN marctag mediumtext");
7017
    print "Upgrade to $DBversion done (Bug 10477: Alter table import_batches )\n";
7018
    SetVersion ($DBversion);
7019
}
7020
7013
=head1 FUNCTIONS
7021
=head1 FUNCTIONS
7014
7022
7015
=head2 TableExists($table)
7023
=head2 TableExists($table)
7016
- 

Return to bug 10477