Lines 1470-1475
CREATE TABLE saved_sql ( -- saved sql reports
Link Here
|
1470 |
report_area varchar(6) default NULL, |
1470 |
report_area varchar(6) default NULL, |
1471 |
report_group varchar(80) default NULL, |
1471 |
report_group varchar(80) default NULL, |
1472 |
report_subgroup varchar(80) default NULL, |
1472 |
report_subgroup varchar(80) default NULL, |
|
|
1473 |
`mana_id` int(11) NULL DEFAULT NULL, |
1473 |
PRIMARY KEY (`id`), |
1474 |
PRIMARY KEY (`id`), |
1474 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1475 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1475 |
KEY boridx (`borrowernumber`) |
1476 |
KEY boridx (`borrowernumber`) |
Lines 2128-2133
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
2128 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2129 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2129 |
`itemtype` VARCHAR( 10 ) NULL, |
2130 |
`itemtype` VARCHAR( 10 ) NULL, |
2130 |
`previousitemtype` VARCHAR( 10 ) NULL, |
2131 |
`previousitemtype` VARCHAR( 10 ) NULL, |
|
|
2132 |
`mana_id` int(11) NULL DEFAULT NULL, |
2131 |
PRIMARY KEY (`subscriptionid`), |
2133 |
PRIMARY KEY (`subscriptionid`), |
2132 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2134 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2133 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |
2135 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |