/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_VERIFYRECORDENTRY' AND KSQL_COL_NAME ='FWFINFO')
 ALTER TABLE T_AR_VERIFYRECORDENTRY ADD (FWFINFO NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_VERIFYRECORDENTRY' AND KSQL_COL_NAME ='FWFINFO_TAG') 
 ALTER TABLE T_AR_VERIFYRECORDENTRY ADD (FWFINFO_TAG NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_VERIFYRECORD' AND KSQL_COL_NAME ='FWFNUMBER') 
 ALTER TABLE T_AR_VERIFYRECORD ADD (FWFNUMBER VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_VERIFYRECORD' AND KSQL_COL_NAME ='FWRITEOFFTYPEID') 
 ALTER TABLE T_AR_VERIFYRECORD ADD (FWRITEOFFTYPEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_VERIFYRECORD' AND KSQL_COL_NAME ='FWFSEQ') 
 ALTER TABLE T_AR_VERIFYRECORD ADD (FWFSEQ VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_VERIFYRECORD' AND KSQL_COL_NAME ='FHEADWFINFO') 
 ALTER TABLE T_AR_VERIFYRECORD ADD (FHEADWFINFO NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_VERIFYRECORD' AND KSQL_COL_NAME ='FHEADWFINFO_TAG') 
 ALTER TABLE T_AR_VERIFYRECORD ADD (FHEADWFINFO_TAG NCLOB );

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