Lines 1431-1436
CREATE TABLE saved_sql ( -- saved sql reports
Link Here
|
1431 |
report_area varchar(6) default NULL, |
1431 |
report_area varchar(6) default NULL, |
1432 |
report_group varchar(80) default NULL, |
1432 |
report_group varchar(80) default NULL, |
1433 |
report_subgroup varchar(80) default NULL, |
1433 |
report_subgroup varchar(80) default NULL, |
|
|
1434 |
`mana_id` int(11) NULL DEFAULT NULL, |
1434 |
PRIMARY KEY (`id`), |
1435 |
PRIMARY KEY (`id`), |
1435 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1436 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1436 |
KEY boridx (`borrowernumber`) |
1437 |
KEY boridx (`borrowernumber`) |
Lines 2112-2117
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
2112 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2113 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2113 |
`itemtype` VARCHAR( 10 ) NULL, |
2114 |
`itemtype` VARCHAR( 10 ) NULL, |
2114 |
`previousitemtype` VARCHAR( 10 ) NULL, |
2115 |
`previousitemtype` VARCHAR( 10 ) NULL, |
|
|
2116 |
`mana_id` int(11) NULL DEFAULT NULL, |
2115 |
PRIMARY KEY (`subscriptionid`), |
2117 |
PRIMARY KEY (`subscriptionid`), |
2116 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2118 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2117 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (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 |