Bug 22532: Database update
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
5867683fe9
commit
752eba6cfe
|
|
@ -0,0 +1,10 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
if( column_exists( 'import_records', 'z3950random' ) ) {
|
||||
$dbh->do( "ALTER TABLE import_records DROP COLUMN z3950random" );
|
||||
}
|
||||
|
||||
# Always end with this (adjust the bug info)
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 22532 - Remove import_records z3950random column)\n";
|
||||
}
|
||||
|
|
@ -741,7 +741,6 @@ CREATE TABLE `import_records` (
|
|||
`status` enum('error', 'staged', 'imported', 'reverted', 'items_reverted', 'ignored') NOT NULL default 'staged',
|
||||
`import_error` LONGTEXT,
|
||||
`encoding` varchar(40) NOT NULL default '',
|
||||
`z3950random` varchar(40) default NULL,
|
||||
PRIMARY KEY (`import_record_id`),
|
||||
CONSTRAINT `import_records_ifbk_1` FOREIGN KEY (`import_batch_id`)
|
||||
REFERENCES `import_batches` (`import_batch_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
|
|
|
|||
Loading…
Reference in New Issue