﻿IF EXISTS (SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'lancamen' AND COLUMN_NAME = 'documento')
BEGIN
	IF ((SELECT CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'lancamen' AND COLUMN_NAME = 'documento') < 255)
	BEGIN
		ALTER TABLE lancamen ALTER COLUMN documento VARCHAR(255)
	END
END