/**Begin C:\PDM_UPGRADE\PDM1\PBD_constraint.sql **/
 EXEC P_ALTERPK 'PK_PBD_SMONI_BASICENTITY', 'T_PBD_SMONI_BASICENTITY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PBD_SMONI_BASIC_FID_FSEQ') CREATE INDEX IDX_PBD_SMONI_BASIC_FID_FSEQ ON T_PBD_SMONI_BASICENTITY ( FID ,FSEQ );


 EXEC P_ALTERPK 'PK_PBD_MONITOR_GROUP_L', 'T_PBD_MONITOR_GROUP_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PBD_MONITOR_GROUP_L_FID') CREATE INDEX IDX_PBD_MONITOR_GROUP_L_FID ON T_PBD_MONITOR_GROUP_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_PBD_MONITOR_GROUPENTRY', 'T_PBD_MONITOR_GROUPENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PBD_MGROUP_ENTRY_FID_FSEQ') CREATE INDEX IDX_PBD_MGROUP_ENTRY_FID_FSEQ ON T_PBD_MONITOR_GROUPENTRY ( FID ,FSEQ );


 EXEC P_ALTERPK 'PK_PBD_MONITOR_GROUP', 'T_PBD_MONITOR_GROUP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PBD_MONITORGROUP_FBILLNO') CREATE INDEX IDX_PBD_MONITORGROUP_FBILLNO ON T_PBD_MONITOR_GROUP ( FNUMBER );



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