IF NOT EXISTS
(
    SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'PG_DESP_RAT' AND COLUMN_NAME = 'UUID'
)
BEGIN
	ALTER TABLE dbo.PG_DESP_RAT ADD
		UUID uniqueidentifier  NULL;

	ALTER TABLE dbo.PG_DESP_RAT ADD CONSTRAINT
		DF_PG_DESP_RAT_UUID DEFAULT NEWID() FOR UUID;
END