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

Automate database migration when a micro service is installed or updated #124

Closed
samarpan-b opened this issue Mar 10, 2021 · 0 comments · Fixed by #158 or #179
Closed

Automate database migration when a micro service is installed or updated #124

samarpan-b opened this issue Mar 10, 2021 · 0 comments · Fixed by #158 or #179
Assignees
Labels
documentation Improvements or additions to documentation migrations spike-needed

Comments

@samarpan-b
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently there is no way to provide the database migrations to consumers whenever a micro service is upgraded

Describe the solution you'd like
We need to have some kind of automaton here . A pre-install hook or a simple cli command which can be triggered whenever needed.

Describe alternatives you've considered
None as of now. Only way is to use loopback migrate.

Additional context
We need to do a Spike first for the approach. We can figure out the acceptance criteria after that.

@samarpan-b samarpan-b added documentation Improvements or additions to documentation migrations spike-needed labels Mar 10, 2021
akshatdubeysf added a commit that referenced this issue Apr 1, 2021
…ration changes

MIGRATION CHANGE:
migration-20210318100600- Base migration for authentication service

gh-124
akshatdubeysf added a commit that referenced this issue Apr 1, 2021
…ration changes

MIGRATION CHANGE:
migration-20210318100600- Base migration for authentication service

gh-124
akshatdubeysf added a commit that referenced this issue Apr 1, 2021
MIGRATION CHANGE:
migration-20210318100600- fixed repeated code

gh-124
akshatdubeysf added a commit that referenced this issue Apr 15, 2021
…ration changes

MIGRATION CHANGE:
migration-20210318100600- Base migration for authentication service

gh-124
akshatdubeysf added a commit that referenced this issue Apr 15, 2021
MIGRATION CHANGE:
migration-20210318100600- fixed repeated code

gh-124
akshatdubeysf added a commit that referenced this issue Apr 28, 2021
…ration changes

MIGRATION CHANGE:
migration-20210318100600- Base migration for authentication service

gh-124
akshatdubeysf added a commit that referenced this issue Apr 28, 2021
MIGRATION CHANGE:
migration-20210318100600- fixed repeated code

gh-124
akshatdubeysf added a commit that referenced this issue Apr 28, 2021
MIGRATION CHANGE:
migration-20210318100600- Changed ids to uuids, changed timestamps

BREAKING CHANGE:
Automigration Added - will need to add SKIP env variable in existing project, read docs for help

gh-124
samarpan-b pushed a commit that referenced this issue Apr 29, 2021
…ration changes (#158)

* feat(authentication-service): automigration and commit prompt for migration changes

MIGRATION CHANGE:
migration-20210318100600- Base migration for authentication service

gh-124

* docs(authentication-service): added migration docs

gh-124

* refactor(authentication-service): fixed sonar code smells

gh-124

* refactor(authentication-service): fixed repeated code in migration file

MIGRATION CHANGE:
migration-20210318100600- fixed repeated code

gh-124

* refactor(authentication-service): fixed sonar code smell in index of custom-sf-changelog

gh-124

* fix(authentication-service): fixed sonar code smell

gh-124

* fix(authentication-service): fixed issues from review

gh-124

* fix(authentication-service): fixed minor issues in migration.js

* fix(authentication-service): fixed migrations

MIGRATION CHANGE:
migration-20210318100600- Changed ids to uuids, changed timestamps

BREAKING CHANGE:
Automigration Added - will need to add SKIP env variable in existing project, read docs for help

gh-124
akshatdubeysf added a commit that referenced this issue May 1, 2021
MIGRATION CHANGE:
migration-20210501132806- added migration for notif service

BREAKING CHANGE:
need to add env in existing projects to skip auto-migrations

gh-124
akshatdubeysf added a commit that referenced this issue May 1, 2021
MIGRATION CHANGE:
migration-20210501132806- added migration for notif service

BREAKING CHANGE:
need to add env in existing projects to skip auto-migrations

gh-124
samarpan-b pushed a commit that referenced this issue May 1, 2021
MIGRATION CHANGE:
migration-20210501132806- added migration for notif service

BREAKING CHANGE:
need to add env in existing projects to skip auto-migrations

gh-124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment