/**Begin D:\PDM_UPGRADE\PDM1\HOM_constraint.sql **/
 EXEC P_ALTERPK 'PK_HOM_GUIDSCHEME', 'T_HOM_GUIDSCHEME', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HOM_GUIDSCHEME_L', 'T_HOM_GUIDSCHEME_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HOM_GUIDSCHEMEENTITY', 'T_HOM_GUIDSCHEMEENTITY', 'FENTRYID', '1';

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



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