
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_PRODUCTFAMILY' AND KSQL_COL_NAME ='FAPPROVEDATESHOW')
 ALTER TABLE T_MDS_PRODUCTFAMILY ADD (FAPPROVEDATESHOW DATETIME  );


IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_PRODUCTFAMILY' AND KSQL_COL_NAME ='FPBOMNAMEEDIT')
 ALTER TABLE T_MDS_PRODUCTFAMILY ADD (FPBOMNAMEEDIT NVARCHAR(255) DEFAULT ' ' NOT NULL );

