IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_LOT' AND KSQL_COL_NAME ='FCURRENTORGID')
ALTER TABLE T_BD_LOT ADD (FCURRENTORGID INT DEFAULT 0 NOT NULL );

EXEC p_AlterColumn 'T_BD_LOT', 'FCURRENTORGID', 'BIGINT', 'NOT NULL', '1111', '0';