/**Begin D:\PDM_UPGRADE\PDM1\HBSS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_SCORESYSTEM' AND KSQL_COL_NAME ='FCREATEORGID')
 ALTER TABLE T_HBSS_SCORESYSTEM ADD (FCREATEORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_PERFLEVEL' AND KSQL_COL_NAME ='FCREATEORGID')
 ALTER TABLE T_HBSS_PERFLEVEL ADD (FCREATEORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_RULEGRADE' AND KSQL_COL_NAME ='FCREATEORGID')
 ALTER TABLE T_HBSS_RULEGRADE ADD (FCREATEORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_RULEGRADE_L' AND KSQL_COL_NAME ='FAPPLYGROUP')
 ALTER TABLE T_HBSS_RULEGRADE_L ADD (FAPPLYGROUP VARCHAR(50) DEFAULT ' ' NOT NULL );

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