/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FA_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FA_STOREKEEPER_AC', 'T_FA_STOREKEEPER_AC', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FA_STOREKEEPER_AC' AND KSQL_INDNAME = 'IDX_FA_STOREKEEPERACFENTRYID') CREATE INDEX IDX_FA_STOREKEEPERACFENTRYID ON T_FA_STOREKEEPER_AC ( FENTRYID );


 EXEC P_ALTERPK 'PK_T_FA_STOREKEEPER_SPG', 'T_FA_STOREKEEPER_SPG', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FA_STOREKEEPER_SPG' AND KSQL_INDNAME = 'IDX_FA_STOREKEEPERSPGFENTRYID') CREATE INDEX IDX_FA_STOREKEEPERSPGFENTRYID ON T_FA_STOREKEEPER_SPG ( FENTRYID );


 EXEC P_ALTERPK 'PK_T_FA_STOREKEEPERENTRY', 'T_FA_STOREKEEPERENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FA_STOREKEEPERENTRY' AND KSQL_INDNAME = 'IDX_FA_STOREKEEPERENTRYFID') CREATE INDEX IDX_FA_STOREKEEPERENTRYFID ON T_FA_STOREKEEPERENTRY ( FID );



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