Skip to content

Function: rbacExpiryMigration() ​

ts
function rbacExpiryMigration(options?): RbacMigration;

Defined in: packages/kysely/src/schema.ts:211

A Kysely migration that adds (up) and removes (down) the expires_at columns. Add it after rbacMigration() to upgrade a 1.1 database for kyselyAdapter(db, { expiry: true }).

ts
provider: { getMigrations: async () => ({ '0001_rbac': rbacMigration(), '0002_rbac_expiry': rbacExpiryMigration() }) }

Parameters ​

ParameterType
options?RbacMigrationOptions

Returns ​

RbacMigration

Released under the MIT License. Inspired by spatie/laravel-permission.