/**Begin D:\PDM_UPGRADE\PDM1\TBO_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FTRADETYPEID'))
ALTER TABLE T_TBO_PLINFO ADD (FTRADETYPEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FFORREFEREXRATE'))
ALTER TABLE T_TBO_PLINFO ADD (FFORREFEREXRATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FFORFLOATPLAMT'))
ALTER TABLE T_TBO_PLINFO ADD (FFORFLOATPLAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FFORFLOATPLLOCALAMT'))
ALTER TABLE T_TBO_PLINFO ADD (FFORFLOATPLLOCALAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FISSUEDATE'))
ALTER TABLE T_TBO_PLINFO ADD (FISSUEDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FISSUEDATELOCAL'))
ALTER TABLE T_TBO_PLINFO ADD (FISSUEDATELOCAL DATETIME );

/**End D:\PDM_UPGRADE\PDM1\TBO_table.sql **/
