ALTER TABLE Scrips ADD LookupType VARCHAR2(255) DEFAULT 'RT::Queue-RT::Ticket' NOT NULL;
ALTER TABLE Scrips MODIFY LookupType DEFAULT NULL;
ALTER TABLE ScripConditions ADD LookupType VARCHAR2(255) DEFAULT 'RT::Queue-RT::Ticket' NOT NULL;
ALTER TABLE ScripConditions MODIFY LookupType DEFAULT NULL;
ALTER TABLE ScripActions ADD LookupType VARCHAR2(255) DEFAULT 'RT::Queue-RT::Ticket' NOT NULL;
ALTER TABLE ScripActions MODIFY LookupType DEFAULT NULL;
ALTER TABLE Templates ADD LookupType VARCHAR2(255) DEFAULT 'RT::Queue-RT::Ticket' NOT NULL;
ALTER TABLE Templates MODIFY LookupType DEFAULT NULL;
ALTER TABLE Templates RENAME COLUMN Queue To ObjectId;
