Lines 4425-4431
CREATE TABLE return_claims (
Link Here
|
4425 |
|
4425 |
|
4426 |
DROP TABLE IF EXISTS `problem_reports`; |
4426 |
DROP TABLE IF EXISTS `problem_reports`; |
4427 |
CREATE TABLE `problem_reports` ( |
4427 |
CREATE TABLE `problem_reports` ( |
4428 |
`reportid` int(11) NOT NULL auto_increment, -- unqiue identifier assigned by Koha |
4428 |
`reportid` int(11) NOT NULL auto_increment, -- unique identifier assigned by Koha |
4429 |
`title` varchar(40) NOT NULL default '', -- report subject line |
4429 |
`title` varchar(40) NOT NULL default '', -- report subject line |
4430 |
`content` varchar(255) NOT NULL default '', -- report message content |
4430 |
`content` varchar(255) NOT NULL default '', -- report message content |
4431 |
`borrowernumber` int(11) default NULL, -- the user who created the problem report |
4431 |
`borrowernumber` int(11) default NULL, -- the user who created the problem report |
Lines 4433-4439
CREATE TABLE `problem_reports` (
Link Here
|
4433 |
`username` varchar(75) default NULL, -- OPAC username |
4433 |
`username` varchar(75) default NULL, -- OPAC username |
4434 |
`problempage` varchar(255) default NULL, -- page the user triggered the problem report form from |
4434 |
`problempage` varchar(255) default NULL, -- page the user triggered the problem report form from |
4435 |
`recipient` enum('admin','library') NOT NULL default 'library', -- the 'to-address' of the problem report |
4435 |
`recipient` enum('admin','library') NOT NULL default 'library', -- the 'to-address' of the problem report |
4436 |
`reportdate` datetime default NULL, -- date and time of report submission |
4436 |
`created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, -- timestamp of report submission |
4437 |
`status` varchar(1) NOT NULL default 'N', -- status of the report. N=new, V=viewed, C=closed |
4437 |
`status` varchar(1) NOT NULL default 'N', -- status of the report. N=new, V=viewed, C=closed |
4438 |
PRIMARY KEY (`reportid`), |
4438 |
PRIMARY KEY (`reportid`), |
4439 |
CONSTRAINT `problem_reports_ibfk1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
4439 |
CONSTRAINT `problem_reports_ibfk1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |