Skip to content

Interface: RbacMigration ​

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

A Kysely migration, as returned by rbacMigration and rbacExpiryMigration. It has the same shape as Kysely's own Migration type, which is exported by kysely on 0.28 and by kysely/migration on 0.29, so it can be passed to the Migrator of either version. down is optional only to match that type: the helpers always set it.

Methods ​

down()? ​

ts
down?(db): Promise<void>;

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

Parameters ​

ParameterType
dbKysely<any>

Returns ​

Promise<void>


up() ​

ts
up(db): Promise<void>;

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

Parameters ​

ParameterType
dbKysely<any>

Returns ​

Promise<void>

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