Skip to content

Commit

Permalink
Make sequence options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Jun 27, 2024
1 parent d0d6436 commit 5cc2ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drizzle-orm/src/pg-core/sequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export class PgSequence {

export function pgSequence(
name: string,
options: PgSequenceOptions,
options?: PgSequenceOptions,
): PgSequence {
return pgSequenceWithSchema(name, options, undefined);
}

/** @internal */
export function pgSequenceWithSchema(
name: string,
options: PgSequenceOptions,
options?: PgSequenceOptions,
schema?: string,
): PgSequence {
return new PgSequence(name, options, schema);
Expand Down

0 comments on commit 5cc2ae0

Please sign in to comment.