/**Begin D:\work\kuaijishijian\pdm\PDM_UPGRADE_1.4\PDM_UPGRADE\PDM1\AI_constraint.sql **/
 EXEC P_ALTERPK 'PK_FAH_REGBILL_EN', 'T_FAH_REGBILL_EN', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FAH_REGBILL_EN' AND KSQL_INDNAME = 'IDX_FAH_REGBILL_EN') CREATE INDEX IDX_FAH_REGBILL_EN ON T_FAH_REGBILL_EN ( FID );


 EXEC P_ALTERPK 'PK_FAH_BILL_EVT_STATUS', 'T_FAH_BILL_EVT_STATUS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FAH_BILL_EVT_STATUS' AND KSQL_INDNAME = 'IDX_FAH_BILL_EVT_STATUS') CREATE UNIQUE INDEX IDX_FAH_BILL_EVT_STATUS ON T_FAH_BILL_EVT_STATUS ( FNUMBER );


 EXEC P_ALTERPK 'PK_FAH_BILL_EVT_STATUS_L', 'T_FAH_BILL_EVT_STATUS_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FAH_BILL_EVT_STATUS_L' AND KSQL_INDNAME = 'IDX_FAH_BILL_EVT_STATUS_L') CREATE INDEX IDX_FAH_BILL_EVT_STATUS_L ON T_FAH_BILL_EVT_STATUS_L ( FID ,FLOCALEID );



/**End D:\work\kuaijishijian\pdm\PDM_UPGRADE_1.4\PDM_UPGRADE\PDM1\AI_constraint.sql **/
