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

 EXEC P_ALTERPK 'PK_BAS_BILLTYPEFLDCTL_MOB', 'T_BAS_BILLTYPEFLDCTL_MOB', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_BILLTYPEFLDCTL_MOB' AND KSQL_INDNAME = 'IDX_BAS_BILLTYPEFLDCTL_MOB') CREATE INDEX IDX_BAS_BILLTYPEFLDCTL_MOB ON T_BAS_BILLTYPEFLDCTL_MOB ( FID );


 EXEC P_ALTERPK 'PK_BAS_BILLTYPEFLDCTL_MOB_L', 'T_BAS_BILLTYPEFLDCTL_MOB_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_BILLTYPEFLDCTL_MOB_L' AND KSQL_INDNAME = 'IDX_BAS_BILLTYPEFLDCTL_MOB_L') CREATE UNIQUE INDEX IDX_BAS_BILLTYPEFLDCTL_MOB_L ON T_BAS_BILLTYPEFLDCTL_MOB_L ( FENTRYID ,FLOCALEID );


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