Skip to content

ensureOperationsLogSchema

ensureOperationsLogSchema<TRegistry>(db, config): Promise<boolean>

Defined in: packages/server/src/operations-log/ddl.ts:29

Ensures the operations_log table exists in the database.

Returns true if the table is present, false if missing. Consumers should include operationsLogTable from @pgxsinkit/server in their Drizzle schema so drizzle-kit generate/push creates it.

TRegistry extends SyncTableRegistry

PgAsyncDatabase<PgQueryResultHKT, ExtractTablesWithRelations<{ }, RegistryTables<TRegistry>>>

OperationsLogConfig

Promise<boolean>