mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 23:55:02 +00:00
11 lines
436 B
TypeScript
11 lines
436 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class RenameApiUsersToApiPermissions1561283165823 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`ALTER TABLE api_users RENAME api_permissions`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`ALTER TABLE api_permissions RENAME api_users`);
|
|
}
|
|
}
|