IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PRIVACY_DATA_TAG' AND KSQL_COL_NAME ='FTEMPLATEID')
ALTER TABLE T_PRIVACY_DATA_TAG ADD (FTEMPLATEID BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PRIVACY_SCHEME_CONFIG' AND KSQL_COL_NAME ='FTEMPLATEID')
ALTER TABLE T_PRIVACY_SCHEME_CONFIG ADD (FTEMPLATEID BIGINT DEFAULT 0 NOT NULL );


