fabric8-services / fabric8-wit

wit stands for Work Item Tracker
http://devdoc.almighty.io/
Apache License 2.0
45 stars 86 forks source link

update number for existing iterations #2314

Closed kwk closed 5 years ago

kwk commented 5 years ago

This updates all existing iterations and assigns a number to each iteration partitioned by space and in ascending order by creation time.

This change also makes the number a not-NULLable column on the iterations.

Also a constraint (iterations_space_id_number_idx) is created that ensures an iteration number can only occur once per iteration.

codecov[bot] commented 5 years ago

Codecov Report

Merging #2314 into master will increase coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2314      +/-   ##
==========================================
+ Coverage   70.15%   70.16%   +0.01%     
==========================================
  Files         175      175              
  Lines       16843    16844       +1     
==========================================
+ Hits        11816    11819       +3     
+ Misses       3892     3891       -1     
+ Partials     1135     1134       -1
Impacted Files Coverage Δ
migration/migration.go 69.28% <100%> (+0.11%) :arrow_up:
workitem/workitem_repository.go 68.02% <0%> (+0.22%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 11904c7...2dcd881. Read the comment docs.