extra fields for reports

This commit is contained in:
John Woodlock
2012-08-10 20:06:06 +10:00
parent 32ba284c6d
commit c23b0de89e
3 changed files with 12 additions and 4 deletions
@@ -457,7 +457,7 @@ CREATE TABLE `portfolio_note` (
CREATE TABLE `rpt_sequence` (
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=483 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
CREATE TABLE `stretchydata_datasettype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
@@ -529,9 +529,12 @@ CREATE TABLE `stretchy_report` (
`report_subtype` varchar(20) DEFAULT NULL,
`report_category` varchar(45) DEFAULT NULL,
`report_sql` text,
`description` text,
`core_report` tinyint(1) DEFAULT '0',
`use_report` tinyint(1) DEFAULT '0',
PRIMARY KEY (`report_id`),
UNIQUE KEY `report_name_UNIQUE` (`report_name`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `stretchy_report_parameter` (
`report_id` int(11) NOT NULL,
File diff suppressed because one or more lines are too long
@@ -0,0 +1,4 @@
ALTER TABLE `stretchy_report`
ADD COLUMN `description` TEXT NULL DEFAULT NULL AFTER `report_sql` ,
ADD COLUMN `core_report` TINYINT(1) NULL DEFAULT '0' AFTER `description` ,
ADD COLUMN `use_report` TINYINT(1) NULL DEFAULT '0' AFTER `core_report` ;