/**Begin D:\PDM_UPGRADE\PDM1\TSRBD_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TSRBD_MTDOBJTABLE' AND KSQL_COL_NAME ='FRECRUTYPID')
 ALTER TABLE T_TSRBD_MTDOBJTABLE ADD (FRECRUTYPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TSRBD_MTDOBJTABLE' AND KSQL_COL_NAME ='FECOSYSTEM')
 ALTER TABLE T_TSRBD_MTDOBJTABLE ADD (FECOSYSTEM VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TSRBD_MTDOBJTABLE' AND KSQL_COL_NAME ='FISMAINENTITY')
 ALTER TABLE T_TSRBD_MTDOBJTABLE ADD (FISMAINENTITY CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TSRBD_MTDOBJTABLE' AND KSQL_COL_NAME ='FEMBEDDEDKEY')
 ALTER TABLE T_TSRBD_MTDOBJTABLE ADD (FEMBEDDEDKEY VARCHAR(50) DEFAULT ' ' NOT NULL );

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