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

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_CONTROLRULEMAIN' AND KSQL_COL_NAME IN ('FSHOWGROUP')) 
 ALTER TABLE T_EB_CONTROLRULEMAIN ADD (FSHOWGROUP NVARCHAR(100) );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_TASK' AND KSQL_COL_NAME IN ('FTASKSEQ')) 
 ALTER TABLE T_EB_TASK ADD (FTASKSEQ INT DEFAULT 0 NOT NULL );
 --- drop TABLE --------- 请认真检查该脚本 ------------------- 
--IF EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_EB_TASKRELY') 
 --DROP TABLE T_EB_TASKRELY;


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