13 lines
449 B
TypeScript
13 lines
449 B
TypeScript
import type { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class instanceThemeColor1603776877564 implements MigrationInterface {
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "instance" ADD "themeColor" character varying(64) DEFAULT null`,
|
|
);
|
|
}
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "themeColor"`);
|
|
}
|
|
}
|