/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\GL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_AI_ACCTMAPTABLEENTRY', 'T_AI_ACCTMAPTABLEENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AI_ACCTMAPTABLEENTRY') CREATE INDEX IDX_AI_ACCTMAPTABLEENTRY ON T_AI_ACCTMAPTABLEENTRY ( FID );


 EXEC P_ALTERPK 'PK_T_AI_ACCTMAPTYPE_ACCTTAB', 'T_AI_ACCTMAPTYPE_ACCTTAB', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AI_ACCTMAPTYPE_ACCTTAB') CREATE INDEX IDX_AI_ACCTMAPTYPE_ACCTTAB ON T_AI_ACCTMAPTYPE_ACCTTAB ( FID );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\GL_constraint.sql **/
