/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_table.sql **/
 /**EXEC p_AlterColumn 'T_TCTB_FORMULA', 'FCONTENT', 'VARCHAR(1000)', 'NOT NULL', '0100', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCTB_FORMULA' AND KSQL_COL_NAME ='FCELLTYPE') 
 ALTER TABLE T_TCTB_FORMULA ADD (FCELLTYPE VARCHAR(30) DEFAULT ' ' NOT NULL );**/
 EXEC p_AlterColumn 'T_TCTB_DECLARE_HIS', 'FTARGETVALUE', 'VARCHAR(2000)', 'NOT NULL', '0100', ''' ''';

 EXEC p_AlterColumn 'T_TCTB_DECLARE_HIS', 'FORIGINALVALUE', 'VARCHAR(2000)', 'NOT NULL', '0100', ''' ''';


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