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

ORM: rekord törlését akadályozza meg az arra mutató idegen kulcs #100

Open
jmarton opened this issue Feb 11, 2018 · 1 comment
Open
Assignees

Comments

@jmarton
Copy link
Member

jmarton commented Feb 11, 2018

Jelenleg az idegen kulcsok az alábbi módon vannak a rendszerben:

ON UPDATE CASCADE ON DELETE SET NULL

A törlés esetén ON DELETE NO ACTION vagy ON DELETE RESTRICT kellene.

Majd a félév inicializálása után kiteszteljük, és akkor kerül sor a módosításra.

Jó lenne a Sequelize-t is átállítani, hogy ne így generálja az adatbázist:

https://github.com/sequelize/sequelize/blob/master/docs/associations.md#foreign-keys-1

@jmarton
Copy link
Member Author

jmarton commented Feb 11, 2018

Sokkal rosszabb: van On DELETE CASCADE is, például a UserExerciseTypes_ExerciseTypeId_fkey esetében.

FK-k listázása: https://gist.github.com/velosipedist/7250141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant