/**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_YJ_ASSETS_ACCDET' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_YJ_ASSETS_ACCDET ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_ITEM_ENTRY' AND KSQL_COL_NAME ='FEXRATEJSON') 
 ALTER TABLE T_TCCIT_ITEM_ENTRY ADD (FEXRATEJSON VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_DEPRECIATE_ACCOUN' AND KSQL_COL_NAME ='FEXRATEJSON') 
 ALTER TABLE T_TCCIT_DEPRECIATE_ACCOUN ADD (FEXRATEJSON VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_DEPRECIATE_NORMAL' AND KSQL_COL_NAME ='FEXRATEJSON') 
 ALTER TABLE T_TCCIT_DEPRECIATE_NORMAL ADD (FEXRATEJSON VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_DEPRECIATE_QUICK' AND KSQL_COL_NAME ='FEXRATEJSON') 
 ALTER TABLE T_TCCIT_DEPRECIATE_QUICK ADD (FEXRATEJSON VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_DEPRECIATE_ORIGIN' AND KSQL_COL_NAME ='FEXRATEJSON') 
 ALTER TABLE T_TCCIT_DEPRECIATE_ORIGIN ADD (FEXRATEJSON VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_PROFITS_ENTRY' AND KSQL_COL_NAME ='FEXRATEJSON') 
 ALTER TABLE T_TCCIT_PROFITS_ENTRY ADD (FEXRATEJSON VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_OTHER_RULE_ENTRY' AND KSQL_COL_NAME ='FEXRATEJSON') 
 ALTER TABLE T_TCCIT_OTHER_RULE_ENTRY ADD (FEXRATEJSON VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_YJ_PROFITS_ACCDET' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_YJ_PROFITS_ACCDET ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_DEPRECIATION_DET' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_DEPRECIATION_DET ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_FDCTDYW_ACCDETAIL' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_FDCTDYW_ACCDETAIL ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_INCRED_ACCDETAIL' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_INCRED_ACCDETAIL ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_NONTAX_ACCDETAIL' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_NONTAX_ACCDETAIL ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_TREDUCE_ACCDETAIL' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_TREDUCE_ACCDETAIL ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCCIT_TECHTRANS_ACCDET' AND KSQL_COL_NAME ='FEXRATE') 
 ALTER TABLE T_TCCIT_TECHTRANS_ACCDET ADD (FEXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );

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