Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migration script on production #5945

Merged
merged 5 commits into from
Sep 30, 2021

Conversation

mbayopanda
Copy link
Contributor

This PR fixes migration script on a production data base by :

  • Updating the cost center allocation bases path in the unit table
  • Adding an entry for the cost center allocation report in the report table

Also, some fix :

  • Old FeeCenter reference
  • Translation in grid cell

Copy link
Contributor

@jniles jniles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Bors r+

@bors
Copy link
Contributor

bors bot commented Sep 28, 2021

Merge conflict.

@jniles
Copy link
Contributor

jniles commented Sep 28, 2021

@mbayopanda, can you take a look at this merge conflict?

Copy link
Collaborator

@jmcameron jmcameron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
I will test this on the IMCK database. In the mean time, I suggest check my comments on this review and then rebase.

* @author: mbayopanda
* @desc: add predefined allocation basis
*/
INSERT INTO `cost_center_allocation_basis` (`id`, `name`, `units`, `description`, `is_predefined`) VALUES
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: If PR #5947 gets merged first, this will need a little adjusting since I added items 1-3 in my version of migrate.sql. I suggest adding these (4-6) into the previous insert (with 1-3) above.

ALSO, please add the SQL 'IGNORE' keyword in your 'INSERT' statements.

@jniles
Copy link
Contributor

jniles commented Sep 30, 2021

LGTM.

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 30, 2021

Build succeeded:

@bors bors bot merged commit 7e63eb5 into IMA-WorldHealth:master Sep 30, 2021
@mbayopanda mbayopanda deleted the fix-migration-on-production branch November 14, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants