/**Begin C:\PDM_UPGRADE\PDM1\SRC_constraint.sql **/
 EXEC P_ALTERPK 'PK_SRC_PROJECT_V', 'T_SRC_PROJECT_V', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRC_PROJECT_V_TID') CREATE INDEX IDX_SRC_PROJECT_V_TID ON T_SRC_PROJECT_V ( FTEMPLATEID );


 EXEC P_ALTERPK 'PK_SRC_APTITUDECONFIG2', 'T_SRC_APTITUDECONFIG2', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_APTITUDERESULT2', 'T_SRC_APTITUDERESULT2', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_SRC_PROJECT_W', 'T_SRC_PROJECT_W', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRC_PROJECT_W_TID') CREATE INDEX IDX_SRC_PROJECT_W_TID ON T_SRC_PROJECT_W ( FTEMPLATEID );


 EXEC P_ALTERPK 'PK_SRC_SCORESUGGESTION', 'T_SRC_SCORESUGGESTION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRC_SCORESUGGESTION_SID') CREATE INDEX IDX_SRC_SCORESUGGESTION_SID ON T_SRC_SCORESUGGESTION ( FSCORETASKID );


 EXEC P_ALTERPK 'PK_SRC_SCHEMERULE', 'T_SRC_SCHEMERULE', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_SRC_SCHEMERULE_EID') CREATE INDEX T_SRC_SCHEMERULE_EID ON T_SRC_SCHEMERULE ( FENTRYID );



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