15 lines
556 B
TypeScript
15 lines
556 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class Taskmanager31783244669371 implements MigrationInterface {
|
|
name = 'Taskmanager31783244669371'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "tm_workspaces" ADD CONSTRAINT "UQ_6496168de3e6c5f006d494ebac5" UNIQUE ("name")`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "tm_workspaces" DROP CONSTRAINT "UQ_6496168de3e6c5f006d494ebac5"`);
|
|
}
|
|
|
|
}
|