/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDL_table.sql **/
 EXEC p_AlterColumn 'T_BAS_DEPLOYINFO', 'FVER', 'VARCHAR(20)', 'NOT NULL', '0100', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_DEPLOYINFO' AND KSQL_COL_NAME ='FPATCH') 
 ALTER TABLE T_BAS_DEPLOYINFO ADD (FPATCH VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_DEPLOYINFO' AND KSQL_COL_NAME ='FDESCRIPTION') 
 ALTER TABLE T_BAS_DEPLOYINFO ADD (FDESCRIPTION NVARCHAR(1000) );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_META_FORMDESIGN' AND KSQL_COL_NAME ='FENABLED') 
 ALTER TABLE T_META_FORMDESIGN ADD (FENABLED CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_META_ENTITYDESIGN' AND KSQL_COL_NAME ='FENABLED') 
 ALTER TABLE T_META_ENTITYDESIGN ADD (FENABLED CHAR(1) DEFAULT '1' NOT NULL );

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