/**Begin D:\PDM_UPGRADE\PDM1\FCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FCS_COUNTMODEL', 'T_FCS_COUNTMODEL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FCS_COUNTMODEL') CREATE INDEX IDX_FCS_COUNTMODEL ON T_FCS_COUNTMODEL ( FNUMBER ,FENABLE );


 EXEC P_ALTERPK 'PK_T_FCS_COUNTMODEL_L', 'T_FCS_COUNTMODEL_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FCS_COUNTMODEL_BIZ', 'T_FCS_COUNTMODEL_BIZ', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_FCS_COUNTMODEL_BIZ') CREATE INDEX IDX_T_FCS_COUNTMODEL_BIZ ON T_FCS_COUNTMODEL_BIZ ( FID ,FBIZBILLID ,FACCOUNTBANKPROP );


 EXEC P_ALTERPK 'PK_T_FCS_COUNTMODEL_ENTRY', 'T_FCS_COUNTMODEL_ENTRY', 'FENTRYID', '1';

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



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