/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_META_TABLEDICTION', 'T_META_TABLEDICTION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_META_TABLEDICT_FTBNAME') CREATE INDEX IDX_META_TABLEDICT_FTBNAME ON T_META_TABLEDICTION ( FTABLENAME );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_META_TABLEDICT_FENTITY') CREATE INDEX IDX_META_TABLEDICT_FENTITY ON T_META_TABLEDICTION ( FMAINENTITYID );



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