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

Bug: DB Migration order / permission views #123

Open
1 task done
davidsparkles opened this issue Oct 10, 2019 · 0 comments
Open
1 task done

Bug: DB Migration order / permission views #123

davidsparkles opened this issue Oct 10, 2019 · 0 comments
Labels

Comments

@davidsparkles
Copy link
Collaborator

Package

  • db

Describe the bug
If a field is added to an entitiy and at the same time permissions are added, one fails on startup, because gql views are created before typeorm synchronizes the database. Ergo, column is missing during view creation.

To Reproduce
Steps to reproduce the behavior:

  1. Add a field to an entitiy
  2. Add this field to createViews permissions

Expected behavior
Should not fail. (1) typeorm migrations (2) typeorm syncronization (3) graphql view and trigger migrations
https://github.com/fullstack-build/fullstack-one/blob/master/packages/db/lib/index.ts#L67

@terehov terehov changed the title Bug: [BUG] Bug: DB Migration order / permission views Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant