/**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_BAS_ASSISTANTDATAENTRY_L' AND KSQL_COL_NAME ='FFULLNAME') 
 ALTER TABLE T_BAS_ASSISTANTDATAENTRY_L ADD (FFULLNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );


IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_ASSISTANTDATAENTRY' AND KSQL_COL_NAME ='FLEVEL') 
 ALTER TABLE T_BAS_ASSISTANTDATAENTRY ADD (FLEVEL INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_ASSISTANTDATAENTRY' AND KSQL_COL_NAME ='FLONGNUMBER') 
 ALTER TABLE T_BAS_ASSISTANTDATAENTRY ADD (FLONGNUMBER NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_ASSISTANTDATAENTRY' AND KSQL_COL_NAME ='FISLEAF') 
 ALTER TABLE T_BAS_ASSISTANTDATAENTRY ADD (FISLEAF CHAR(1) DEFAULT '1' NOT NULL );

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