mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 07:20:00 +00:00
19 lines
560 B
TypeScript
19 lines
560 B
TypeScript
![]() |
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");
|
||
|
}
|
||
|
}
|