mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Add support for API permission expiry
This commit is contained in:
parent
2b8f75b91b
commit
947a49761e
5 changed files with 42 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
|
||||
|
||||
export class AddExpiresAtToApiPermissions1630837386329 implements MigrationInterface {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.addColumns("api_permissions", [
|
||||
new TableColumn({
|
||||
name: "expires_at",
|
||||
type: "boolean",
|
||||
isNullable: true,
|
||||
default: null,
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.dropColumn("api_permissions", "expires_at");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue