blob: 043a1ddc27bd8ca0b44d11b96f7575f9ece3ae50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { MigrationInterface, QueryRunner } from "typeorm";
export class TeamMemberRole1724477620293 implements MigrationInterface {
name = "TeamMemberRole1724477620293";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query("ALTER TABLE team_members ADD COLUMN role text NOT NULL");
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query("ALTER TABLE team_members DROP COLUMN role");
}
}
|