Skip to content

postgrelize / AlterSequenceOptions

Type Alias: AlterSequenceOptions ​

AlterSequenceOptions = Omit<CreateSequenceOptions, "dataType" | "start" | "ifNotExists"> & Readonly<{ ifExists?: boolean; restartWith?: SequenceNumber | true; }>

Defined in: src/ddl/sequence-ddl.ts:63

postgrelize extension

Options of alterSequence. PostgreSQL extension.

Example ​

ts
const options: AlterSequenceOptions = { restartWith: 1, cycle: true };
await queryInterface.alterSequence('invoice_number', options);

Released under the MIT License.