
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PERM_PSWSTRATEGY' AND KSQL_COL_NAME ='FSMSCOUNT') 
 ALTER TABLE T_PERM_PSWSTRATEGY ADD (FSMSCOUNT INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PERM_PSWSTRATEGY' AND KSQL_COL_NAME ='FLOGINOPTIONS') 
 ALTER TABLE T_PERM_PSWSTRATEGY ADD (FLOGINOPTIONS VARCHAR(30) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PERM_PSWSTRATEGY' AND KSQL_COL_NAME ='FENABLEGRAPHICCODE') 
 ALTER TABLE T_PERM_PSWSTRATEGY ADD (FENABLEGRAPHICCODE CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PERM_PSWSTRATEGY' AND KSQL_COL_NAME ='FENABLESMSCODE') 
 ALTER TABLE T_PERM_PSWSTRATEGY ADD (FENABLESMSCODE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PERM_PSWSTRATEGY' AND KSQL_COL_NAME ='FENABLELOCK') 
 ALTER TABLE T_PERM_PSWSTRATEGY ADD (FENABLELOCK CHAR(1) DEFAULT '1' NOT NULL );