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 2110-2115
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
2110 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2111 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2111 |
`itemtype` VARCHAR( 10 ) NULL, |
2112 |
`itemtype` VARCHAR( 10 ) NULL, |
2112 |
`previousitemtype` VARCHAR( 10 ) NULL, |
2113 |
`previousitemtype` VARCHAR( 10 ) NULL, |
|
|
2114 |
`mana_id` int(11) NULL DEFAULT NULL, |
2113 |
PRIMARY KEY (`subscriptionid`), |
2115 |
PRIMARY KEY (`subscriptionid`), |
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, |
2115 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (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 |