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

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


 EXEC P_ALTERPK 'PK_PBD_EXTENSION', 'T_PBD_EXTENSION', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_PBD_EXTENSION_L', 'T_PBD_EXTENSION_L', 'FPKID', '1';

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



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