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