Adding reports_dictionary table

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Cormack 2007-10-30 13:20:20 -05:00 committed by Joshua Ferraro
parent 64278fd6b3
commit 0f429f0b31
3 changed files with 34 additions and 1 deletions

View file

@ -1283,6 +1283,22 @@ CREATE TABLE `repeatable_holidays` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `reports_dictionary`
--
DROP TABLE IF EXISTS `reports_dictionary`
CREATE TABLE reports_dictionary (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`description` text,
`date_created` datetime default NULL,
`date_modified` datetime default NULL,
`saved_sql` text,
`area` int(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `reserveconstraints`
--

View file

@ -8,7 +8,7 @@
# and is automatically called by Auth.pm when needed.
sub kohaversion {
return "3.00.00.015";
return "3.00.00.016";
}
1;

View file

@ -487,6 +487,23 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = "3.00.00.016";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do(" CREATE TABLE reports_dictionary (
id int(11) NOT NULL auto_increment,
name varchar(255) default NULL,
description text,
date_created datetime default NULL,
date_modified datetime default NULL,
saved_sql text,
area int(11) default NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ");
print "Upgrade to $DBversion done (reports_dictionary) added)\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table