/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISNONBREAK') 
 ALTER TABLE T_CR_CODERULE ADD (FISNONBREAK CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISCHECKCODE') 
 ALTER TABLE T_CR_CODERULE ADD (FISCHECKCODE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISAPPCONDITION') 
 ALTER TABLE T_CR_CODERULE ADD (FISAPPCONDITION CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISAPPORG') 
 ALTER TABLE T_CR_CODERULE ADD (FISAPPORG CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISLOG') 
 ALTER TABLE T_CR_CODERULE ADD (FISLOG CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISSERIALNUMBER') 
 ALTER TABLE T_CR_CODERULE ADD (FISSERIALNUMBER CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISUNIQUE') 
 ALTER TABLE T_CR_CODERULE ADD (FISUNIQUE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISMODIFIABLE') 
 ALTER TABLE T_CR_CODERULE ADD (FISMODIFIABLE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CR_CODERULE' AND KSQL_COL_NAME ='FISADDVIEW') 
 ALTER TABLE T_CR_CODERULE ADD (FISADDVIEW CHAR(1) DEFAULT '0' NOT NULL );

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