
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CTS_NAMECONFIG' AND KSQL_COL_NAME ='FMASTERID') 
ALTER TABLE T_CTS_NAMECONFIG ADD (FMASTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CTS_NAMETEXTCONFIG' AND KSQL_COL_NAME ='FMASTERID') 
ALTER TABLE T_CTS_NAMETEXTCONFIG ADD (FMASTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CTS_NAMEPREFIELD' AND KSQL_COL_NAME ='FMASTERID') 
ALTER TABLE T_CTS_NAMEPREFIELD ADD (FMASTERID BIGINT DEFAULT 0 NOT NULL );
