-- 存放地点分组改为带组织模板后，增加相关字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_STOREPLACEGROUP' AND KSQL_COL_NAME ='FNAME') 
 ALTER TABLE T_FA_STOREPLACEGROUP ADD (FNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_STOREPLACEGROUP' AND KSQL_COL_NAME ='FFULLNAME') 
 ALTER TABLE T_FA_STOREPLACEGROUP ADD (FFULLNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_STOREPLACEGROUP' AND KSQL_COL_NAME ='FORGID') 
 ALTER TABLE T_FA_STOREPLACEGROUP ADD (FORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_STOREPLACEGROUP' AND KSQL_COL_NAME ='FCTRLSTRATEGY') 
 ALTER TABLE T_FA_STOREPLACEGROUP ADD (FCTRLSTRATEGY CHAR(1) DEFAULT ' ' NOT NULL );