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
The names of foreign keys created by queryRunner.createForeignKey and schema:sync are different with SQLite #9176
Labels
Comments
fossamagna
added a commit
to fossamagna/typeorm
that referenced
this issue
Jul 6, 2022
…eck constraint with SQLite In migration steps, finally temporary table name is renamed to original table name. these constraints name should be created from original table name not temporary table name. Closes: typeorm#9176
7 tasks
fossamagna
added a commit
to fossamagna/typeorm
that referenced
this issue
Jul 6, 2022
…eck constraint with SQLite In migration steps, finally temporary table name is renamed to original table name. these constraints name should be created from original table name not temporary table name. Closes: typeorm#9176
AlexMesser
pushed a commit
that referenced
this issue
Aug 24, 2022
…eck constraint with SQLite (#9185) * fix: don't use temporary table name to create foreign key, unique, check constraint with SQLite In migration steps, finally temporary table name is renamed to original table name. these constraints name should be created from original table name not temporary table name. Closes: #9176 * style: remove unnecessary comment
wirekang
pushed a commit
to wirekang/typeorm
that referenced
this issue
Aug 25, 2022
…eck constraint with SQLite (typeorm#9185) * fix: don't use temporary table name to create foreign key, unique, check constraint with SQLite In migration steps, finally temporary table name is renamed to original table name. these constraints name should be created from original table name not temporary table name. Closes: typeorm#9176 * style: remove unnecessary comment
nordinh
pushed a commit
to nordinh/typeorm
that referenced
this issue
Aug 29, 2022
…eck constraint with SQLite (typeorm#9185) * fix: don't use temporary table name to create foreign key, unique, check constraint with SQLite In migration steps, finally temporary table name is renamed to original table name. these constraints name should be created from original table name not temporary table name. Closes: typeorm#9176 * style: remove unnecessary comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
In typeorm@0.3.7, there will be a difference in the name of the foreign key created by
queryRunner.createForeignKey
andtypeorm schema:sync
.Expected Behavior
In
typeorm@0.3.7
, the name of the foreign key created byqueryRunner.createForeignKey
andschema:sync
is the same.Actual Behavior
Outputs when run
npm migration:check
:Steps to Reproduce
I made a sample repository to reproduce this issue.
cd typeorm-foreign-key-naming-issue-sqlite3
npm i
commandnpm migration:run
commandnpm migration:check
commandMy Environment
Additional Context
In
typeorm@0.3.6
, I got expected behavior.Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: