Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Update 105-update-root-area-and-iteration-path-field.sql #2313

Merged
merged 1 commit into from
Oct 10, 2018
Merged

Conversation

kwk
Copy link
Collaborator

@kwk kwk commented Oct 10, 2018

Based on this discussion we first remove the unique name index on the iterations and areas table before we modify the data.

In a previous attempt (#2312) I haven't moved the removal of the index enough up.

This should fix the migration issue that was visible here: openshiftio/saas-openshiftio#1082

Based on [this discussion](https://chat.openshift.io/developers/pl/6m4cojtiotdoueqot8uww5ybpe) we first remove the unique name index on the `iterations` and `areas` table before we modify the data.

In a previous attempt (#2312) I haven't moved the removal of the index enough up.

This should fix the migration issue that was visible here: openshiftio/saas-openshiftio#1082
@kwk kwk self-assigned this Oct 10, 2018
@alien-ike
Copy link

Ike Plugins (test-keeper)

Thank you @kwk for this contribution!

It appears that no tests have been added or updated in this PR.

Automated tests give us confidence in shipping reliable software. Please add some as part of this change.

If you are an admin or the reviewer of this PR and you are sure that no test is needed then you can use the command /ok-without-tests as a comment to make the status green.

For more information please head over to official documentation. You can find there how to configure the plugin.

@kwk kwk requested a review from aslakknutsen October 10, 2018 10:55
@aslakknutsen
Copy link
Contributor

/ok-without-tests

@kwk kwk merged commit 87bf305 into master Oct 10, 2018
@kwk kwk deleted the kwk-patch-3 branch October 10, 2018 11:12
kwk added a commit to openshiftio/saas-openshiftio that referenced this pull request Oct 10, 2018
# About
This description was generated using this script:
```sh
#!/bin/bash
set -e
GHORG=${GHORG:-fabric8-services}
GHREPO=${GHREPO:-fabric8-wit}
cat <<EOF
# About
This description was generated using this script:
\`\`\`sh
`cat $0`
\`\`\`
Invoked as:

    `echo GHORG=${GHORG} GHREPO=${GHREPO} $(basename $0) ${@:1}`

# Changes
EOF
git log \
  --pretty="%n**Commit:** https://github.com/${GHORG}/${GHREPO}/commit/%H%n**Author:** %an (%ae)%n**Date:** %aI%n%n%s%n%n%b%n%n----%n" \
  --reverse ${@:1} \
  | sed -E "s/([\s|\(| ])#([0-9]+)/\1${GHORG}\/${GHREPO}#\2/g"
```
Invoked as:

    GHORG=fabric8-services GHREPO=fabric8-wit git-log-pr.sh 1371e8243fb9f68775a50a8eca738193db706164..87bf305c5d73a9cf4df5f37172aaf19d9e7034ea

# Changes

**Commit:** fabric8-services/fabric8-wit@87bf305
**Author:** Konrad Kleine (193408+kwk@users.noreply.github.com)
**Date:** 2018-10-10T13:12:53+02:00

Update 105-update-root-area-and-iteration-path-field.sql (fabric8-services/fabric8-wit#2313)

Based on [this discussion](https://chat.openshift.io/developers/pl/6m4cojtiotdoueqot8uww5ybpe) we first remove the unique name index on the `iterations` and `areas` table before we modify the data.

In a previous attempt (fabric8-services/fabric8-wit#2312) I haven't moved the removal of the index enough up.

This should fix the migration issue that was visible here: #1082

----
@codecov
Copy link

codecov bot commented Oct 10, 2018

Codecov Report

Merging #2313 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2313   +/-   ##
======================================
  Coverage    70.1%   70.1%           
======================================
  Files         174     174           
  Lines       16796   16796           
======================================
  Hits        11775   11775           
  Misses       3888    3888           
  Partials     1133    1133

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 1371e82...b91a2f0. Read the comment docs.

kwk added a commit to openshiftio/saas-openshiftio that referenced this pull request Oct 10, 2018
# Changes

**Commit:** fabric8-services/fabric8-wit@87bf305
**Author:** Konrad Kleine (193408+kwk@users.noreply.github.com)
**Date:** 2018-10-10T13:12:53+02:00

Update 105-update-root-area-and-iteration-path-field.sql (fabric8-services/fabric8-wit#2313)

Based on [this discussion](https://chat.openshift.io/developers/pl/6m4cojtiotdoueqot8uww5ybpe) we first remove the unique name index on the `iterations` and `areas` table before we modify the data.

In a previous attempt (fabric8-services/fabric8-wit#2312) I haven't moved the removal of the index enough up.

This should fix the migration issue that was visible here: #1082

----
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants