/**Begin 创建发票云打印影像模板 **/



IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_er_print_tpl_entry' AND KSQL_COL_NAME ='fconditionname')
ALTER TABLE t_er_print_tpl_entry ADD (fconditionname NVARCHAR(50) DEFAULT ' ' NOT NULL);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_er_print_tpl_entry' AND KSQL_COL_NAME ='fcondition')
ALTER TABLE t_er_print_tpl_entry ADD (fcondition NVARCHAR(50) DEFAULT ' ' NOT NULL);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_er_print_tpl_entry' AND KSQL_COL_NAME ='fcondition_tag')
ALTER TABLE t_er_print_tpl_entry ADD (fcondition_tag NCLOB);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_er_print_tpl_entry' AND KSQL_COL_NAME ='fconditionjs')
ALTER TABLE t_er_print_tpl_entry ADD (fconditionjs NCLOB);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_er_print_tpl_entry' AND KSQL_COL_NAME ='fconditionjs_tag')
ALTER TABLE t_er_print_tpl_entry ADD (fconditionjs_tag NCLOB);