Add Icon to roles (#10842)
## Context Adding icon column to role table to distinguish roles. <img width="621" alt="Screenshot 2025-03-13 at 11 02 37" src="https://github.com/user-attachments/assets/dc7b121c-2901-4599-9638-d5dcdf443999" />
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class AddIconToRole1741859116265 implements MigrationInterface {
|
||||
name = 'AddIconToRole1741859116265';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "metadata"."role" ADD "icon" character varying`,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "metadata"."role" DROP COLUMN "icon"`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user