@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function getMcpTasksMigration

    • Generate the SQL DDL for the task store table.

      Constraint and index names are derived from the table name to avoid collisions when multiple stores share the same database.

      Parameters

      • Optionaloptions: { tableName?: string }

      Returns string

      import { getMcpTasksMigration } from '@adcp/sdk';
      await pool.query(getMcpTasksMigration()); // creates adcp_mcp_tasks
      await pool.query(getMcpTasksMigration({ tableName: 'my_tasks' })); // custom name