/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SIM_INVOICE_SETTING' AND KSQL_COL_NAME ='FPRIORITY') 
 ALTER TABLE T_SIM_INVOICE_SETTING ADD (FPRIORITY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SIM_INVOICE_SETTING' AND KSQL_COL_NAME ='FSHOPREFERRED') 
 ALTER TABLE T_SIM_INVOICE_SETTING ADD (FSHOPREFERRED VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SIM_INVOICE_SETTING' AND KSQL_COL_NAME ='FSHOPNO') 
 ALTER TABLE T_SIM_INVOICE_SETTING ADD (FSHOPNO VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SIM_INVOICE_SETTING' AND KSQL_COL_NAME ='FFILTER') 
 ALTER TABLE T_SIM_INVOICE_SETTING ADD (FFILTER VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SIM_INVOICE_SETTING' AND KSQL_COL_NAME ='FFILTER_TAG') 
 ALTER TABLE T_SIM_INVOICE_SETTING ADD (FFILTER_TAG NCLOB );

/**End D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_table.sql **/
