Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
/ models Public archive

Commit 2c8397b

Browse files
committed
fix: mark repositorySlug as a join column
1 parent d9a52cc commit 2c8397b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/models/package.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Repository } from './repository'
2-
import { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'
2+
import { Column, Entity, Index, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'
33

44
@Entity()
55
export class Package {
@@ -17,6 +17,7 @@ export class Package {
1717
isCurrent: boolean
1818

1919
@ManyToOne(() => Repository, repo => repo.slug, { nullable: false })
20+
@JoinColumn({ name: 'repositorySlug' })
2021
// @ts-ignore
2122
repository: Repository
2223

0 commit comments

Comments
 (0)