This commit is contained in:
kononnable 2020-08-22 18:37:43 +02:00
parent 834d1f1d61
commit f46c0f8ca1
2 changed files with 4 additions and 2 deletions

View File

@ -116,7 +116,9 @@ export default class PostgresDriver extends AbstractDriver {
if (resp.isunique === "1") options.unique = true;
const generated =
resp.isidentity === "YES" || resp.is_identity === "YES" ? true : undefined;
resp.isidentity === "YES" || resp.is_identity === "YES"
? true
: undefined;
const defaultValue = generated
? undefined
: PostgresDriver.ReturnDefaultValueFunction(

View File

@ -26,5 +26,5 @@ export class PostReader {
post: Post;
@RelationId((postReader: PostReader) => postReader.post)
postId: number[];
postId: number;
}