/**Begin C:\PDM_UPGRADE\PDM1\SRC_constraint.sql **/
 EXEC P_ALTERPK 'PK_SRC_APTSCORERS', 'T_SRC_APTSCORERS', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_APTSCORERS2', 'T_SRC_APTSCORERS2', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_TECSCORERS', 'T_SRC_TECSCORERS', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_BIZSCORERS', 'T_SRC_BIZSCORERS', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_ALLSCORERS', 'T_SRC_ALLSCORERS', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_BIDASSESSLOG', 'T_SRC_BIDASSESSLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRC_BIDASSESSLOG_PID') CREATE INDEX IDX_SRC_BIDASSESSLOG_PID ON T_SRC_BIDASSESSLOG ( FPROJECTID );


 EXEC P_ALTERPK 'PK_SRC_BIDASSESSLOGENTRY', 'T_SRC_BIDASSESSLOGENTRY', 'FENTRYID', '1';

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



/**End C:\PDM_UPGRADE\PDM1\SRC_constraint.sql **/
