Newer
Older
percord / src / util / migration / postgres / 1760694225225-message_interaction_metadata.ts
@CyberL1 CyberL1 on 17 Oct 501 bytes feat: interactions (incomplete)
import { MigrationInterface, QueryRunner } from "typeorm";

export class MessageInteractionMetadata1760694225225 implements MigrationInterface {
	name = "MessageInteractionMetadata1760694225225";

	public async up(queryRunner: QueryRunner): Promise<void> {
		await queryRunner.query(`ALTER TABLE "messages" ADD "interaction_metadata" text`);
	}

	public async down(queryRunner: QueryRunner): Promise<void> {
		await queryRunner.query(`ALTER TABLE "messages" DROP COLUMN "interaction_metadata"`);
	}
}