/** HR成本承担单位、所属管理范围增加字段 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_COSTCENTER' AND KSQL_COL_NAME ='FPARENTID')
 ALTER TABLE T_HBSS_COSTCENTER ADD (FPARENTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_MANAGINGSCOPE' AND KSQL_COL_NAME ='FCREATEORGID')
 ALTER TABLE T_HBSS_MANAGINGSCOPE ADD (FCREATEORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_MANAGINGSCOPE' AND KSQL_COL_NAME ='FORGID')
 ALTER TABLE T_HBSS_MANAGINGSCOPE ADD (FORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_MANAGINGSCOPE' AND KSQL_COL_NAME ='FUSEORGID')
 ALTER TABLE T_HBSS_MANAGINGSCOPE ADD (FUSEORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_MANAGINGSCOPE' AND KSQL_COL_NAME ='FCTRLSTRATEGY')
 ALTER TABLE T_HBSS_MANAGINGSCOPE ADD (FCTRLSTRATEGY VARCHAR(10) DEFAULT ' ' NOT NULL );

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