/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_IDNUMBER' AND KSQL_COL_NAME ='FENABLE') 
 ALTER TABLE T_INT_IDNUMBER ADD (FENABLE CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_IDNUMBER' AND KSQL_COL_NAME ='FSTATUS') 
ALTER TABLE T_INT_IDNUMBER ADD (FSTATUS CHAR(1) DEFAULT 'A' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_INT_IDNUMBER' AND KSQL_COL_NAME ='FMASTERID') 
ALTER TABLE T_INT_IDNUMBER ADD (FMASTERID BIGINT DEFAULT 0 NOT NULL );


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