-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [FIXED] Tables with composite primary keys are not quoted properly.
- Loading branch information
1 parent
182bd41
commit 6b80bea
Showing
25 changed files
with
112 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
examples/nest-graphql-typeorm/migrations/1572928650276-create-tables.ts
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
examples/nest-graphql-typeorm/migrations/1580281677570-add-sub-tasks.ts
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
examples/nest-graphql-typeorm/migrations/1580614646448-add-cascade-to-subtask.ts
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
examples/nest-graphql-typeorm/migrations/1582064970069-add-description.ts
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
examples/nest-graphql-typeorm/migrations/1582247882223-add-tags.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"include": [ | ||
"src", | ||
"migrations", | ||
"seeds.ts", | ||
"ormconfig.json" | ||
], | ||
"exclude": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/query-typeorm/__tests__/__fixtures__/test-entity-relation.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Entity, JoinColumn, PrimaryColumn, ManyToOne } from 'typeorm'; | ||
import { TestRelation } from './test-relation.entity'; | ||
import { TestEntity } from './test.entity'; | ||
|
||
@Entity() | ||
export class TestEntityRelationEntity { | ||
@PrimaryColumn({ name: 'test_relation_id' }) | ||
testRelationId!: string; | ||
|
||
@PrimaryColumn({ name: 'test_entity_id' }) | ||
testEntityId!: string; | ||
|
||
@ManyToOne(() => TestRelation, (tr) => tr.testEntityRelation) | ||
@JoinColumn({ name: 'test_relation_id' }) | ||
testRelation?: TestRelation; | ||
|
||
@ManyToOne(() => TestEntity, (te) => te.testEntityRelation) | ||
@JoinColumn({ name: 'test_entity_id' }) | ||
testEntity?: TestEntity; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.