@fastmcp-me/mcp-sqlew
Version:
MCP server for efficient context sharing between Claude Code sub-agents with 96% token reduction via action-based tools
29 lines • 727 B
TypeScript
/**
* Migration: Add table prefixes (v1.0.1 -> v1.1.0)
*
* Migrates database from unprefixed table names to prefixed names:
* - Master tables: m_ prefix
* - Transaction tables: t_ prefix
* - Views: v_ prefix
* - Triggers: trg_ prefix
*/
import { Database } from 'better-sqlite3';
interface MigrationResult {
success: boolean;
message: string;
details?: string[];
}
/**
* Check if migration is needed
*/
export declare function needsMigration(db: Database): boolean;
/**
* Run the migration
*/
export declare function runMigration(db: Database): MigrationResult;
/**
* Get migration info
*/
export declare function getMigrationInfo(): string;
export {};
//# sourceMappingURL=add-table-prefixes.d.ts.map