/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_table.sql **/
 EXEC p_AlterColumn 'T_PRIVACY_DATA_TAG_TPL', 'FID', 'BIGINT', 'NOT NULL', '0001', '0';

 EXEC p_AlterColumn 'T_PRIVACY_DATA_TAG_TPL', 'FCREATER', 'BIGINT', 'NOT NULL', '0011', '0';

 EXEC p_AlterColumn 'T_PRIVACY_DATA_TAG_TPL', 'FMODIFIER', 'BIGINT', 'NOT NULL', '0011', '0';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PRIVACY_DATA_TAG_TPL' AND KSQL_COL_NAME ='FTYPE') 
 ALTER TABLE T_PRIVACY_DATA_TAG_TPL ADD (FTYPE CHAR(1) DEFAULT '0' NOT NULL );

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