/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_STANDBOOK_ENTRY', 'T_TCCIT_STANDBOOK_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_STANDBOOK_ITEMS', 'T_TCCIT_STANDBOOK_ITEMS', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_STANDBOOK_ITEMS_L', 'T_TCCIT_STANDBOOK_ITEMS_L', 'FPKID', '1';

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



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
