/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_table.sql **/
 EXEC p_AlterColumn 'T_OPEN_3RDAPPS', 'FPUBLICKEY', 'VARCHAR(256)', 'NOT NULL', '0100', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_OPEN_3RDAPPS' AND KSQL_COL_NAME ='FJWTASYMMETIC') 
 ALTER TABLE T_OPEN_3RDAPPS ADD (FJWTASYMMETIC CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_OPEN_3RDAPPS' AND KSQL_COL_NAME ='FSECURITYPUBLICKEY') 
 ALTER TABLE T_OPEN_3RDAPPS ADD (FSECURITYPUBLICKEY VARCHAR(2048) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_OPEN_3RDAPPS' AND KSQL_COL_NAME ='FSECURITYPRIVATEKEY') 
 ALTER TABLE T_OPEN_3RDAPPS ADD (FSECURITYPRIVATEKEY VARCHAR(2048) DEFAULT ' ' NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_table.sql **/
