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

Refactor KRR/OVV to use EF state, not YUNIQL. #264

Open
2 tasks
olebhansen opened this issue Nov 18, 2024 · 0 comments
Open
2 tasks

Refactor KRR/OVV to use EF state, not YUNIQL. #264

olebhansen opened this issue Nov 18, 2024 · 0 comments

Comments

@olebhansen
Copy link

olebhansen commented Nov 18, 2024

DB deploy as separate step/user. NOT during application start.

Intent with regards to separate deploy step:

  • App-user should not have rights to perform DDL-changes. Hence DB deployment must happen in a separate context/step (workflow or init-container).

Assumption:

  • Only 1 DB context for both KRR and OVV.
  • DB-first approach (based on EF generated scripts - NB: unique index vs. constraint)

OK to drop everything in the existing DB and start over.

Acceptance criterias:

  • YUNIQL removed/not present in in KRR and OVV projects/repo
  • DB changes managed and deployed from EF
  • User for deploy is not the same as the app-user

From identical/duplicate-issue #190

Description

Find out how to set up EF tooling to perform database migration and add a release pipeline step. It's a goal to use the same mechanism to perform database migration for local developlent using Aspire.

Additional information

The altinn-studio team is already doing database migration this way.
https://github.com/Altinn/altinn-studio/blob/main/backend/Migrations.Dockerfile

Tasks

  • Add a step to the release pipline for database migration

Acceptance criteria

  • Database migration is performed as a step during deployment and not by the Profile application
@olebhansen olebhansen changed the title Refactor KRR/OVV to use EF state, not Unicle. Refactor KRR/OVV to use EF state, not YUNIQL. Nov 18, 2024
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

No branches or pull requests

1 participant