Lines 1428-1433
CREATE TABLE saved_sql ( -- saved sql reports
Link Here
|
1428 |
report_area varchar(6) default NULL, |
1428 |
report_area varchar(6) default NULL, |
1429 |
report_group varchar(80) default NULL, |
1429 |
report_group varchar(80) default NULL, |
1430 |
report_subgroup varchar(80) default NULL, |
1430 |
report_subgroup varchar(80) default NULL, |
|
|
1431 |
`mana_id` int(11) NULL DEFAULT NULL, |
1431 |
PRIMARY KEY (`id`), |
1432 |
PRIMARY KEY (`id`), |
1432 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1433 |
KEY sql_area_group_idx (report_group, report_subgroup), |
1433 |
KEY boridx (`borrowernumber`) |
1434 |
KEY boridx (`borrowernumber`) |
Lines 2087-2092
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
2087 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2088 |
`reneweddate` date default NULL, -- date of last renewal for the subscription |
2088 |
`itemtype` VARCHAR( 10 ) NULL, |
2089 |
`itemtype` VARCHAR( 10 ) NULL, |
2089 |
`previousitemtype` VARCHAR( 10 ) NULL, |
2090 |
`previousitemtype` VARCHAR( 10 ) NULL, |
|
|
2091 |
`mana_id` int(11) NULL DEFAULT NULL, |
2090 |
PRIMARY KEY (`subscriptionid`), |
2092 |
PRIMARY KEY (`subscriptionid`), |
2091 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2093 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2092 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |
2094 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |