/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SEC_USER_U' AND KSQL_COL_NAME ='FLASTLOGINIP') 
 ALTER TABLE T_SEC_USER_U ADD (FLASTLOGINIP VARCHAR(128) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SEC_USER_U' AND KSQL_COL_NAME ='FLASTLOGINTIME') 
 ALTER TABLE T_SEC_USER_U ADD (FLASTLOGINTIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SEC_USER_H_U' AND KSQL_COL_NAME ='FLASTLOGINIP') 
 ALTER TABLE T_SEC_USER_H_U ADD (FLASTLOGINIP VARCHAR(128) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SEC_USER_H_U' AND KSQL_COL_NAME ='FLASTLOGINTIME') 
 ALTER TABLE T_SEC_USER_H_U ADD (FLASTLOGINTIME DATETIME );

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