Lines 1455-1460
CREATE TABLE saved_sql ( -- saved sql reports
Link Here
|
1455 |
report_area varchar(6) default NULL, |
1455 |
report_area varchar(6) default NULL, |
1456 |
report_group varchar(80) default NULL, |
1456 |
report_group varchar(80) default NULL, |
1457 |
report_subgroup varchar(80) default NULL, |
1457 |
report_subgroup varchar(80) default NULL, |
|
|
1458 |
`mana_id` int(11) NULL DEFAULT NULL, |
1458 |
PRIMARY KEY (`id`), |
1459 |
PRIMARY KEY (`id`), |
1459 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1460 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1460 |
KEY boridx (`borrowernumber`) |
1461 |
KEY boridx (`borrowernumber`) |
Lines 2114-2119
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
2114 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2115 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2115 |
`itemtype` VARCHAR( 10 ) NULL, |
2116 |
`itemtype` VARCHAR( 10 ) NULL, |
2116 |
`previousitemtype` VARCHAR( 10 ) NULL, |
2117 |
`previousitemtype` VARCHAR( 10 ) NULL, |
|
|
2118 |
`mana_id` int(11) NULL DEFAULT NULL, |
2117 |
PRIMARY KEY (`subscriptionid`), |
2119 |
PRIMARY KEY (`subscriptionid`), |
2118 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2120 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2119 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |
2121 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |