/**Begin D:\PDM_UPGRADE\PDM1\TSRBD_constraint.sql **/
EXEC P_ALTERPK 'PK_TSRBD_BUSINESSDICTTYPE', 'T_TSRBD_BUSINESSDICTTYPE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BUSINESSDICTTYPE') CREATE INDEX IDX_BUSINESSDICTTYPE ON T_TSRBD_BUSINESSDICTTYPE ( FDICTTYPE );


EXEC P_ALTERPK 'PK_TSRBD_BUSINESSDICT_L', 'T_TSRBD_BUSINESSDICT_L', 'FPKID', '1';

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


EXEC P_ALTERPK 'PK_TSRBD_BUSINESSDICT', 'T_TSRBD_BUSINESSDICT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TSRBD_BUSINESSDICT_GROUPID') CREATE INDEX IDX_TSRBD_BUSINESSDICT_GROUPID ON T_TSRBD_BUSINESSDICT ( FGROUPID );



/**End D:\PDM_UPGRADE\PDM1\TSRBD_constraint.sql **/
