/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PDM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MANUVERSION' AND KSQL_COL_NAME ='FWORKCENTER') 
 ALTER TABLE T_PDM_MANUVERSION ADD (FWORKCENTER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MANUVERSION' AND KSQL_COL_NAME ='FISREPEAT') 
 ALTER TABLE T_PDM_MANUVERSION ADD (FISREPEAT CHAR(1) DEFAULT ' ' NOT NULL );

 --- drop TABLE --------- 不允许删除表T_PDM_ECNREASON，请恢复pdm ------------------- 

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