/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BAS_HOTTIPS_SYNCINFO', 'T_BAS_HOTTIPS_SYNCINFO', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_HOTTIPS_SYNCINFO' AND KSQL_INDNAME = 'IDX_BAS_HOTTIPS_S_FSYNCTIME') CREATE INDEX IDX_BAS_HOTTIPS_S_FSYNCTIME ON T_BAS_HOTTIPS_SYNCINFO ( FSYNCTIME );


 EXEC P_ALTERPK 'PK_T_BAS_HOTTIPS', 'T_BAS_HOTTIPS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_HOTTIPS' AND KSQL_INDNAME = 'IDX_BAS_HOTTIPS_FORMID') CREATE UNIQUE INDEX IDX_BAS_HOTTIPS_FORMID ON T_BAS_HOTTIPS ( FFORMID ,FKEY ,FFORMTYPE );



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