Merge branch 'develop' of ssh://git.dsv.su.se/git/scipro/scipro into develop
This commit is contained in:
commit
c2869b63f9
core/src/main/java/se/su/dsv/scipro/springdata/serviceimpls
resources/db_update_scripts
@ -129,6 +129,7 @@ public class TargetServiceImpl extends AbstractQueryService<Target, Long> implem
|
||||
int availableIdeas = SciProUtilities.safeLongToInt(newIdeaService.countAll(countParams));
|
||||
|
||||
int ideasLeftToCreate = findOne(ap, e, pc).getTarget() - availableIdeas;
|
||||
ideasLeftToCreate = ideasLeftToCreate - SciProUtilities.safeLongToInt(newIdeaService.countMatched(ap, e, pc));
|
||||
|
||||
if (ideasLeftToCreate > 0) {
|
||||
return ideasLeftToCreate;
|
||||
|
@ -1,3 +1,8 @@
|
||||
-- These tables need to be emptied first in order to run the below milestone stuff
|
||||
DELETE FROM milestone;
|
||||
DELETE FROM milestone_activity;
|
||||
DELETE FROM milestone_activity_project_class;
|
||||
|
||||
-- Phase table
|
||||
CREATE TABLE `milestone_phase` (
|
||||
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
|
||||
@ -63,4 +68,4 @@ DROP TABLE string_resource;
|
||||
|
||||
DROP TABLE weights;
|
||||
|
||||
ALTER TABLE `comment` CHANGE `id` `id` BIGINT(20) NOT NULL AUTO_INCREMENT;
|
||||
ALTER TABLE `comment` CHANGE `id` `id` BIGINT(20) NOT NULL AUTO_INCREMENT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user