Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

801 B
Raw Blame
import { MigrationInterface, QueryRunner } from 'typeorm'
import { system } from '../../../helper/system/system'

const log = system.globalLogger()

export class AddDeletedToProjectPostgres1710243591721 implements MigrationInterface {
    name = 'AddDeletedToProjectPostgres1710243591721'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            ALTER TABLE "project"
            ADD "deleted" TIMESTAMP WITH TIME ZONE
        `)

        log.info('[addDeletedToProjectPostgres1710243591721#up]')
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            ALTER TABLE "project" DROP COLUMN "deleted"
        `)

        log.info('[addDeletedToProjectPostgres1710243591721#down]')
    }

}