EXEC P_ALTERPK 'PK_FA_DISPOSAL', 'T_FA_DISPOSAL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_DISPOSAL_FBILLNO') CREATE INDEX IDX_FA_DISPOSAL_FBILLNO ON T_FA_DISPOSAL ( FBILLNO );


 EXEC P_ALTERPK 'PK_FA_DISPOSAL_DETAIL', 'T_FA_DISPOSAL_DETAIL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_FA_DISPOSAL_INVOICE', 'T_FA_DISPOSAL_INVOICE', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FA_DISPOSAL_LK', 'T_FA_DISPOSAL_LK', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FA_DISPOSAL_TC', 'T_FA_DISPOSAL_TC', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_DISPOSAL_TC_FTBILLID') CREATE INDEX IDX_FA_DISPOSAL_TC_FTBILLID ON T_FA_DISPOSAL_TC ( FTBILLID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_DISPOSAL_TC_FSBILLID') CREATE INDEX IDX_FA_DISPOSAL_TC_FSBILLID ON T_FA_DISPOSAL_TC ( FSBILLID );


 EXEC P_ALTERPK 'PK_T_FA_DISPOSAL_WB', 'T_FA_DISPOSAL_WB', 'FENTRYID', '1';

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