/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDM_Baselines\pdm2sql\pdm\MDL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BOTP_TABLEDEFINE', 'T_BOTP_TABLEDEFINE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BOTP_TABLEDEFINE_TABLEID') CREATE INDEX IDX_BOTP_TABLEDEFINE_TABLEID ON T_BOTP_TABLEDEFINE ( FTABLEID );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDM_Baselines\pdm2sql\pdm\MDL_constraint.sql **/
