MT 1587 (Follow-up) : CSV export for cart and shelves (export_format table creation)
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
a7ccfbc629
commit
c11a576526
|
|
@ -742,6 +742,20 @@ CREATE TABLE `ethnicity` (
|
|||
PRIMARY KEY (`code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Table structure for table `export_format`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `export_format`;
|
||||
CREATE TABLE `export_format` (
|
||||
`export_format_id` int(11) NOT NULL auto_increment,
|
||||
`profile` varchar(255) NOT NULL,
|
||||
`description` mediumtext NOT NULL,
|
||||
`marcfields` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`export_format_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Used for CSV export';
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `hold_fill_targets`
|
||||
--
|
||||
|
|
|
|||
|
|
@ -2692,7 +2692,16 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
|||
$DBversion = "3.01.00.062";
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do("INSERT INTO permissions (module_bit, code, description) VALUES ( 13, 'manage_csv_profiles', 'Manage CSV export profiles')");
|
||||
print "Upgrade to $DBversion done (added permissions for csv export profiles)\n";
|
||||
$dbh->do(q/
|
||||
CREATE TABLE `export_format` (
|
||||
`export_format_id` int(11) NOT NULL auto_increment,
|
||||
`profile` varchar(255) NOT NULL,
|
||||
`description` mediumtext NOT NULL,
|
||||
`marcfields` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`export_format_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Used for CSV export';
|
||||
/);
|
||||
print "Upgrade to $DBversion done (added csv export profiles)\n";
|
||||
}
|
||||
|
||||
=item
|
||||
|
|
|
|||
Loading…
Reference in New Issue