Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/cats_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ insert into `access_level`(`access_level_id`,`short_description`,`long_descript

CREATE TABLE `activity` (
`activity_id` int(11) NOT NULL AUTO_INCREMENT,
`data_item_id` int(11) NOT NULL DEFAULT '0',
`data_item_type` int(11) NOT NULL DEFAULT '0',
`data_item_id` int(11) NOT NULL DEFAULT '0',
`joborder_id` int(11) DEFAULT NULL,
`site_id` int(11) NOT NULL DEFAULT '0',
`entered_by` int(11) NOT NULL DEFAULT '0',
Expand Down
5 changes: 5 additions & 0 deletions modules/install/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,11 @@ public static function get()
SET short_description = \'Not reached\'
WHERE activity_type_id = 100;
',
'377' => '
ALTER TABLE `activity`
MODIFY COLUMN `data_item_type` int(11) NOT NULL DEFAULT \'0\'
AFTER `activity_id`;
',

);
}
Expand Down
6 changes: 3 additions & 3 deletions test/data/securityTests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ VALUES
(60001, 60001, 100, 20000, 1, '2016-08-10 14:51:51');

INSERT INTO `activity`
(`activity_id`, `data_item_id`, `data_item_type`, `joborder_id`, `site_id`, `entered_by`, `date_created`, `type`, `notes`, `date_modified`)
(`activity_id`, `data_item_type`, `data_item_id`, `joborder_id`, `site_id`, `entered_by`, `date_created`, `type`, `notes`, `date_modified`)
VALUES
(70001, 20000, 100, 40001, 1, 1, '2016-08-10 14:48:57', 400, 'Added candidate to job order.', '2016-08-10 14:48:57'),
(70002, 30001, 300, -1, 1, 1, '2016-08-10 15:04:48', 100, '', '2016-08-10 15:04:48');
(70001, 100, 20000, 40001, 1, 1, '2016-08-10 14:48:57', 400, 'Added candidate to job order.', '2016-08-10 14:48:57'),
(70002, 300, 30001, -1, 1, 1, '2016-08-10 15:04:48', 100, '', '2016-08-10 15:04:48');

INSERT INTO `attachment`
(`attachment_id`, `data_item_id`, `data_item_type`, `site_id`, `title`, `original_filename`, `stored_filename`, `content_type`, `resume`, `text`, `date_created`, `date_modified`, `profile_image`, `directory_name`, `md5_sum`, `file_size_kb`, `md5_sum_text`)
Expand Down
Loading