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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { QueryRunner } from 'typeorm'
import { Migration } from '../../migration'
export class DropBadges1804000000000 implements Migration {
name = 'DropBadges1804000000000'
breaking = true
release = '0.85.7'
transaction = true
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "user_badge" DROP CONSTRAINT "FK_dc6bb11dce7a0a591b5cae0af25"
`)
await queryRunner.query(`
DROP INDEX "idx_user_badge_user_id"
`)
await queryRunner.query(`
DROP TABLE "user_badge"
`)
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
CREATE TABLE "user_badge" (
"id" character varying(21) NOT NULL,
"created" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
"updated" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
"name" character varying NOT NULL,
"userId" character varying(21) NOT NULL,
CONSTRAINT "idx_user_badge_user_id_name" UNIQUE ("userId", "name"),
CONSTRAINT "PK_c5db2542e028558c5306c9d7f42" PRIMARY KEY ("id")
)
`)
await queryRunner.query(`
CREATE INDEX "idx_user_badge_user_id" ON "user_badge" ("userId")
`)
await queryRunner.query(`
ALTER TABLE "user_badge"
ADD CONSTRAINT "FK_dc6bb11dce7a0a591b5cae0af25" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION
`)
}
}