This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1597 from mgeiss/MIFSX-SPM-5
Mifsx spm 5
- Loading branch information
Showing
6 changed files
with
43 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
mifosng-provider/src/main/resources/sql/migrations/core_db/V287__alter_spm_scorecard.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SET FOREIGN_KEY_CHECKS = 0; | ||
DROP TABLE IF EXISTS `m_survey_scorecards`; | ||
CREATE TABLE `m_survey_scorecards` ( | ||
`id` BIGINT(20) NOT NULL AUTO_INCREMENT, | ||
`survey_id` BIGINT(20) NOT NULL, | ||
`question_id` BIGINT(20) NOT NULL, | ||
`response_id` BIGINT(20) NOT NULL, | ||
`user_id` BIGINT(20) NOT NULL, | ||
`client_id` BIGINT(20) NOT NULL, | ||
`created_on` DATETIME NULL DEFAULT NULL, | ||
`a_value` INT(4) NOT NULL, | ||
PRIMARY KEY (`id`), | ||
FOREIGN KEY (`survey_id`) REFERENCES `m_surveys` (`id`), | ||
FOREIGN KEY (`question_id`) REFERENCES `m_survey_questions` (`id`), | ||
FOREIGN KEY (`response_id`) REFERENCES `m_survey_responses` (`id`), | ||
FOREIGN KEY (`user_id`) REFERENCES `m_appusers` (`id`), | ||
FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`) | ||
); | ||
SET FOREIGN_KEY_CHECKS = 1; |