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

setting unique key in CapabilityLanguage does not work #183

Open
cswertz opened this issue Jun 28, 2021 · 0 comments
Open

setting unique key in CapabilityLanguage does not work #183

cswertz opened this issue Jun 28, 2021 · 0 comments

Comments

@cswertz
Copy link
Owner

cswertz commented Jun 28, 2021

adding

uniqueKeys: { CapabilityLanguage_unique: { fields: ['CapabilityId', 'LanguageId']

to 00065-CapabilityLanguages.js leads to

== 00065-CapabilityLanguage: migrating ======= (node:27730) UnhandledPromiseRejectionWarning: SequelizeUniqueConstraintError: Validation error at Query.formatError (/home/cswertz/forschung/projects/1998_lerndorf/data/test/server/node_modules/sequelize/lib/dialects/sqlite/query.js:409:16)

for unclear reasons.

Explanation in docs did not help:

UniqueConstraintError
Extends:
lib/errors/validation/unique-constraint-error.js~ValidationError → UniqueConstraintError

Thrown when a unique constraint is violated in the database

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