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