/**Begin D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_STATIC_QRCODE_ENTRY', 'T_BDM_STATIC_QRCODE_ENTRY', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_STATIC_QRCODE_ENTRY_FK') CREATE  CLUSTERED INDEX IDX_BDM_STATIC_QRCODE_ENTRY_FK ON T_BDM_STATIC_QRCODE_ENTRY ( FID );


 EXEC P_ALTERPK 'PK_BDM_STATIC_QRCODE_SET', 'T_BDM_STATIC_QRCODE_SET', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_STATIC_QRCODE_SET') CREATE  CLUSTERED INDEX IDX_BDM_STATIC_QRCODE_SET ON T_BDM_STATIC_QRCODE_SET ( FORG ,FTAXNO );


 EXEC P_ALTERPK 'PK_BDM_STATIC_QRCODE_SET_L', 'T_BDM_STATIC_QRCODE_SET_L', 'FPKID', '0';

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



/**End D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
