 EXEC p_AlterPK 'PK_T_BD_ATTACH_VERSION', 'T_BD_ATTACH_VERSION', 'fid', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BD_ATTACH_VERSION' AND KSQL_INDNAME = 'IDX_ATTACH_VERSION_ATTACHID')
 CREATE UNIQUE INDEX IDX_ATTACH_VERSION_ATTACHID ON T_BD_ATTACH_VERSION (FATTACHID );


