Lines 1444-1449
CREATE TABLE saved_sql ( -- saved sql reports
Link Here
|
1444 |
report_area varchar(6) default NULL, |
1444 |
report_area varchar(6) default NULL, |
1445 |
report_group varchar(80) default NULL, |
1445 |
report_group varchar(80) default NULL, |
1446 |
report_subgroup varchar(80) default NULL, |
1446 |
report_subgroup varchar(80) default NULL, |
|
|
1447 |
`mana_id` int(11) NULL DEFAULT NULL, |
1447 |
PRIMARY KEY (`id`), |
1448 |
PRIMARY KEY (`id`), |
1448 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1449 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1449 |
KEY boridx (`borrowernumber`) |
1450 |
KEY boridx (`borrowernumber`) |
Lines 2107-2112
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
2107 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2108 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2108 |
`itemtype` VARCHAR( 10 ) NULL, |
2109 |
`itemtype` VARCHAR( 10 ) NULL, |
2109 |
`previousitemtype` VARCHAR( 10 ) NULL, |
2110 |
`previousitemtype` VARCHAR( 10 ) NULL, |
|
|
2111 |
`mana_id` int(11) NULL DEFAULT NULL, |
2110 |
PRIMARY KEY (`subscriptionid`), |
2112 |
PRIMARY KEY (`subscriptionid`), |
2111 |
KEY `by_biblionumber` (`biblionumber`), |
2113 |
KEY `by_biblionumber` (`biblionumber`), |
2112 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2114 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |