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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_META_DATASPELLDICT' AND KSQL_INDNAME = 'IDX_META_DATASPELLDICT_FULL') CREATE INDEX IDX_META_DATASPELLDICT_FULL ON T_META_DATASPELLDICT ( FFULLSPELL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_META_DATASPELLDICT' AND KSQL_INDNAME = 'IDX_META_DATASPELLDICT_FIRST') CREATE INDEX IDX_META_DATASPELLDICT_FIRST ON T_META_DATASPELLDICT ( FFIRSTSPELL );



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