/**Begin D:\PDM_UPGRADE\PDM1\CAS_constraint.sql **/
 EXEC P_ALTERPK 'PK_CAS_REC_INIT', 'T_CAS_REC_INIT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_REC_INIT_ORG') CREATE INDEX IDX_CAS_REC_INIT_ORG ON T_CAS_REC_INIT ( FORGID );


 EXEC P_ALTERPK 'PK_CAS_REC_INITCASH', 'T_CAS_REC_INITCASH', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_CAS_REC_INITBANK', 'T_CAS_REC_INITBANK', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_CAS_REC_EDC', 'T_CAS_REC_EDC', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_REC_EDC_ORG') CREATE INDEX IDX_CAS_REC_EDC_ORG ON T_CAS_REC_EDC ( FORGID );


 EXEC P_ALTERPK 'PK_CAS_REC_STOPEDCLOG', 'T_CAS_REC_STOPEDCLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_REC_SEL_ORG') CREATE INDEX IDX_CAS_REC_SEL_ORG ON T_CAS_REC_STOPEDCLOG ( FORGID );



/**End D:\PDM_UPGRADE\PDM1\CAS_constraint.sql **/
