/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_QYSDS_ZB' AND KSQL_COL_NAME IN ('FADVANCEPAYMODE')) 
 ALTER TABLE T_TCCIT_QYSDS_ZB ADD (FADVANCEPAYMODE VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_QYSDS_ZB' AND KSQL_COL_NAME IN ('FBUSINESSTYPE')) 
 ALTER TABLE T_TCCIT_QYSDS_ZB ADD (FBUSINESSTYPE VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_QYSDS_JMSDSYH' AND KSQL_COL_NAME IN ('FQTCHILD')) 
 ALTER TABLE T_TCCIT_QYSDS_JMSDSYH ADD (FQTCHILD DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_QYSDS_JMSDSYH' AND KSQL_COL_NAME IN ('FCSWRFZDDSFQY')) 
 ALTER TABLE T_TCCIT_QYSDS_JMSDSYH ADD (FCSWRFZDDSFQY DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_QYSDS_MSYHMX' AND KSQL_COL_NAME IN ('FQTJJSRCHILD')) 
 ALTER TABLE T_TCCIT_QYSDS_MSYHMX ADD (FQTJJSRCHILD DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_QYSDS_MSYHMX' AND KSQL_COL_NAME IN ('FCSNCYSAQGC')) 
 ALTER TABLE T_TCCIT_QYSDS_MSYHMX ADD (FCSNCYSAQGC DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_QYSDS_MSYHMX' AND KSQL_COL_NAME IN ('FQDDSQJTFWSR')) 
 ALTER TABLE T_TCCIT_QYSDS_MSYHMX ADD (FQDDSQJTFWSR DECIMAL(23,10) DEFAULT 0 NOT NULL );

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