feat(api): set person color (#15937)

This commit is contained in:
Jason Rasmussen 2025-02-07 10:06:58 -05:00 committed by GitHub
parent 2e5007adef
commit 23014c263b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 182 additions and 21 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class AddPersonColor1738889177573 implements MigrationInterface {
name = 'AddPersonColor1738889177573'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "person" ADD "color" character varying`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "person" DROP COLUMN "color"`);
}
}