2016-04-07 09:18:58 CEST [1700-1] postgres@postgres LOG:  could not receive data from client: Connection reset by peer
2016-04-07 10:47:35 CEST [2381-1] postgres@postgres LOG:  could not receive data from client: Connection reset by peer
2016-04-07 11:51:59 CEST [27280-2] LOG:  received smart shutdown request
2016-04-07 11:51:59 CEST [16538-1] postgres@labkey FATAL:  terminating connection due to administrator command
2016-04-07 11:51:59 CEST [16519-1] postgres@labkey FATAL:  terminating connection due to administrator command
2016-04-07 11:51:59 CEST [27285-2] LOG:  autovacuum launcher shutting down
2016-04-07 11:51:59 CEST [27282-1] LOG:  shutting down
2016-04-07 11:51:59 CEST [27282-2] LOG:  database system is shut down
2016-04-07 12:01:28 CEST [3134-1] LOG:  database system was shut down at 2016-04-07 11:51:59 CEST
2016-04-07 12:01:28 CEST [3135-1] postgres@labkey FATAL:  the database system is starting up
2016-04-07 12:01:28 CEST [3136-1] postgres@labkey FATAL:  the database system is starting up
2016-04-07 12:01:28 CEST [3134-2] LOG:  MultiXact member wraparound protections are now enabled
2016-04-07 12:01:28 CEST [3137-1] postgres@labkey FATAL:  the database system is starting up
2016-04-07 12:01:28 CEST [3133-1] LOG:  database system is ready to accept connections
2016-04-07 12:01:28 CEST [3141-1] LOG:  autovacuum launcher started
2016-04-07 12:01:28 CEST [3144-1] [unknown]@[unknown] LOG:  incomplete startup packet
2016-04-07 12:07:33 CEST [3133-2] LOG:  received smart shutdown request
2016-04-07 12:07:33 CEST [3141-2] LOG:  autovacuum launcher shutting down
2016-04-07 12:07:33 CEST [3138-1] LOG:  shutting down
2016-04-07 12:07:33 CEST [3138-2] LOG:  database system is shut down
2016-04-07 12:07:34 CEST [3347-1] LOG:  database system was shut down at 2016-04-07 12:04:56 CEST
2016-04-07 12:07:34 CEST [3347-2] LOG:  MultiXact member wraparound protections are now enabled
2016-04-07 12:07:34 CEST [3346-1] LOG:  database system is ready to accept connections
2016-04-07 12:07:34 CEST [3351-1] LOG:  autovacuum launcher started
2016-04-07 12:07:34 CEST [3353-1] [unknown]@[unknown] LOG:  incomplete startup packet
2016-04-07 12:15:37 CEST [3417-1] postgres@postgres LOG:  could not receive data from client: Connection reset by peer
2016-04-07 12:15:40 CEST [3418-1] postgres@postgres FATAL:  password authentication failed for user "postgres"
2016-04-07 12:15:40 CEST [3418-2] postgres@postgres DETAIL:  User "postgres" has no password assigned.
	Connection matched pg_hba.conf line 94: "host    all             all             ::1/128                 password #md5"
2016-04-07 12:15:40 CEST [3419-1] postgres@postgres FATAL:  password authentication failed for user "postgres"
2016-04-07 12:15:40 CEST [3419-2] postgres@postgres DETAIL:  User "postgres" has no password assigned.
	Connection matched pg_hba.conf line 94: "host    all             all             ::1/128                 password #md5"
2016-04-07 12:17:04 CEST [3441-1] postgres@postgres LOG:  could not receive data from client: Connection reset by peer
2016-04-07 12:50:47 CEST [3346-2] LOG:  received fast shutdown request
2016-04-07 12:50:47 CEST [3346-3] LOG:  aborting any active transactions
2016-04-07 12:50:47 CEST [3351-2] LOG:  autovacuum launcher shutting down
2016-04-07 12:50:47 CEST [3348-1] LOG:  shutting down
2016-04-07 12:50:48 CEST [3348-2] LOG:  database system is shut down
2016-04-07 12:50:48 CEST [3642-1] LOG:  database system was shut down at 2016-04-07 12:50:47 CEST
2016-04-07 12:50:48 CEST [3642-2] LOG:  MultiXact member wraparound protections are now enabled
2016-04-07 12:50:48 CEST [3641-1] LOG:  database system is ready to accept connections
2016-04-07 12:50:48 CEST [3646-1] LOG:  autovacuum launcher started
2016-04-07 12:50:48 CEST [3648-1] [unknown]@[unknown] LOG:  incomplete startup packet
2016-04-07 12:52:03 CEST [3776-1] postgres@labkey FATAL:  database "labkey" does not exist
2016-04-07 12:52:03 CEST [3777-1] postgres@template1 LOG:  execute <unnamed>: CREATE DATABASE labkey WITH ENCODING 'UTF8'
2016-04-07 12:52:04 CEST [3777-2] postgres@template1 LOG:  execute <unnamed>: 
	ALTER DATABASE labkey SET default_with_oids TO OFF
2016-04-07 12:52:05 CEST [3782-1] postgres@labkey LOG:  execute <unnamed>: CREATE DOMAIN public.UNIQUEIDENTIFIER AS VARCHAR(36)
2016-04-07 12:52:05 CEST [3782-2] postgres@labkey LOG:  execute <unnamed>: 
	CREATE DOMAIN public.ENTITYID AS VARCHAR(36)
2016-04-07 12:52:05 CEST [3782-3] postgres@labkey LOG:  execute <unnamed>: 
	CREATE DOMAIN public.USERID AS INT
2016-04-07 12:52:05 CEST [3782-4] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE SCHEMA core
2016-04-07 12:52:05 CEST [3782-5] postgres@labkey LOG:  execute <unnamed>: 
	CREATE SCHEMA temp
2016-04-07 12:52:05 CEST [3782-6] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	CREATE TABLE core.Logins
	(
	    Email VARCHAR(255) NOT NULL,
	    Crypt VARCHAR(64) NOT NULL,
	    Verification VARCHAR(64),
	    LastChanged TIMESTAMP NULL,
	    PreviousCrypts VARCHAR(1000),
	
	    CONSTRAINT PK_Logins PRIMARY KEY (Email)
	)
2016-04-07 12:52:05 CEST [3782-7] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	CREATE TABLE core.Principals
	(
	    UserId SERIAL,                    
	    Container ENTITYID,               
	    OwnerId ENTITYID NULL,
	    Name VARCHAR(64),                 
	    Type CHAR(1),                     
	    Active BOOLEAN NOT NULL DEFAULT TRUE,
	
	    CONSTRAINT PK_Principals PRIMARY KEY (UserId),
	    CONSTRAINT UQ_Principals_Container_Name_OwnerId UNIQUE (Container, Name, OwnerId)
	)
2016-04-07 12:52:05 CEST [3782-8] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE core.Members
	(
	    UserId USERID,
	    GroupId USERID,
	
	    CONSTRAINT PK_Members PRIMARY KEY (UserId, GroupId)
	)
2016-04-07 12:52:05 CEST [3782-9] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.UsersData
	(
	    
	    _ts TIMESTAMP DEFAULT now(),
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Owner USERID NULL,
	
	    UserId USERID,
	
	    DisplayName VARCHAR(64) NOT NULL,
	    FirstName VARCHAR(64) NULL,
	    LastName VARCHAR(64) NULL,
	    Phone VARCHAR(64) NULL,
	    Mobile VARCHAR(64) NULL,
	    Pager VARCHAR(64) NULL,
	    IM VARCHAR(64)  NULL,
	    Description VARCHAR(255),
	    LastLogin TIMESTAMP,
	
	    CONSTRAINT PK_UsersData PRIMARY KEY (UserId),
	    CONSTRAINT UQ_DisplayName UNIQUE (DisplayName)
	)
2016-04-07 12:52:05 CEST [3782-10] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.Containers
	(
	    _ts TIMESTAMP DEFAULT now(),
	    RowId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	
	    Parent ENTITYID,
	    Name VARCHAR(255),
	    SortOrder INTEGER NOT NULL DEFAULT 0,
	    Searchable BOOLEAN NOT NULL DEFAULT TRUE,
	
	    Description VARCHAR(4000),
	    Title VARCHAR(1000),
	    Type VARCHAR(16) NOT NULL DEFAULT 'normal',
	
	    CONSTRAINT UQ_Containers_RowId UNIQUE (RowId),
	    CONSTRAINT UQ_Containers_EntityId UNIQUE (EntityId),
	    CONSTRAINT UQ_Containers_Parent_Name UNIQUE (Parent, Name),
	    CONSTRAINT FK_Containers_Containers FOREIGN KEY (Parent) REFERENCES core.Containers(EntityId)
	)
2016-04-07 12:52:05 CEST [3782-11] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Containers_Parent_Entity ON core.Containers(Parent, EntityId)
2016-04-07 12:52:05 CEST [3782-12] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE core.Modules
	(
	    Name VARCHAR(255),
	    ClassName VARCHAR(255),
	    InstalledVersion FLOAT8,
	    Enabled BOOLEAN DEFAULT '1',
	    AutoUninstall BOOLEAN NOT NULL DEFAULT FALSE,  
	    Schemas VARCHAR(100) NULL,                     
	
	    CONSTRAINT PK_Modules PRIMARY KEY (Name)
	)
2016-04-07 12:52:06 CEST [3782-13] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE core.SqlScripts
	(
	    
	    _ts TIMESTAMP DEFAULT now(),
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	    ModuleName VARCHAR(100),
	    FileName VARCHAR(300),
	
	    CONSTRAINT PK_SqlScripts PRIMARY KEY (ModuleName, FileName)
	)
2016-04-07 12:52:06 CEST [3782-14] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE core.Documents
	(
	    
	    _ts TIMESTAMP DEFAULT now(),
	    RowId SERIAL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Owner USERID NULL,
	
	    Container ENTITYID NOT NULL,    
	    Parent ENTITYID NOT NULL,
	    DocumentName VARCHAR(195),    
	
	    DocumentSize INT DEFAULT -1,
	    DocumentType VARCHAR(500) DEFAULT 'text/plain',    
	    Document BYTEA,            
	
	    LastIndexed TIMESTAMP NULL,
	
	    CONSTRAINT PK_Documents PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Documents_Parent_DocumentName UNIQUE (Parent, DocumentName)
	)
2016-04-07 12:52:06 CEST [3782-15] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Documents_Container ON core.Documents(Container)
2016-04-07 12:52:06 CEST [3782-16] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Documents_Parent ON core.Documents(Parent)
2016-04-07 12:52:06 CEST [3782-17] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.Report
	(
	    RowId SERIAL,
	    ReportKey VARCHAR(255),
	    CreatedBy USERID,
	    ModifiedBy USERID,
	    Created TIMESTAMP,
	    Modified TIMESTAMP,
	    ContainerId ENTITYID NOT NULL,
	    EntityId ENTITYID NULL,
	    DescriptorXML TEXT,
	    ReportOwner INT,
	    Flags INT NOT NULL DEFAULT 0,
	    CategoryId Integer,
	    DisplayOrder Integer NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_Report PRIMARY KEY (RowId)
	)
2016-04-07 12:52:06 CEST [3782-18] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.ContainerAliases
	(
	    Path VARCHAR(255) NOT NULL,
	    ContainerId ENTITYID NOT NULL,
	
	    CONSTRAINT UK_ContainerAliases_Paths UNIQUE (Path),
	    CONSTRAINT FK_ContainerAliases_Containers FOREIGN KEY (ContainerId) REFERENCES core.Containers(EntityId)
	)
2016-04-07 12:52:06 CEST [3782-19] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.MappedDirectories
	(
	    EntityId ENTITYID NOT NULL,
	    Container ENTITYID NOT NULL,
	    Relative BOOLEAN NOT NULL,
	    Name VARCHAR(80),
	    Path VARCHAR(255),
	    CONSTRAINT PK_MappedDirecctories PRIMARY KEY (EntityId),
	    CONSTRAINT UQ_MappedDirectories UNIQUE (Container,Name)
	)
2016-04-07 12:52:06 CEST [3782-20] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.Policies
	(
	    ResourceId ENTITYID NOT NULL,
	    ResourceClass VARCHAR(1000),
	    Container ENTITYID NOT NULL,
	    Modified TIMESTAMP NOT NULL,
	
	    CONSTRAINT PK_Policies PRIMARY KEY(ResourceId)
	)
2016-04-07 12:52:06 CEST [3782-21] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.RoleAssignments
	(
	    ResourceId ENTITYID NOT NULL,
	    UserId USERID NOT NULL,
	    Role VARCHAR(500) NOT NULL,
	
	    CONSTRAINT PK_RoleAssignments PRIMARY KEY(ResourceId,UserId,Role),
	    CONSTRAINT FK_RA_P FOREIGN KEY(ResourceId) REFERENCES core.Policies(ResourceId),
	    CONSTRAINT FK_RA_UP FOREIGN KEY(UserId) REFERENCES core.Principals(UserId)
	)
2016-04-07 12:52:06 CEST [3782-22] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.MvIndicators
	(
	    Container ENTITYID,
	    MvIndicator VARCHAR(64),
	    Label VARCHAR(255) NULL,
	
	    CONSTRAINT PK_MvIndicators_Container_MvIndicator PRIMARY KEY (Container, MvIndicator)
	)
2016-04-07 12:52:06 CEST [3782-23] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE core.PortalPages
	(
	    EntityId ENTITYID NOT NULL,
	    Container ENTITYID NOT NULL,
	    PageId VARCHAR(50) NOT NULL,
	    Index INTEGER NOT NULL DEFAULT 0,
	    Caption VARCHAR(64),
	    Hidden BOOLEAN NOT NULL DEFAULT false,
	    Type VARCHAR(20), 
	    
	    
	    Action VARCHAR(200),    
	    TargetFolder ENTITYID,  
	    Permanent BOOLEAN NOT NULL DEFAULT false, 
	    Properties TEXT,
	
	    CONSTRAINT PK_PortalPages PRIMARY KEY (Container, PageId),
	    CONSTRAINT FK_PortalPages_Containers FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
	)
2016-04-07 12:52:07 CEST [3782-24] postgres@labkey LOG:  execute <unnamed>: 
	
	CLUSTER PK_PortalPages ON core.PortalPages
2016-04-07 12:52:07 CEST [3782-25] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PortalPages_EntityId ON core.PortalPages(EntityId)
2016-04-07 12:52:07 CEST [3782-26] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE core.PortalWebParts
	(
	    RowId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    PageId VARCHAR(50) NOT NULL,
	    Index INT NOT NULL,
	    Name VARCHAR(64),
	    Location VARCHAR(16),    
	    Properties TEXT,    
	    Permanent BOOLEAN NOT NULL DEFAULT FALSE,
	
	    CONSTRAINT PK_PortalWebParts PRIMARY KEY (RowId),
	    CONSTRAINT FK_PortalWebParts_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId),
	    CONSTRAINT FK_PortalWebPartPages FOREIGN KEY (Container, PageId) REFERENCES core.PortalPages (Container, PageId)
	)
2016-04-07 12:52:07 CEST [3782-27] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_PortalWebParts ON core.PortalWebParts(Container)
2016-04-07 12:52:07 CEST [3782-28] postgres@labkey LOG:  execute <unnamed>: 
	CLUSTER IX_PortalWebParts ON core.PortalWebParts
2016-04-07 12:52:07 CEST [3782-29] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE core.ViewCategory
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP DEFAULT now(),
	    ModifiedBy USERID,
	    Modified TIMESTAMP DEFAULT now(),
	
	    Label VARCHAR(200) NOT NULL,
	    DisplayOrder Integer NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_ViewCategory PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Container_Label UNIQUE (Container, Label)
	)
2016-04-07 12:52:07 CEST [3782-30] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE FUNCTION core.executeJavaUpgradeCode(text) RETURNS void AS $$
	    DECLARE note TEXT := 'Empty function that signals script runner to execute Java code.  See usages of UpgradeCode.java.';
	    BEGIN
	    END
	$$ LANGUAGE plpgsql
2016-04-07 12:52:07 CEST [3782-31] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION core.fn_dropifexists (text, text, text, text) RETURNS INTEGER AS $$
	DECLARE
	    objname ALIAS FOR $1;
	    objschema ALIAS FOR $2;
	    objtype ALIAS FOR $3;
	    subobjname ALIAS FOR $4;
	    ret_code INTEGER;
	    fullname TEXT;
	    tempschema TEXT;
	    BEGIN
	    ret_code := 0;
	    fullname := (LOWER(objschema) || '.' || LOWER(objname));
	        IF (UPPER(objtype)) = 'TABLE' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_tables WHERE tablename = LOWER(objname) AND schemaname = LOWER(objschema) )
	            THEN
	                EXECUTE 'DROP TABLE ' || fullname;
	                ret_code = 1;
	            ELSE
	                BEGIN
	                    SELECT INTO tempschema schemaname FROM pg_tables WHERE tablename = LOWER(objname) AND schemaname LIKE '%temp%';
	                    IF (tempschema IS NOT NULL)
	                    THEN
	                        EXECUTE 'DROP TABLE ' || tempschema || '.' || objname;
	                        ret_code = 1;
	                    END IF;
	                END;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'VIEW' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_views WHERE viewname = LOWER(objname) AND schemaname = LOWER(objschema) )
	            THEN
	            EXECUTE 'DROP VIEW ' || fullname;
	            ret_code = 1;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'INDEX' THEN
	        BEGIN
	            fullname := LOWER(objschema) || '.' || LOWER(subobjname);
	            IF EXISTS( SELECT * FROM pg_indexes WHERE tablename = LOWER(objname) AND indexname = LOWER(subobjname) AND schemaname = LOWER(objschema) )
	            THEN
	            EXECUTE 'DROP INDEX ' || fullname;
	            ret_code = 1;
	            ELSE
	            IF EXISTS( SELECT * FROM pg_indexes WHERE indexname = LOWER(subobjname) AND schemaname = LOWER(objschema) )
	                THEN RAISE EXCEPTION 'INDEX - % defined on a different table.', subobjname;
	            END IF;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'CONSTRAINT' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_class LEFT JOIN pg_constraint ON conrelid = pg_class.oid INNER JOIN pg_namespace ON pg_namespace.oid = pg_class.relnamespace
	                WHERE relkind = 'r' AND contype IS NOT NULL AND nspname = LOWER(objschema) AND relname = LOWER(objname) AND conname = LOWER(subobjname) )
	            THEN
	                EXECUTE 'ALTER TABLE ' || fullname || ' DROP CONSTRAINT ' || subobjname;
	                ret_code = 1;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'DEFAULT' THEN
	        BEGIN
	            EXECUTE 'ALTER TABLE ' || fullname || ' ALTER COLUMN ' || subobjname || ' DROP DEFAULT';
	            ret_code = 1;
	        END;
	        ELSEIF (UPPER(objtype)) = 'SCHEMA' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_namespace WHERE nspname = LOWER(objschema))
	            THEN
	            IF objname = '*' THEN
	                EXECUTE 'DROP SCHEMA ' || LOWER(objschema) || ' CASCADE';
	                ret_code = 1;
	            ELSEIF (objname = '' OR objname IS NULL) THEN
	                EXECUTE 'DROP SCHEMA ' || LOWER(objschema) || ' RESTRICT';
	                ret_code = 1;
	            ELSE
	                RAISE EXCEPTION 'Invalid objname for objtype of SCHEMA;  must be either "*" (for DROP SCHEMA CASCADE) or NULL (for DROP SCHEMA RESTRICT)';
	            END IF;
	            END IF;
	        END;
	        ELSE
	        RAISE EXCEPTION 'Invalid object type - %;  Valid values are TABLE, VIEW, INDEX, CONSTRAINT, SCHEMA ', objtype;
	        END IF;
	
	    RETURN ret_code;
	    END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:07 CEST [3782-32] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE AGGREGATE core.array_accum (anyelement)
	(
	    sfunc = array_append,
	    stype = anyarray,
	    initcond = '{}'
	)
2016-04-07 12:52:07 CEST [3782-33] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE FUNCTION core.sort(anyarray)
	RETURNS anyarray AS $$
	SELECT ARRAY(SELECT $1[i] from generate_series(array_lower($1,1),
	array_upper($1,1)) g(i) ORDER BY 1)
	$$ LANGUAGE SQL STRICT IMMUTABLE
2016-04-07 12:52:07 CEST [3782-34] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE AGGREGATE core.array_accum(text) (
	    SFUNC = array_append,
	    STYPE = text[],
	    INITCOND = '{}',
	    SORTOP = >
	)
2016-04-07 12:52:07 CEST [3782-35] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE core.viewcategory
	    ADD COLUMN Parent int4,
	    ADD CONSTRAINT fk_viewcategory_parent FOREIGN KEY (rowid) REFERENCES core.viewcategory(rowid) ON DELETE CASCADE
2016-04-07 12:52:07 CEST [3782-36] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE core.ViewCategory DROP CONSTRAINT uq_container_label
2016-04-07 12:52:07 CEST [3782-37] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.ViewCategory ADD CONSTRAINT uq_container_label_parent UNIQUE (Container, Label, Parent)
2016-04-07 12:52:07 CEST [3782-38] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE core.portalwebparts
	  ADD COLUMN permission character varying(256),
	  ADD COLUMN permissioncontainer entityid,
	  ADD CONSTRAINT fk_portalwebparts_permissioncontainer FOREIGN KEY (permissioncontainer)
	      REFERENCES core.containers (entityid) MATCH SIMPLE
	      ON UPDATE NO ACTION ON DELETE NO ACTION
2016-04-07 12:52:07 CEST [3782-39] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE core.portalwebparts
	  DROP CONSTRAINT fk_portalwebparts_permissioncontainer
2016-04-07 12:52:07 CEST [3782-40] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE core.portalwebparts
	  ADD CONSTRAINT fk_portalwebparts_permissioncontainer FOREIGN KEY (permissioncontainer)
	    REFERENCES core.containers (entityid) MATCH SIMPLE
	    ON UPDATE NO ACTION ON DELETE SET NULL
2016-04-07 12:52:07 CEST [3782-41] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM core.viewcategory WHERE parent IN
		(SELECT vcp.parent FROM (SELECT DISTINCT parent FROM core.viewcategory WHERE parent IS NOT NULL) vcp LEFT JOIN core.viewcategory vc ON vcp.parent = vc.rowid WHERE rowid IS NULL)
2016-04-07 12:52:07 CEST [3782-42] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE core.viewcategory DROP CONSTRAINT fk_viewcategory_parent
2016-04-07 12:52:07 CEST [3782-43] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.viewcategory ADD CONSTRAINT fk_viewcategory_parent FOREIGN KEY (parent) REFERENCES core.viewcategory(rowid)
2016-04-07 12:52:07 CEST [3782-44] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE core.DbSequences
	(
	    RowId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(500) NOT NULL,
	    Id INTEGER NOT NULL,
	    Value BIGINT NOT NULL,
	
	    CONSTRAINT PK_DbSequences PRIMARY KEY (RowId),
	    CONSTRAINT UQ_DbSequences_Container_Name_Id UNIQUE (Container, Name, Id)
	)
2016-04-07 12:52:07 CEST [3782-45] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.PortalPages ADD CONSTRAINT UQ_PortalPage UNIQUE (Container, Index)
2016-04-07 12:52:07 CEST [3782-46] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE core.Modules
	    ALTER COLUMN Schemas TYPE VARCHAR(4000)
2016-04-07 12:52:08 CEST [3782-47] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:08 CEST [3782-48] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:08.108', $2 = '0', $3 = '2016-04-07 12:52:08.108', $4 = '0', $5 = '2016-04-07 12:52:08.108', $6 = 'Core', $7 = 'core-0.00-13.30.sql'
2016-04-07 12:52:08 CEST [3782-49] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE core.ShortURL
	(
	    RowId SERIAL NOT NULL,
	    EntityId ENTITYID NOT NULL,
	    ShortURL VARCHAR(255) NOT NULL,
	    FullURL VARCHAR(4000) NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	    CONSTRAINT PK_ShortURL PRIMARY KEY (RowId),
	    CONSTRAINT UQ_ShortURL_EntityId UNIQUE (EntityId),
	    CONSTRAINT UQ_ShortURL_ShortURL UNIQUE (ShortURL)
	)
2016-04-07 12:52:08 CEST [3782-50] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:08 CEST [3782-51] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:08.498', $2 = '0', $3 = '2016-04-07 12:52:08.498', $4 = '0', $5 = '2016-04-07 12:52:08.498', $6 = 'Core', $7 = 'core-13.30-14.10.sql'
2016-04-07 12:52:08 CEST [3782-52] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE core.Report ADD COLUMN ContentModified TIMESTAMP
2016-04-07 12:52:08 CEST [3782-53] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE core.Report SET ContentModified = Modified
2016-04-07 12:52:08 CEST [3782-54] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.Report ALTER COLUMN ContentModified SET NOT NULL
2016-04-07 12:52:08 CEST [3782-55] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	DELETE FROM core.Report WHERE ContainerId NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:08 CEST [3782-56] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE core.Report
	ADD CONSTRAINT FK_Report_ContainerId FOREIGN KEY (ContainerId) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:08 CEST [3782-57] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE INDEX IDX_Report_ContainerId ON core.Report(ContainerId)
2016-04-07 12:52:08 CEST [3782-58] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE core.ViewCategory DROP CONSTRAINT uq_container_label_parent
2016-04-07 12:52:08 CEST [3782-59] postgres@labkey LOG:  execute <unnamed>: CREATE UNIQUE INDEX uq_container_label_parent ON core.ViewCategory (Container, LOWER(Label), COALESCE(Parent, -1))
2016-04-07 12:52:08 CEST [3782-60] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:08 CEST [3782-61] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:08.721', $2 = '0', $3 = '2016-04-07 12:52:08.721', $4 = '0', $5 = '2016-04-07 12:52:08.721', $6 = 'Core', $7 = 'core-14.20-14.30.sql'
2016-04-07 12:52:08 CEST [3782-62] postgres@labkey LOG:  execute <unnamed>: CREATE FUNCTION core.bulkImport(text, text, text) RETURNS void AS $$
	    DECLARE note TEXT := 'Empty function that signals script runner to bulk import a file into a table.';
	    BEGIN
	    END
	$$ LANGUAGE plpgsql
2016-04-07 12:52:08 CEST [3782-63] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE FUNCTION core.fnCalculateAge (startDate timestamp, endDate timestamp) RETURNS INTEGER AS $$
	DECLARE
	  
	  age INTEGER;
	BEGIN
	  IF startDate IS NULL OR endDate IS NULL THEN
	      age := NULL;
	  ELSE
	      age := EXTRACT(year from AGE(endDate, startDate));
	  END IF;
	  RETURN age;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:08 CEST [3782-64] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE OR REPLACE FUNCTION core.fn_dropifexists (text, text, text, text) RETURNS INTEGER AS $$
	DECLARE
	  
	    objname ALIAS FOR $1;
	    objschema ALIAS FOR $2;
	    objtype ALIAS FOR $3;
	    subobjname ALIAS FOR $4;
	    ret_code INTEGER;
	    fullname TEXT;
	    tempschema TEXT;
	    BEGIN
	    ret_code := 0;
	    fullname := (LOWER(objschema) || '.' || LOWER(objname));
	        IF (UPPER(objtype)) = 'TABLE' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_tables WHERE tablename = LOWER(objname) AND schemaname = LOWER(objschema) )
	            THEN
	                EXECUTE 'DROP TABLE ' || fullname;
	                ret_code = 1;
	            ELSE
	                BEGIN
	                    SELECT INTO tempschema schemaname FROM pg_tables WHERE tablename = LOWER(objname) AND schemaname LIKE '%temp%';
	                    IF (tempschema IS NOT NULL)
	                    THEN
	                        EXECUTE 'DROP TABLE ' || tempschema || '.' || objname;
	                        ret_code = 1;
	                    END IF;
	                END;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'VIEW' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_views WHERE viewname = LOWER(objname) AND schemaname = LOWER(objschema) )
	            THEN
	            EXECUTE 'DROP VIEW ' || fullname;
	            ret_code = 1;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'INDEX' THEN
	        BEGIN
	            fullname := LOWER(objschema) || '.' || LOWER(subobjname);
	            IF EXISTS( SELECT * FROM pg_indexes WHERE tablename = LOWER(objname) AND indexname = LOWER(subobjname) AND schemaname = LOWER(objschema) )
	            THEN
	            EXECUTE 'DROP INDEX ' || fullname;
	            ret_code = 1;
	            ELSE
	            IF EXISTS( SELECT * FROM pg_indexes WHERE indexname = LOWER(subobjname) AND schemaname = LOWER(objschema) )
	                THEN RAISE EXCEPTION 'INDEX - % defined on a different table.', subobjname;
	            END IF;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'CONSTRAINT' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_class LEFT JOIN pg_constraint ON conrelid = pg_class.oid INNER JOIN pg_namespace ON pg_namespace.oid = pg_class.relnamespace
	                WHERE relkind = 'r' AND contype IS NOT NULL AND nspname = LOWER(objschema) AND relname = LOWER(objname) AND conname = LOWER(subobjname) )
	            THEN
	                EXECUTE 'ALTER TABLE ' || fullname || ' DROP CONSTRAINT ' || subobjname;
	                ret_code = 1;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'DEFAULT' THEN
	        BEGIN
	            EXECUTE 'ALTER TABLE ' || fullname || ' ALTER COLUMN ' || subobjname || ' DROP DEFAULT';
	            ret_code = 1;
	        END;
	        ELSEIF (UPPER(objtype)) = 'SCHEMA' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_namespace WHERE nspname = LOWER(objschema))
	            THEN
	            IF objname = '*' THEN
	                EXECUTE 'DROP SCHEMA ' || LOWER(objschema) || ' CASCADE';
	                ret_code = 1;
	            ELSEIF (objname = '' OR objname IS NULL) THEN
	                EXECUTE 'DROP SCHEMA ' || LOWER(objschema) || ' RESTRICT';
	                ret_code = 1;
	            ELSE
	                RAISE EXCEPTION 'Invalid objname for objtype of SCHEMA;  must be either "*" (for DROP SCHEMA CASCADE) or NULL (for DROP SCHEMA RESTRICT)';
	            END IF;
	            END IF;
	        END;
	        ELSEIF (UPPER(objtype)) = 'FUNCTION' OR (UPPER(objtype)) = 'PROCEDURE' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM information_schema.routines WHERE routine_name = LOWER(objname) AND routine_schema = LOWER(objschema) )
	            THEN
	            EXECUTE 'DROP FUNCTION ' || fullname || '(' || subobjname || ')';
	            ret_code = 1;
	            END IF;
		      END;
		      ELSEIF (UPPER(objtype)) = 'AGGREGATE' THEN
	        BEGIN
	            IF EXISTS( SELECT * FROM pg_aggregate WHERE aggfnoid = fullname)
	            THEN
	            EXECUTE 'DROP AGGREGATE ' || fullname || '(' || subobjname || ')';
	            ret_code = 1;
	            END IF;
		      END;
	        ELSE
	        RAISE EXCEPTION 'Invalid object type - %;  Valid values are TABLE, VIEW, INDEX, CONSTRAINT, SCHEMA, PROCEDURE, FUNCTION, AGGREGATE ', objtype;
	        END IF;
	
	    RETURN ret_code;
	    END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:08 CEST [3782-65] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:08 CEST [3782-66] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:08.752', $2 = '0', $3 = '2016-04-07 12:52:08.752', $4 = '0', $5 = '2016-04-07 12:52:08.752', $6 = 'Core', $7 = 'core-14.30-15.10.sql'
2016-04-07 12:52:08 CEST [3782-67] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE core.Notifications
	(
	  RowId SERIAL,
	  Container ENTITYID NOT NULL,
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	
	  UserId USERID NOT NULL,
	  ObjectId VARCHAR(64) NOT NULL,
	  Type VARCHAR(200) NOT NULL,
	
	  CONSTRAINT PK_Notifications PRIMARY KEY (RowId),
	  CONSTRAINT FK_Notifications_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId),
	  CONSTRAINT UQ_Notifications_ContainerUserObjectType UNIQUE (Container, UserId, ObjectId, Type)
	)
2016-04-07 12:52:08 CEST [3782-68] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE core.Notifications ADD Description TEXT
2016-04-07 12:52:08 CEST [3782-69] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.Notifications ADD ReadOn TIMESTAMP
2016-04-07 12:52:08 CEST [3782-70] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.Notifications ADD ActionLinkText VARCHAR(2000)
2016-04-07 12:52:08 CEST [3782-71] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.Notifications ADD ActionLinkURL VARCHAR(4000)
2016-04-07 12:52:08 CEST [3782-72] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.Notifications DROP COLUMN ModifiedBy
2016-04-07 12:52:08 CEST [3782-73] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE core.Notifications DROP COLUMN Modified
2016-04-07 12:52:08 CEST [3782-74] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:08 CEST [3782-75] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:08.899', $2 = '0', $3 = '2016-04-07 12:52:08.899', $4 = '0', $5 = '2016-04-07 12:52:08.899', $6 = 'Core', $7 = 'core-15.20-15.30.sql'
2016-04-07 12:52:08 CEST [3782-76] postgres@labkey LOG:  execute <unnamed>: DROP AGGREGATE core.array_accum(anyelement)
2016-04-07 12:52:08 CEST [3782-77] postgres@labkey LOG:  execute <unnamed>: 
	DROP AGGREGATE core.array_accum(text)
2016-04-07 12:52:08 CEST [3782-78] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE FUNCTION core.bulkImport(text, text, text, boolean = false) RETURNS void AS $$
	DECLARE note TEXT := 'Empty function that signals script runner to bulk import a file into a table.';
	BEGIN
	END
	$$ LANGUAGE plpgsql
2016-04-07 12:52:08 CEST [3782-79] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:08 CEST [3782-80] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:08.932', $2 = '0', $3 = '2016-04-07 12:52:08.932', $4 = '0', $5 = '2016-04-07 12:52:08.932', $6 = 'Core', $7 = 'core-15.30-16.10.sql'
2016-04-07 12:52:08 CEST [3782-81] postgres@labkey LOG:  execute <unnamed>: CREATE VIEW core.Users AS
	    SELECT Principals.Name AS Email, UsersData.*, Principals.Active
	    FROM core.Principals Principals
	        INNER JOIN core.UsersData UsersData ON Principals.UserId = UsersData.UserId
	    WHERE Type = 'u'
2016-04-07 12:52:08 CEST [3782-82] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE OR REPLACE RULE Users_Update AS
	    ON UPDATE TO core.Users DO INSTEAD
	        UPDATE core.UsersData SET
	            ModifiedBy = NEW.ModifiedBy,
	            Modified = NEW.Modified,
	            FirstName = NEW.FirstName,
	            LastName = NEW.LastName,
	            Phone = NEW.Phone,
	            Mobile = NEW.Mobile,
	            Pager = NEW.Pager,
	            IM = NEW.IM,
	            Description = NEW.Description,
	            LastLogin = NEW.LastLogin,
	            DisplayName = NEW.DisplayName
	        WHERE UserId = NEW.UserId
2016-04-07 12:52:08 CEST [3782-83] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW core.ActiveUsers AS
	    SELECT *
	    FROM core.Users
	    WHERE Active=true
2016-04-07 12:52:08 CEST [3782-84] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW core.Contacts AS
	    SELECT DISTINCT Users.FirstName || ' ' || Users.LastName AS Name, Users.Email, Users.DisplayName, Users.Phone, Users.UserId, Groups.OwnerId, Groups.Container
	    FROM core.Principals Groups
	        INNER JOIN core.Members Members ON Groups.UserId = Members.GroupId
	        INNER JOIN core.ActiveUsers Users ON Members.UserId = Users.UserId
2016-04-07 12:52:08 CEST [3782-85] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW core.UserSearchTerms AS
	    SELECT U.UserId, U.Email || ' ' || U.FirstName || ' ' || U.LastName || ' ' || U.DisplayName AS SearchTerms
	    FROM core.Users U
2016-04-07 12:52:09 CEST [3782-86] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA prop
2016-04-07 12:52:09 CEST [3782-87] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	
	
	
	CREATE TABLE prop.PropertySets
	(
	    Set SERIAL,
	    ObjectId UNIQUEIDENTIFIER NULL,  
	    Category VARCHAR(255) NULL,      
	    UserId USERID,
	
	    CONSTRAINT PK_PropertySets PRIMARY KEY (Set),
	    CONSTRAINT UQ_PropertySets UNIQUE (ObjectId, UserId, Category)
	)
2016-04-07 12:52:09 CEST [3782-88] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prop.Properties
	(
	    Set INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(2000) NOT NULL,
	
	    CONSTRAINT PK_Properties PRIMARY KEY (Set, Name)
	)
2016-04-07 12:52:09 CEST [3782-89] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION prop.Property_setValue(INT, TEXT, TEXT) RETURNS void AS $$
	    DECLARE
	        propertySet ALIAS FOR $1;
	        propertyName ALIAS FOR $2;
	        propertyValue ALIAS FOR $3;
	
	        rowCount INT;
	    BEGIN
	        IF (propertyValue IS NULL) THEN
	            DELETE FROM prop.Properties WHERE Set = propertySet AND Name = propertyName;
	        ELSE
	            UPDATE prop.Properties SET Value = propertyValue WHERE Set = propertySet AND Name = propertyName;
	
	            IF NOT FOUND THEN
	                INSERT INTO prop.Properties VALUES (propertySet, propertyName, propertyValue);
	            END IF;
	        END IF;
	
	        RETURN;
	    END;
	    $$ LANGUAGE plpgsql
2016-04-07 12:52:09 CEST [3782-90] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	DELETE FROM prop.properties WHERE "set" IN
	  (SELECT "set" FROM prop.propertysets WHERE ObjectId NOT IN
	    (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:09 CEST [3782-91] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM prop.properties WHERE "set" NOT IN
	  (SELECT "set" FROM prop.propertysets)
2016-04-07 12:52:09 CEST [3782-92] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM prop.propertysets WHERE ObjectId NOT IN
	  (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:09 CEST [3782-93] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE prop.properties
	    ADD CONSTRAINT FK_Properties_Set FOREIGN KEY ("set") REFERENCES prop.PropertySets ("set")
2016-04-07 12:52:09 CEST [3782-94] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE prop.propertysets
	    ADD CONSTRAINT FK_PropertySets_ObjectId FOREIGN KEY (ObjectId) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:09 CEST [3782-95] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE prop.PropertySets
	    ADD Encryption VARCHAR(100) NOT NULL DEFAULT 'None'
2016-04-07 12:52:09 CEST [3782-96] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:09 CEST [3782-97] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:09.501', $2 = '0', $3 = '2016-04-07 12:52:09.501', $4 = '0', $5 = '2016-04-07 12:52:09.501', $6 = 'Core', $7 = 'prop-0.00-13.30.sql'
2016-04-07 12:52:09 CEST [3782-98] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE prop.Properties ALTER COLUMN Value TYPE TEXT
2016-04-07 12:52:09 CEST [3782-99] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:09 CEST [3782-100] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:09.522', $2 = '0', $3 = '2016-04-07 12:52:09.522', $4 = '0', $5 = '2016-04-07 12:52:09.522', $6 = 'Core', $7 = 'prop-13.30-14.10.sql'
2016-04-07 12:52:09 CEST [3782-101] postgres@labkey LOG:  execute <unnamed>: CREATE VIEW prop.PropertyEntries AS
	    SELECT ObjectId, Category, UserId, Name, Value FROM prop.Properties JOIN prop.PropertySets ON PropertySets.Set = Properties.Set WHERE Encryption = 'None'
2016-04-07 12:52:09 CEST [3782-102] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA test
2016-04-07 12:52:09 CEST [3782-103] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE test.TestTable
	(
	    _ts TIMESTAMP DEFAULT now(),
	    EntityId ENTITYID NOT NULL,
	    RowId SERIAL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	
	    Container ENTITYID,        
	    Text VARCHAR(195),        
	
	    IntNull INT NULL,
	    IntNotNull INT NOT NULL,
	    DatetimeNull TIMESTAMP NULL,
	    DatetimeNotNull TIMESTAMP NOT NULL,
	    RealNull REAL NULL,
	    BitNull BOOLEAN NULL,
	    BitNotNull BOOLEAN NOT NULL,
	
	    CONSTRAINT PK_TestTable PRIMARY KEY (RowId)
	)
2016-04-07 12:52:09 CEST [3782-104] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE test.TestTable2
	(
	    _ts TIMESTAMP DEFAULT now(),
	    EntityId ENTITYID NOT NULL,
	    RowId SERIAL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	
	    Container ENTITYID,        
	    Text VARCHAR(195),        
	
	    IntNull INT NULL,
	    IntNotNull INT NOT NULL,
	    DatetimeNull TIMESTAMP NULL,
	    DatetimeNotNull TIMESTAMP NOT NULL,
	    RealNull REAL NULL,
	    BitNull BOOLEAN NULL,
	    BitNotNull BOOLEAN NOT NULL,
	
	    CONSTRAINT PK_TestTable2 PRIMARY KEY (Container,Text)
	)
2016-04-07 12:52:09 CEST [3782-105] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:09 CEST [3782-106] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:09.801', $2 = '0', $3 = '2016-04-07 12:52:09.801', $4 = '0', $5 = '2016-04-07 12:52:09.801', $6 = 'Core', $7 = 'test-0.00-13.20.sql'
2016-04-07 12:52:09 CEST [3782-107] postgres@labkey LOG:  execute <unnamed>: CREATE VIEW test.TestTable3 AS
	    SELECT * FROM test.TestTable
2016-04-07 12:52:09 CEST [3782-108] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW test.Containers2 AS
	    SELECT * FROM core.Containers
2016-04-07 12:52:09 CEST [3782-109] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW test.ContainerAliases2 AS
	    SELECT * FROM core.ContainerAliases
2016-04-07 12:52:09 CEST [3782-110] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW test.Users2 AS
	    SELECT * FROM core.Users
2016-04-07 12:52:09 CEST [3782-111] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.principals (UserId, Name, Type) VALUES ($1, $2, $3)
2016-04-07 12:52:09 CEST [3782-112] postgres@labkey DETAIL:  parameters: $1 = '-1', $2 = 'Administrators', $3 = 'g'
2016-04-07 12:52:09 CEST [3782-113] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.principals (UserId, Name, Type) VALUES ($1, $2, $3)
2016-04-07 12:52:09 CEST [3782-114] postgres@labkey DETAIL:  parameters: $1 = '-2', $2 = 'Users', $3 = 'g'
2016-04-07 12:52:09 CEST [3782-115] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.principals (UserId, Name, Type) VALUES ($1, $2, $3)
2016-04-07 12:52:09 CEST [3782-116] postgres@labkey DETAIL:  parameters: $1 = '-3', $2 = 'Guests', $3 = 'g'
2016-04-07 12:52:09 CEST [3782-117] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.principals (UserId, Name, Type) VALUES ($1, $2, $3)
2016-04-07 12:52:09 CEST [3782-118] postgres@labkey DETAIL:  parameters: $1 = '-4', $2 = 'Developers', $3 = 'r'
2016-04-07 12:52:10 CEST [3782-119] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.containers
		(_ts, entityid, created, parent, name)
		VALUES ($1, $2, $3, NULL, NULL)
	RETURNING rowid
2016-04-07 12:52:10 CEST [3782-120] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:10.043', $2 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $3 = '2016-04-07 12:52:10.043'
2016-04-07 12:52:10 CEST [3782-121] postgres@labkey LOG:  execute S_44/C_45: INSERT INTO core.policies
		(resourceid, resourceclass, container, modified)
		VALUES ($1, $2, $3, $4)
2016-04-07 12:52:10 CEST [3782-122] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:10.083'
2016-04-07 12:52:10 CEST [3782-123] postgres@labkey LOG:  execute S_46/C_47: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:10 CEST [3782-124] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-125] postgres@labkey LOG:  execute S_48/C_49: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-126] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = '-1', $3 = 'org.labkey.api.security.roles.SiteAdminRole'
2016-04-07 12:52:10 CEST [3782-127] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.containers
		(_ts, entityid, created, parent, name, sortorder, title, type)
		VALUES ($1, $2, $3, $4, $5, $6, NULL, $7)
	RETURNING rowid
2016-04-07 12:52:10 CEST [3782-128] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:10.128', $2 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $3 = '2016-04-07 12:52:10.128', $4 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $5 = 'home', $6 = '0', $7 = 'normal'
2016-04-07 12:52:10 CEST [3782-129] postgres@labkey LOG:  execute S_44/C_56: INSERT INTO core.policies
		(resourceid, resourceclass, container, modified)
		VALUES ($1, $2, $3, $4)
2016-04-07 12:52:10 CEST [3782-130] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:10.143'
2016-04-07 12:52:10 CEST [3782-131] postgres@labkey LOG:  execute S_46/C_57: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:10 CEST [3782-132] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-133] postgres@labkey LOG:  execute S_48/C_58: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-134] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = '-3', $3 = 'org.labkey.api.security.roles.NoPermissionsRole'
2016-04-07 12:52:10 CEST [3782-135] postgres@labkey LOG:  execute S_69/C_70: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:52:10 CEST [3782-136] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'activeModules', $3 = '0', $4 = 'None'
2016-04-07 12:52:10 CEST [3782-137] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.principals
		(container, ownerid, name, type)
		VALUES ($1, $2, $3, $4)
	RETURNING userid
2016-04-07 12:52:10 CEST [3782-138] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $3 = 'Users', $4 = 'g'
2016-04-07 12:52:10 CEST [3782-139] postgres@labkey LOG:  execute S_79/C_80: UPDATE core.policies
		SET resourceid=$1, resourceclass=$2, container=$3, modified=$4
		WHERE resourceid=$5
2016-04-07 12:52:10 CEST [3782-140] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:10.481', $5 = 'aeef6762-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-141] postgres@labkey LOG:  execute S_46/C_81: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:10 CEST [3782-142] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-143] postgres@labkey LOG:  execute S_48/C_82: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-144] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = '-3', $3 = 'org.labkey.api.security.roles.NoPermissionsRole'
2016-04-07 12:52:10 CEST [3782-145] postgres@labkey LOG:  execute S_79/C_85: UPDATE core.policies
		SET resourceid=$1, resourceclass=$2, container=$3, modified=$4
		WHERE resourceid=$5
2016-04-07 12:52:10 CEST [3782-146] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:10.499', $5 = 'aeef6762-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-147] postgres@labkey LOG:  execute S_46/C_86: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:10 CEST [3782-148] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-149] postgres@labkey LOG:  execute S_48/C_87: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-150] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = '-3', $3 = 'org.labkey.api.security.roles.ReaderRole'
2016-04-07 12:52:10 CEST [3782-151] postgres@labkey LOG:  execute S_48/C_88: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-152] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = '-2', $3 = 'org.labkey.api.security.roles.ReaderRole'
2016-04-07 12:52:10 CEST [3782-153] postgres@labkey LOG:  execute S_48/C_89: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-154] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = '-1', $3 = 'org.labkey.api.security.roles.SiteAdminRole'
2016-04-07 12:52:10 CEST [3782-155] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.containers
		(_ts, entityid, created, parent, name, sortorder, title, type)
		VALUES ($1, $2, $3, $4, $5, $6, NULL, $7)
	RETURNING rowid
2016-04-07 12:52:10 CEST [3782-156] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:10.512', $2 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $3 = '2016-04-07 12:52:10.512', $4 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $5 = 'Shared', $6 = '0', $7 = 'normal'
2016-04-07 12:52:10 CEST [3782-157] postgres@labkey LOG:  execute S_44/C_94: INSERT INTO core.policies
		(resourceid, resourceclass, container, modified)
		VALUES ($1, $2, $3, $4)
2016-04-07 12:52:10 CEST [3782-158] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:10.526'
2016-04-07 12:52:10 CEST [3782-159] postgres@labkey LOG:  execute S_46/C_95: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:10 CEST [3782-160] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-161] postgres@labkey LOG:  execute S_48/C_96: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-162] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = '-3', $3 = 'org.labkey.api.security.roles.NoPermissionsRole'
2016-04-07 12:52:10 CEST [3782-163] postgres@labkey LOG:  execute S_69/C_104: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:52:10 CEST [3782-164] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'activeModules', $3 = '0', $4 = 'None'
2016-04-07 12:52:10 CEST [3782-165] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.principals
		(container, ownerid, name, type)
		VALUES ($1, $2, $3, $4)
	RETURNING userid
2016-04-07 12:52:10 CEST [3782-166] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $3 = 'Users', $4 = 'g'
2016-04-07 12:52:10 CEST [3782-167] postgres@labkey LOG:  execute S_79/C_109: UPDATE core.policies
		SET resourceid=$1, resourceclass=$2, container=$3, modified=$4
		WHERE resourceid=$5
2016-04-07 12:52:10 CEST [3782-168] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:10.577', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-169] postgres@labkey LOG:  execute S_46/C_110: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:10 CEST [3782-170] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-171] postgres@labkey LOG:  execute S_48/C_111: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-172] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = '-3', $3 = 'org.labkey.api.security.roles.NoPermissionsRole'
2016-04-07 12:52:10 CEST [3782-173] postgres@labkey LOG:  execute S_79/C_114: UPDATE core.policies
		SET resourceid=$1, resourceclass=$2, container=$3, modified=$4
		WHERE resourceid=$5
2016-04-07 12:52:10 CEST [3782-174] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:10.588', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-175] postgres@labkey LOG:  execute S_46/C_115: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:10 CEST [3782-176] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:10 CEST [3782-177] postgres@labkey LOG:  execute S_48/C_116: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-178] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = '-2', $3 = 'org.labkey.api.security.roles.ReaderRole'
2016-04-07 12:52:10 CEST [3782-179] postgres@labkey LOG:  execute S_48/C_117: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-180] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = '-1', $3 = 'org.labkey.api.security.roles.SiteAdminRole'
2016-04-07 12:52:10 CEST [3782-181] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.mvindicators
		(container, mvindicator, label)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-182] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'Q', $3 = 'Data currently under quality control review.'
2016-04-07 12:52:10 CEST [3782-183] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.mvindicators
		(container, mvindicator, label)
		VALUES ($1, $2, $3)
2016-04-07 12:52:10 CEST [3782-184] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'N', $3 = 'Required field marked by site as ''data not available''.'
2016-04-07 12:52:10 CEST [3782-185] postgres@labkey LOG:  execute S_69/C_123: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:52:10 CEST [3782-186] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'SiteConfig', $3 = '-1', $4 = 'None'
2016-04-07 12:52:10 CEST [3782-187] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:10 CEST [3782-188] postgres@labkey DETAIL:  parameters: $1 = 'Core', $2 = 'org.labkey.core.CoreModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:12 CEST [3782-189] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA query
2016-04-07 12:52:12 CEST [3782-190] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE query.QueryDef
	(
	    QueryDefId SERIAL NOT NULL,
	    EntityId ENTITYID NOT NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(200) NOT NULL,
	    Schema VARCHAR(50) NOT NULL,
	    Sql TEXT,
	    MetaData TEXT,
	    Description TEXT,
	    SchemaVersion FLOAT8 NOT NULL,
	    Flags INTEGER NOT NULL,
	    CONSTRAINT PK_QueryDef PRIMARY KEY (QueryDefId),
	    CONSTRAINT UQ_QueryDef UNIQUE (Container, Schema, Name)
	)
2016-04-07 12:52:12 CEST [3782-191] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE query.CustomView
	(
	    CustomViewId SERIAL NOT NULL,
	    EntityId ENTITYID NOT NULL,
	    Created TIMESTAMP NOT NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	    Schema VARCHAR(50) NOT NULL,
	    QueryName VARCHAR(200) NOT NULL,
	
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(200) NULL,
	    CustomViewOwner INT NULL,
	    Columns TEXT,
	    Filter TEXT,
	    Flags INTEGER NOT NULL,
	    CONSTRAINT PK_CustomView PRIMARY KEY (CustomViewId),
	    CONSTRAINT UQ_CustomView UNIQUE (Container, Schema, QueryName, CustomViewOwner, Name)
	)
2016-04-07 12:52:12 CEST [3782-192] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE query.ExternalSchema
	(
	    ExternalSchemaId SERIAL NOT NULL,
	    EntityId ENTITYID NOT NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	
	    Container ENTITYID NOT NULL,
	    DataSource VARCHAR(50) NOT NULL,
	    UserSchemaName VARCHAR(50) NOT NULL,
	    DbSchemaName VARCHAR(50) NOT NULL,
	
	    Editable BOOLEAN NOT NULL DEFAULT '0',
	    MetaData TEXT NULL,
	    Indexable BOOLEAN NOT NULL DEFAULT TRUE,
	    Tables VARCHAR(8000) NOT NULL DEFAULT '*',
	
	    CONSTRAINT PK_DbUserSchema PRIMARY KEY(ExternalSchemaId)
	)
2016-04-07 12:52:12 CEST [3782-193] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_ExternalSchema ON query.ExternalSchema (Container, LOWER(UserSchemaName))
2016-04-07 12:52:12 CEST [3782-194] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE query.QuerySnapshotDef
	(
	    RowId SERIAL NOT NULL,
	    QueryDefId INT NULL,
	
	    EntityId ENTITYID NOT NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	    Container ENTITYID NOT NULL,
	    Schema VARCHAR(50) NOT NULL,
	    Name VARCHAR(200) NOT NULL,
	    Columns TEXT,
	    Filter TEXT,
	    LastUpdated TIMESTAMP NULL,
	    NextUpdate TIMESTAMP NULL,
	    UpdateDelay INT DEFAULT 0,
	    QueryTableName VARCHAR(200) NULL,
	    QueryTableContainer ENTITYID,
	    ParticipantGroups TEXT,
	
	    CONSTRAINT PK_RowId PRIMARY KEY (RowId),
	    CONSTRAINT FK_QuerySnapshotDef_QueryDefId FOREIGN KEY (QueryDefId) REFERENCES query.QueryDef (QueryDefId)
	)
2016-04-07 12:52:13 CEST [3782-195] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE query.querydef ALTER COLUMN schema TYPE VARCHAR(200)
2016-04-07 12:52:13 CEST [3782-196] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE query.ExternalSchema
	    ADD COLUMN SchemaType VARCHAR(50) NOT NULL DEFAULT 'external'
2016-04-07 12:52:13 CEST [3782-197] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE query.ExternalSchema
	    ADD COLUMN SchemaTemplate VARCHAR(50)
2016-04-07 12:52:13 CEST [3782-198] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE query.ExternalSchema
	    RENAME DbSchemaName TO SourceSchemaName
2016-04-07 12:52:13 CEST [3782-199] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE query.ExternalSchema
	    ALTER COLUMN SourceSchemaName DROP NOT NULL
2016-04-07 12:52:13 CEST [3782-200] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE query.ExternalSchema
	    ADD CONSTRAINT "CK_SchemaTemplate"
	    CHECK ((SchemaTemplate IS NULL     AND SourceSchemaName IS NOT NULL AND Tables IS NOT NULL) OR
	           (SchemaTemplate IS NOT NULL AND SourceSchemaName IS NULL     AND Tables IS NULL     AND MetaData IS NULL))
2016-04-07 12:52:13 CEST [3782-201] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE query.ExternalSchema ALTER COLUMN Tables DROP DEFAULT
2016-04-07 12:52:13 CEST [3782-202] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE query.ExternalSchema ALTER COLUMN Tables DROP NOT NULL
2016-04-07 12:52:13 CEST [3782-203] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE query.customview ALTER COLUMN schema TYPE VARCHAR(200)
2016-04-07 12:52:13 CEST [3782-204] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE query.ExternalSchema
	   DROP CONSTRAINT "CK_SchemaTemplate"
2016-04-07 12:52:13 CEST [3782-205] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE query.ExternalSchema
	    ADD CONSTRAINT "CK_SchemaTemplate"
	    CHECK (SchemaTemplate IS NOT NULL OR (SchemaTemplate IS NULL AND SourceSchemaName IS NOT NULL AND Tables IS NOT NULL))
2016-04-07 12:52:13 CEST [3782-206] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE query.QuerySnapshotDef ADD COLUMN OptionsId INT NULL
2016-04-07 12:52:13 CEST [3782-207] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:13 CEST [3782-208] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:13.213', $2 = '0', $3 = '2016-04-07 12:52:13.213', $4 = '0', $5 = '2016-04-07 12:52:13.213', $6 = 'Query', $7 = 'query-0.00-13.20.sql'
2016-04-07 12:52:13 CEST [3782-209] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE query.OlapDef
	(
	    RowId SERIAL NOT NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Module VARCHAR(255) NOT NULL,
	    Definition TEXT NOT NULL,
	
	    CONSTRAINT PK_OlapDef PRIMARY KEY (RowId),
	    CONSTRAINT UQ_OlapDef UNIQUE (Container, Name)
	)
2016-04-07 12:52:13 CEST [3782-210] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:13 CEST [3782-211] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:13.389', $2 = '0', $3 = '2016-04-07 12:52:13.389', $4 = '0', $5 = '2016-04-07 12:52:13.389', $6 = 'Query', $7 = 'query-14.20-14.30.sql'
2016-04-07 12:52:13 CEST [3782-212] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:13 CEST [3782-213] postgres@labkey DETAIL:  parameters: $1 = 'Query', $2 = 'org.labkey.query.QueryModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:13 CEST [3782-214] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:13 CEST [3782-215] postgres@labkey DETAIL:  parameters: $1 = 'FCSExpress', $2 = 'org.labkey.fcsexpress.FCSExpressModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:13 CEST [3782-216] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA search
2016-04-07 12:52:13 CEST [3782-217] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE search.CrawlCollections
	(
	    id SERIAL,
	
	    Parent INT,
	    Name VARCHAR(448) NOT NULL,
	    Path VARCHAR(2000) NOT NULL,
	
	    Modified TIMESTAMP NULL,      
	    LastCrawled TIMESTAMP NULL,   
	    ChangeInterval INT NULL DEFAULT 1000*60*60*24,  
	    NextCrawl TIMESTAMP NOT NULL DEFAULT CAST('1967-10-04' as TIMESTAMP), 
	    CONSTRAINT PK_Collections PRIMARY KEY (id),
	    CONSTRAINT AK_Unique UNIQUE (Parent, Name)
	)
2016-04-07 12:52:13 CEST [3782-218] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_NextCrawl ON search.CrawlCollections(NextCrawl)
2016-04-07 12:52:13 CEST [3782-219] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE search.CrawlResources
	(
	    Parent INT,
	    Name VARCHAR(400) NOT NULL,
	    
	    Modified TIMESTAMP NULL,    
	    LastIndexed TIMESTAMP NULL,  
	    CONSTRAINT PK_Resources PRIMARY KEY (Parent,Name)
	)
2016-04-07 12:52:13 CEST [3782-220] postgres@labkey LOG:  execute <unnamed>: 
	CLUSTER PK_Resources ON search.CrawlResources
2016-04-07 12:52:13 CEST [3782-221] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE search.ParticipantIndex
	(
	    Container ENTITYID NOT NULL,          
	    ParticipantId VARCHAR(32) NOT NULL,   
	    LastIndexed TIMESTAMP NOT NULL,
	    CONSTRAINT PK_ParticipantIndex PRIMARY KEY (Container,ParticipantId)
	)
2016-04-07 12:52:13 CEST [3782-222] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	DROP TABLE search.ParticipantIndex
2016-04-07 12:52:13 CEST [3782-223] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:13 CEST [3782-224] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:13.943', $2 = '0', $3 = '2016-04-07 12:52:13.943', $4 = '0', $5 = '2016-04-07 12:52:13.943', $6 = 'Search', $7 = 'search-0.00-13.10.sql'
2016-04-07 12:52:13 CEST [3782-225] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA umls
2016-04-07 12:52:13 CEST [3782-226] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRCOC (
	    CUI1 CHAR(8) NOT NULL,
	    AUI1 VARCHAR(9) NOT NULL,
	    CUI2 CHAR(8),
	    AUI2 VARCHAR(9),
	    SAB VARCHAR(20) NOT NULL,
	    COT VARCHAR(3) NOT NULL,
	    COF INTEGER,
	    COA VARCHAR(300),
	    CVF INTEGER
	)
2016-04-07 12:52:13 CEST [3782-227] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRCOLS (
	    COL VARCHAR(20),
	    DES VARCHAR(200),
	    REF VARCHAR(20),
	    MIN INTEGER,
	    AV numeric(5,2),
	    MAX INTEGER,
	    FIL VARCHAR(50),
	    DTY VARCHAR(20)
	)
2016-04-07 12:52:13 CEST [3782-228] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRCONSO (
	    CUI CHAR(8) NOT NULL,
	    LAT CHAR(3) NOT NULL,
	    TS CHAR(1) NOT NULL,
	    LUI VARCHAR(10) NOT NULL,
	    STT VARCHAR(3) NOT NULL,
	    SUI VARCHAR(10) NOT NULL,
	    ISPREF CHAR(1) NOT NULL,
	    AUI VARCHAR(9) NOT NULL,
	    SAUI VARCHAR(50),
	    SCUI VARCHAR(50),
	    SDUI VARCHAR(50),
	    SAB VARCHAR(20) NOT NULL,
	    TTY VARCHAR(20) NOT NULL,
	    CODE VARCHAR(50) NOT NULL,
	    STR VARCHAR(3000) NOT NULL,
	    SRL INTEGER NOT NULL,
	    SUPPRESS CHAR(1) NOT NULL,
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-229] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRCUI (
	    CUI1 CHAR(8) NOT NULL,
	    VER VARCHAR(10) NOT NULL,
	    REL VARCHAR(4) NOT NULL,
	    RELA VARCHAR(100),
	    MAPREASON VARCHAR(4000),
	    CUI2 CHAR(8),
	    MAPIN CHAR(1)
	)
2016-04-07 12:52:14 CEST [3782-230] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRCXT (
	    CUI CHAR(8),
	    SUI VARCHAR(10),
	    AUI VARCHAR(9),
	    SAB VARCHAR(20),
	    CODE VARCHAR(50),
	    CXN INTEGER,
	    CXL CHAR(3),
	    RANK INTEGER,
	    CXS VARCHAR(3000),
	    CUI2 CHAR(8),
	    AUI2 VARCHAR(9),
	    HCD VARCHAR(50),
	    RELA VARCHAR(100),
	    XC VARCHAR(1),
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-231] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRDEF (
	    CUI CHAR(8) NOT NULL,
	    AUI VARCHAR(9) NOT NULL,
	    ATUI VARCHAR(11) NOT NULL,
	    SATUI VARCHAR(50),
	    SAB VARCHAR(20) NOT NULL,
	    DEF TEXT NOT NULL,
	    SUPPRESS CHAR(1) NOT NULL,
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-232] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRDOC (
	    DOCKEY VARCHAR(50) NOT NULL,
	    VALUE VARCHAR(200),
	    TYPE VARCHAR(50) NOT NULL,
	    EXPL VARCHAR(1000)
	)
2016-04-07 12:52:14 CEST [3782-233] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE umls.MRFILES (
	    FIL VARCHAR(50),
	    DES VARCHAR(200),
	    FMT VARCHAR(300),
	    CLS INTEGER,
	    RWS INTEGER,
	    BTS INTEGER
	)
2016-04-07 12:52:14 CEST [3782-234] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRHIER (
	    CUI CHAR(8) NOT NULL,
	    AUI VARCHAR(9) NOT NULL,
	    CXN INTEGER NOT NULL,
	    PAUI VARCHAR(10),
	    SAB VARCHAR(20) NOT NULL,
	    RELA VARCHAR(100),
	    PTR VARCHAR(1000),
	    HCD VARCHAR(50),
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-235] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRHIST (
	    CUI CHAR(8),
	    SOURCEUI VARCHAR(50),
	    SAB VARCHAR(20),
	    SVER VARCHAR(20),
	    CHANGETYPE VARCHAR(1000),
	    CHANGEKEY VARCHAR(1000),
	    CHANGEVAL VARCHAR(1000),
	    REASON VARCHAR(1000),
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-236] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRMAP (
	    MAPSETCUI CHAR(8) NOT NULL,
	    MAPSETSAB VARCHAR(20) NOT NULL,
	    MAPSUBSETID VARCHAR(10),
	    MAPRANK INTEGER,
	    MAPID VARCHAR(50) NOT NULL,
	    MAPSID VARCHAR(50),
	    FROMID VARCHAR(50) NOT NULL,
	    FROMSID VARCHAR(50),
	    FROMEXPR VARCHAR(4000) NOT NULL,
	    FROMTYPE VARCHAR(50) NOT NULL,
	    FROMRULE VARCHAR(4000),
	    FROMRES VARCHAR(4000),
	    REL VARCHAR(4) NOT NULL,
	    RELA VARCHAR(100),
	    TOID VARCHAR(50),
	    TOSID VARCHAR(50),
	    TOEXPR VARCHAR(4000),
	    TOTYPE VARCHAR(50),
	    TORULE VARCHAR(4000),
	    TORES VARCHAR(4000),
	    MAPRULE VARCHAR(4000),
	    MAPRES VARCHAR(4000),
	    MAPTYPE VARCHAR(50),
	    MAPATN VARCHAR(20),
	    MAPATV VARCHAR(4000),
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-237] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRRANK (
	    RANK INTEGER NOT NULL,
	    SAB VARCHAR(20) NOT NULL,
	    TTY VARCHAR(20) NOT NULL,
	    SUPPRESS CHAR(1) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-238] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRREL (
	    CUI1 CHAR(8) NOT NULL,
	    AUI1 VARCHAR(9),
	    STYPE1 VARCHAR(50) NOT NULL,
	    REL VARCHAR(4) NOT NULL,
	    CUI2 CHAR(8) NOT NULL,
	    AUI2 VARCHAR(9),
	    STYPE2 VARCHAR(50) NOT NULL,
	    RELA VARCHAR(100),
	    RUI VARCHAR(10) NOT NULL,
	    SRUI VARCHAR(50),
	    SAB VARCHAR(20) NOT NULL,
	    SL VARCHAR(20) NOT NULL,
	    RG VARCHAR(10),
	    DIR VARCHAR(1),
	    SUPPRESS CHAR(1) NOT NULL,
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-239] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRSAB (
	    VCUI CHAR(8),
	    RCUI CHAR(8) NOT NULL,
	    VSAB VARCHAR(20) NOT NULL,
	    RSAB VARCHAR(20) NOT NULL,
	    SON VARCHAR(3000) NOT NULL,
	    SF VARCHAR(20) NOT NULL,
	    SVER VARCHAR(20),
	    VSTART CHAR(8),
	    VEND CHAR(8),
	    IMETA VARCHAR(10) NOT NULL,
	    RMETA VARCHAR(10),
	    SLC VARCHAR(1000),
	    SCC VARCHAR(1000),
	    SRL INTEGER NOT NULL,
	    TFR INTEGER,
	    CFR INTEGER,
	    CXTY VARCHAR(50),
	    TTYL VARCHAR(300),
	    ATNL VARCHAR(1000),
	    LAT CHAR(3),
	    CENC VARCHAR(20) NOT NULL,
	    CURVER CHAR(1) NOT NULL,
	    SABIN CHAR(1) NOT NULL,
	    SSN VARCHAR(3000) NOT NULL,
	    SCIT VARCHAR(4000) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-240] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRSAT (
	    CUI CHAR(8) NOT NULL,
	    LUI VARCHAR(10),
	    SUI VARCHAR(10),
	    METAUI VARCHAR(50),
	    STYPE VARCHAR(50) NOT NULL,
	    CODE VARCHAR(50),
	    ATUI VARCHAR(11) NOT NULL,
	    SATUI VARCHAR(50),
	    ATN VARCHAR(50) NOT NULL,
	    SAB VARCHAR(20) NOT NULL,
	    ATV VARCHAR(4000),
	    SUPPRESS CHAR(1) NOT NULL,
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-241] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRSMAP (
	    MAPSETCUI CHAR(8) NOT NULL,
	    MAPSETSAB VARCHAR(20) NOT NULL,
	    MAPID VARCHAR(50) NOT NULL,
	    MAPSID VARCHAR(50),
	    FROMEXPR VARCHAR(4000) NOT NULL,
	    FROMTYPE VARCHAR(50) NOT NULL,
	    REL VARCHAR(4) NOT NULL,
	    RELA VARCHAR(100),
	    TOEXPR VARCHAR(4000),
	    TOTYPE VARCHAR(50),
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-242] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRSTY (
	    CUI CHAR(8) NOT NULL,
	    TUI CHAR(4) NOT NULL,
	    STN VARCHAR(100) NOT NULL,
	    STY VARCHAR(50) NOT NULL,
	    ATUI VARCHAR(11) NOT NULL,
	    CVF INTEGER
	)
2016-04-07 12:52:14 CEST [3782-243] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRXNS_ENG (
	    LAT CHAR(3) NOT NULL,
	    NSTR VARCHAR(3000) NOT NULL,
	    CUI CHAR(8) NOT NULL,
	    LUI VARCHAR(10) NOT NULL,
	    SUI VARCHAR(10) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-244] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRXNW_ENG (
	    LAT CHAR(3) NOT NULL,
	    NWD VARCHAR(100) NOT NULL,
	    CUI CHAR(8) NOT NULL,
	    LUI VARCHAR(10) NOT NULL,
	    SUI VARCHAR(10) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-245] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRAUI (
	    AUI1 VARCHAR(9) NOT NULL,
	    CUI1 CHAR(8) NOT NULL,
	    VER VARCHAR(10) NOT NULL,
	    REL VARCHAR(4),
	    RELA VARCHAR(100),
	    MAPREASON VARCHAR(4000) NOT NULL,
	    AUI2 VARCHAR(9) NOT NULL,
	    CUI2 CHAR(8) NOT NULL,
	    MAPIN CHAR(1) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-246] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MRXW (
	    LAT CHAR(3) NOT NULL,
	    WD VARCHAR(200) NOT NULL,
	    CUI CHAR(8) NOT NULL,
	    LUI VARCHAR(10) NOT NULL,
	    SUI VARCHAR(10) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-247] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE umls.AMBIGSUI (
	    SUI VARCHAR(10) NOT NULL,
	    CUI CHAR(8) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-248] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.AMBIGLUI (
	    LUI VARCHAR(10) NOT NULL,
	    CUI CHAR(8) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-249] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.DELETEDCUI (
	    PCUI CHAR(8) NOT NULL,
	    PSTR VARCHAR(3000) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-250] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.DELETEDLUI (
	    PLUI VARCHAR(10) NOT NULL,
	    PSTR VARCHAR(3000) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-251] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.DELETEDSUI (
	    PSUI VARCHAR(10) NOT NULL,
	    LAT CHAR(3) NOT NULL,
	    PSTR VARCHAR(3000) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-252] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MERGEDCUI (
	    PCUI CHAR(8) NOT NULL,
	    CUI CHAR(8) NOT NULL
	)
2016-04-07 12:52:14 CEST [3782-253] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE umls.MERGEDLUI (
	    PLUI VARCHAR(10),
	    LUI VARCHAR(10)
	)
2016-04-07 12:52:14 CEST [3782-254] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE OR REPLACE FUNCTION umls.createIndexes() RETURNS INTEGER AS $$
	BEGIN
	    CREATE INDEX X_MRCOC_CUI1 ON umls.MRCOC(CUI1);
	    CREATE INDEX X_MRCOC_AUI1 ON umls.MRCOC(AUI1);
	    CREATE INDEX X_MRCOC_CUI2 ON umls.MRCOC(CUI2);
	    CREATE INDEX X_MRCOC_AUI2 ON umls.MRCOC(AUI2);
	    CREATE INDEX X_MRCOC_SAB ON umls.MRCOC(SAB);
	    CREATE INDEX X_MRCONSO_CUI ON umls.MRCONSO(CUI);
	    ALTER TABLE umls.MRCONSO ADD CONSTRAINT X_MRCONSO_PK PRIMARY KEY (AUI);
	    CREATE INDEX X_MRCONSO_SUI ON umls.MRCONSO(SUI);
	    CREATE INDEX X_MRCONSO_LUI ON umls.MRCONSO(LUI);
	    CREATE INDEX X_MRCONSO_CODE ON umls.MRCONSO(CODE);
	    CREATE INDEX X_MRCONSO_SAB_TTY ON umls.MRCONSO(SAB,TTY);
	    CREATE INDEX X_MRCONSO_SCUI ON umls.MRCONSO(SCUI);
	    CREATE INDEX X_MRCONSO_SDUI ON umls.MRCONSO(SDUI);
	  
	    CREATE INDEX X_MRCXT_CUI ON umls.MRCXT(CUI);
	    CREATE INDEX X_MRCXT_AUI ON umls.MRCXT(AUI);
	    CREATE INDEX X_MRCXT_SAB ON umls.MRCXT(SAB);
	    CREATE INDEX X_MRDEF_CUI ON umls.MRDEF(CUI);
	    CREATE INDEX X_MRDEF_AUI ON umls.MRDEF(AUI);
	    ALTER TABLE umls.MRDEF ADD CONSTRAINT X_MRDEF_PK PRIMARY KEY (ATUI);
	    CREATE INDEX X_MRDEF_SAB ON umls.MRDEF(SAB);
	    CREATE INDEX X_MRHIER_CUI ON umls.MRHIER(CUI);
	    CREATE INDEX X_MRHIER_AUI ON umls.MRHIER(AUI);
	    CREATE INDEX X_MRHIER_SAB ON umls.MRHIER(SAB);
	  
	    CREATE INDEX X_MRHIER_PAUI ON umls.MRHIER(PAUI);
	    CREATE INDEX X_MRHIST_CUI ON umls.MRHIST(CUI);
	    CREATE INDEX X_MRHIST_SOURCEUI ON umls.MRHIST(SOURCEUI);
	    CREATE INDEX X_MRHIST_SAB ON umls.MRHIST(SAB);
	    ALTER TABLE umls.MRRANK ADD CONSTRAINT X_MRRANK_PK PRIMARY KEY (SAB,TTY);
	    CREATE INDEX X_MRREL_CUI1 ON umls.MRREL(CUI1);
	    CREATE INDEX X_MRREL_AUI1 ON umls.MRREL(AUI1);
	    CREATE INDEX X_MRREL_CUI2 ON umls.MRREL(CUI2);
	    CREATE INDEX X_MRREL_AUI2 ON umls.MRREL(AUI2);
	    ALTER TABLE umls.MRREL ADD CONSTRAINT X_MRREL_PK PRIMARY KEY (RUI);
	    CREATE INDEX X_MRREL_SAB ON umls.MRREL(SAB);
	    ALTER TABLE umls.MRSAB ADD CONSTRAINT X_MRSAB_PK PRIMARY KEY (VSAB);
	    CREATE INDEX X_MRSAB_RSAB ON umls.MRSAB(RSAB);
	    CREATE INDEX X_MRSAT_CUI ON umls.MRSAT(CUI);
	    CREATE INDEX X_MRSAT_METAUI ON umls.MRSAT(METAUI);
	    ALTER TABLE umls.MRSAT ADD CONSTRAINT X_MRSAT_PK PRIMARY KEY (ATUI);
	    CREATE INDEX X_MRSAT_SAB ON umls.MRSAT(SAB);
	    CREATE INDEX X_MRSAT_ATN ON umls.MRSAT(ATN);
	    CREATE INDEX X_MRSTY_CUI ON umls.MRSTY(CUI);
	    ALTER TABLE umls.MRSTY ADD CONSTRAINT X_MRSTY_PK PRIMARY KEY (ATUI);
	    CREATE INDEX X_MRSTY_STY ON umls.MRSTY(STY);
	  
	    CREATE INDEX X_MRXNW_ENG_NWD ON umls.MRXNW_ENG(NWD);
	    CREATE INDEX X_MRXW_WD ON umls.MRXW(WD);
	    CREATE INDEX X_AMBIGSUI_SUI ON umls.AMBIGSUI(SUI);
	    CREATE INDEX X_AMBIGLUI_LUI ON umls.AMBIGLUI(LUI);
	    CREATE INDEX X_MRAUI_CUI2 ON umls.MRAUI(CUI2);
	    CREATE INDEX X_MRCUI_CUI2 ON umls.MRCUI(CUI2);
	    CREATE INDEX X_MRMAP_MAPSETCUI ON umls.MRMAP(MAPSETCUI);
	    RETURN 1;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:14 CEST [3782-255] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE OR REPLACE FUNCTION umls.dropIndexes() RETURNS INTEGER AS $$
	BEGIN
	    DROP INDEX umls.X_MRCOC_CUI1;
	    DROP INDEX umls.X_MRCOC_AUI1;
	    DROP INDEX umls.X_MRCOC_CUI2;
	    DROP INDEX umls.X_MRCOC_AUI2;
	    DROP INDEX umls.X_MRCOC_SAB;
	    DROP INDEX umls.X_MRCONSO_CUI;
	    ALTER TABLE umls.MRCONSO DROP CONSTRAINT X_MRCONSO_PK;
	    DROP INDEX umls.X_MRCONSO_SUI;
	    DROP INDEX umls.X_MRCONSO_LUI;
	    DROP INDEX umls.X_MRCONSO_CODE;
	    DROP INDEX umls.X_MRCONSO_SAB_TTY;
	    DROP INDEX umls.X_MRCONSO_SCUI;
	    DROP INDEX umls.X_MRCONSO_SDUI ;
	  
	    DROP INDEX umls.X_MRCXT_CUI;
	    DROP INDEX umls.X_MRCXT_AUI;
	    DROP INDEX umls.X_MRCXT_SAB;
	    DROP INDEX umls.X_MRDEF_CUI;
	    DROP INDEX umls.X_MRDEF_AUI;
	    ALTER TABLE umls.MRDEF DROP CONSTRAINT X_MRDEF_PK;
	    DROP INDEX umls.X_MRDEF_SAB;
	    DROP INDEX umls.X_MRHIER_CUI;
	    DROP INDEX umls.X_MRHIER_AUI;
	    DROP INDEX umls.X_MRHIER_SAB;
	  
	    DROP INDEX umls.X_MRHIER_PAUI;
	    DROP INDEX umls.X_MRHIST_CUI;
	    DROP INDEX umls.X_MRHIST_SOURCEUI;
	    DROP INDEX umls.X_MRHIST_SAB;
	    ALTER TABLE umls.MRRANK DROP CONSTRAINT X_MRRANK_PK;
	    DROP INDEX umls.X_MRREL_CUI1;
	    DROP INDEX umls.X_MRREL_AUI1;
	    DROP INDEX umls.X_MRREL_CUI2;
	    DROP INDEX umls.X_MRREL_AUI2;
	    ALTER TABLE umls.MRREL DROP CONSTRAINT X_MRREL_PK;
	    DROP INDEX umls.X_MRREL_SAB;
	    ALTER TABLE umls.MRSAB DROP CONSTRAINT X_MRSAB_PK;
	    DROP INDEX umls.X_MRSAB_RSAB;
	    DROP INDEX umls.X_MRSAT_CUI;
	    DROP INDEX umls.X_MRSAT_METAUI;
	    ALTER TABLE umls.MRSAT DROP CONSTRAINT X_MRSAT_PK;
	    DROP INDEX umls.X_MRSAT_SAB;
	    DROP INDEX umls.X_MRSAT_ATN;
	    DROP INDEX umls.X_MRSTY_CUI;
	    ALTER TABLE umls.MRSTY DROP CONSTRAINT X_MRSTY_PK;
	    DROP INDEX umls.X_MRSTY_STY;
	  
	    DROP INDEX umls.X_MRXNW_ENG_NWD;
	    DROP INDEX umls.X_MRXW_WD;
	    DROP INDEX umls.X_AMBIGSUI_SUI;
	    DROP INDEX umls.X_AMBIGLUI_LUI;
	    DROP INDEX umls.X_MRAUI_CUI2;
	    DROP INDEX umls.X_MRCUI_CUI2;
	    DROP INDEX umls.X_MRMAP_MAPSETCUI;
	    RETURN 1;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:14 CEST [3782-256] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:14 CEST [3782-257] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:14.735', $2 = '0', $3 = '2016-04-07 12:52:14.735', $4 = '0', $5 = '2016-04-07 12:52:14.735', $6 = 'Search', $7 = 'umls-0.00-10.20.sql'
2016-04-07 12:52:14 CEST [3782-258] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:14 CEST [3782-259] postgres@labkey DETAIL:  parameters: $1 = 'Search', $2 = 'org.labkey.search.SearchModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:14 CEST [3782-260] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:14 CEST [3782-261] postgres@labkey DETAIL:  parameters: $1 = 'Wiki', $2 = 'org.labkey.wiki.WikiModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:14 CEST [3782-262] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA issues
2016-04-07 12:52:14 CEST [3782-263] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE issues.Issues
	(
	    _ts TIMESTAMP DEFAULT now(),
	    Container ENTITYID NOT NULL,
	    IssueId SERIAL,
	    EntityId ENTITYID NOT NULL,
	
	    Title VARCHAR(255) NOT NULL,
	    Status VARCHAR(8) NOT NULL,
	    AssignedTo USERID NOT NULL,
	    Type VARCHAR(32),
	
	    
	    Area VARCHAR(32),
	    
	
	    Priority INT NOT NULL DEFAULT 2,
	    
	    Milestone VARCHAR(32),
	    BuildFound VARCHAR(32),
	
	    ModifiedBy USERID NOT NULL,
	    Modified TIMESTAMP DEFAULT now(),
	
	    CreatedBy USERID NOT NULL,
	    Created TIMESTAMP DEFAULT now(),
	    Tag VARCHAR(32),
	
	    ResolvedBy USERID,
	    Resolved TIMESTAMP,
	    Resolution VARCHAR(32),
	    Duplicate INT,
	
	    ClosedBy USERID,
	    Closed TIMESTAMP,
	
	    Int1 INT NULL,
	    Int2 INT NULL,
	    String1 VARCHAR(200) NULL,
	    String2 VARCHAR(200) NULL,
	    NotifyList TEXT,
	    LastIndexed TIMESTAMP NULL,
	
	    CONSTRAINT PK_Issues PRIMARY KEY (IssueId)
	)
2016-04-07 12:52:14 CEST [3782-264] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Issues_AssignedTo ON issues.Issues (AssignedTo)
2016-04-07 12:52:14 CEST [3782-265] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Issues_Status ON issues.Issues (Status)
2016-04-07 12:52:15 CEST [3782-266] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE issues.Comments
	(
	    EntityId ENTITYID,
	    CommentId SERIAL,
	    IssueId INT,
	    CreatedBy USERID,
	    Created TIMESTAMP DEFAULT now(),
	    Comment TEXT,
	
	    CONSTRAINT PK_Comments PRIMARY KEY (IssueId, CommentId),
	    CONSTRAINT FK_Comments_Issues FOREIGN KEY (IssueId) REFERENCES issues.Issues(IssueId)
	)
2016-04-07 12:52:15 CEST [3782-267] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE issues.IssueKeywords
	(
	    Container ENTITYID NOT NULL,
	    Type INT NOT NULL,    
	    Keyword VARCHAR(255) NOT NULL,
	    "default" BOOLEAN NOT NULL DEFAULT '0',
	
	    CONSTRAINT PK_IssueKeywords PRIMARY KEY (Container, Type, Keyword)
	)
2016-04-07 12:52:15 CEST [3782-268] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE issues.EmailPrefs
	(
	    Container ENTITYID,
	    UserId USERID,
	    EmailOption INT4 NOT NULL,
	
	    CONSTRAINT PK_EmailPrefs PRIMARY KEY (Container, UserId),
	    CONSTRAINT FK_EmailPrefs_Containers FOREIGN KEY (Container) REFERENCES core.Containers (EntityId),
	    CONSTRAINT FK_EmailPrefs_Principals FOREIGN KEY (UserId) REFERENCES core.Principals (UserId)
	)
2016-04-07 12:52:15 CEST [3782-269] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE issues.Issues
	    ADD COLUMN String3 VARCHAR(200) NULL,
	    ADD COLUMN String4 VARCHAR(200) NULL,
	    ADD COLUMN String5 VARCHAR(200) NULL
2016-04-07 12:52:15 CEST [3782-270] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE issues.Issues
	    ALTER COLUMN Area TYPE VARCHAR(200),
	    ALTER COLUMN Type TYPE VARCHAR(200),
	    ALTER COLUMN Milestone TYPE VARCHAR(200),
	    ALTER COLUMN Resolution TYPE VARCHAR(200)
2016-04-07 12:52:15 CEST [3782-271] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE TABLE issues.CustomColumns
	(
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    Caption VARCHAR(200) NOT NULL,
	    PickList BOOLEAN NOT NULL DEFAULT '0',
	    Permission VARCHAR(300) NOT NULL,
	
	    CONSTRAINT PK_CustomColumns PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:15 CEST [3782-272] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO issues.CustomColumns
	    SELECT ObjectId AS Container, LOWER(Name), Value AS Caption,
	        STRPOS
	        (
	            (SELECT Value FROM prop.PropertyEntries pl WHERE Category = 'IssuesCaptions'
	             AND Name = 'pickListColumns' AND pe.ObjectId = pl.ObjectId), Name
	        ) > 0 AS PickList, 'org.labkey.api.security.permissions.ReadPermission' AS Permission
	    FROM prop.PropertyEntries pe WHERE Category = 'IssuesCaptions' AND Name <> 'pickListColumns'
2016-04-07 12:52:15 CEST [3782-273] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM prop.Properties WHERE Set IN (SELECT Set FROM prop.PropertySets WHERE Category = 'IssuesCaptions')
2016-04-07 12:52:15 CEST [3782-274] postgres@labkey LOG:  execute <unnamed>: 
	DELETE FROM prop.PropertySets WHERE Category = 'IssuesCaptions'
2016-04-07 12:52:15 CEST [3782-275] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE issues.issues SET type = NULL WHERE type = ''
2016-04-07 12:52:15 CEST [3782-276] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET area = NULL WHERE area = ''
2016-04-07 12:52:15 CEST [3782-277] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET milestone = NULL WHERE milestone = ''
2016-04-07 12:52:15 CEST [3782-278] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET resolution = NULL WHERE resolution = ''
2016-04-07 12:52:15 CEST [3782-279] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET string1 = NULL WHERE string1 = ''
2016-04-07 12:52:15 CEST [3782-280] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET string2 = NULL WHERE string2 = ''
2016-04-07 12:52:15 CEST [3782-281] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET string3 = NULL WHERE string3 = ''
2016-04-07 12:52:15 CEST [3782-282] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET string4 = NULL WHERE string4 = ''
2016-04-07 12:52:15 CEST [3782-283] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE issues.issues SET string5 = NULL WHERE string5 = ''
2016-04-07 12:52:15 CEST [3782-284] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:15 CEST [3782-285] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:15.402', $2 = '0', $3 = '2016-04-07 12:52:15.402', $4 = '0', $5 = '2016-04-07 12:52:15.402', $6 = 'Issues', $7 = 'issues-0.00-13.10.sql'
2016-04-07 12:52:15 CEST [3782-286] postgres@labkey LOG:  execute <unnamed>: DELETE FROM prop.properties WHERE name = 'experimentalFeature.issuesactivity'
2016-04-07 12:52:15 CEST [3782-287] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE issues.RelatedIssues
	(
	    IssueId INT,
	    RelatedIssueId INT,
	
	    CONSTRAINT PK_RelatedIssues PRIMARY KEY (IssueId, RelatedIssueId),
	    CONSTRAINT FK_RelatedIssues_Issues_IssueId FOREIGN KEY (IssueId) REFERENCES issues.Issues(IssueId),
	    CONSTRAINT FK_RelatedIssues_Issues_RelatedIssueId FOREIGN KEY (RelatedIssueId) REFERENCES issues.Issues(IssueId)
	)
2016-04-07 12:52:15 CEST [3782-288] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_RelatedIssues_IssueId ON issues.RelatedIssues (IssueId)
2016-04-07 12:52:15 CEST [3782-289] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_RelatedIssues_RelatedIssueId ON issues.RelatedIssues (RelatedIssueId)
2016-04-07 12:52:15 CEST [3782-290] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:15 CEST [3782-291] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:15.667', $2 = '0', $3 = '2016-04-07 12:52:15.667', $4 = '0', $5 = '2016-04-07 12:52:15.667', $6 = 'Issues', $7 = 'issues-14.10-14.20.sql'
2016-04-07 12:52:15 CEST [3782-292] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:15 CEST [3782-293] postgres@labkey DETAIL:  parameters: $1 = 'Issues', $2 = 'org.labkey.issue.IssuesModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:15 CEST [3782-294] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA comm
2016-04-07 12:52:15 CEST [3782-295] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE comm.Announcements
	(
	    RowId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Container ENTITYID NOT NULL,
	    Parent ENTITYID,
	    Title VARCHAR(255),
	    Expires TIMESTAMP,
	    Body TEXT,
	    RendererType VARCHAR(50) NULL,       
	    EmailList VARCHAR(1000) NULL,        
	    Status VARCHAR(50) NULL,
	    AssignedTo USERID NULL,
	    DiscussionSrcIdentifier VARCHAR(100) NULL,
	    DiscussionSrcURL VARCHAR(1000) NULL,
	    LastIndexed TIMESTAMP NULL,
	
	    CONSTRAINT PK_Announcements PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Announcements UNIQUE (Container, Parent, RowId)
	)
2016-04-07 12:52:15 CEST [3782-296] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_DiscussionSrcIdentifier ON comm.announcements(Container, DiscussionSrcIdentifier)
2016-04-07 12:52:16 CEST [3782-297] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE comm.Pages
	(
	    RowId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Owner USERID,
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Parent INT NOT NULL,
	    DisplayOrder REAL NOT NULL,
	    PageVersionId INT4 NULL,
	    ShowAttachments BOOLEAN NOT NULL DEFAULT TRUE,
	    LastIndexed TIMESTAMP NULL,
	
	    CONSTRAINT PK_Pages PRIMARY KEY (EntityId),
	    CONSTRAINT UQ_Pages UNIQUE (Container, Name)
	)
2016-04-07 12:52:16 CEST [3782-298] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE comm.PageVersions
	(
	    RowId SERIAL NOT NULL,
	    PageEntityId ENTITYID NOT NULL,
	    Created TIMESTAMP,
	    CreatedBy USERID,
	    Owner USERID,
	    Version INT4 NOT NULL,
	    Title VARCHAR(255),
	    Body TEXT,
	    RendererType VARCHAR(50) NOT NULL DEFAULT 'RADEOX',
	
	    CONSTRAINT PK_PageVersions PRIMARY KEY (RowId),
	    CONSTRAINT FK_PageVersions_Pages FOREIGN KEY (PageEntityId) REFERENCES comm.Pages(EntityId),
	    CONSTRAINT UQ_PageVersions UNIQUE (PageEntityId, Version)
	)
2016-04-07 12:52:16 CEST [3782-299] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE comm.Pages
	    ADD CONSTRAINT FK_Pages_PageVersions FOREIGN KEY (PageVersionId) REFERENCES comm.PageVersions (RowId)
2016-04-07 12:52:16 CEST [3782-300] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE comm.EmailOptions
	(
	    EmailOptionId INT4 NOT NULL,
	    EmailOption VARCHAR(50),
	
	    CONSTRAINT PK_EmailOptions PRIMARY KEY (EmailOptionId)
	)
2016-04-07 12:52:16 CEST [3782-301] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO comm.EmailOptions (EmailOptionId, EmailOption) VALUES (0, 'No Email')
2016-04-07 12:52:16 CEST [3782-302] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO comm.EmailOptions (EmailOptionId, EmailOption) VALUES (1, 'All conversations')
2016-04-07 12:52:16 CEST [3782-303] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO comm.EmailOptions (EmailOptionId, EmailOption) VALUES (2, 'My conversations')
2016-04-07 12:52:16 CEST [3782-304] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO comm.EmailOptions (EmailOptionID, EmailOption) VALUES (3, 'Broadcast only')
2016-04-07 12:52:16 CEST [3782-305] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO comm.EmailOptions (EmailOptionId, EmailOption) VALUES (257, 'Daily digest of all conversations')
2016-04-07 12:52:16 CEST [3782-306] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO comm.EmailOptions (EmailOptionId, EmailOption) VALUES (258, 'Daily digest of my conversations')
2016-04-07 12:52:16 CEST [3782-307] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE comm.EmailFormats
	(
	    EmailFormatId INT4 NOT NULL,
	    EmailFormat VARCHAR(20),
	
	    CONSTRAINT PK_EmailFormats PRIMARY KEY (EmailFormatId)
	)
2016-04-07 12:52:16 CEST [3782-308] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO comm.EmailFormats (EmailFormatId, EmailFormat) VALUES (0, 'Plain Text')
2016-04-07 12:52:16 CEST [3782-309] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO comm.EmailFormats (EmailFormatId, EmailFormat) VALUES (1, 'HTML')
2016-04-07 12:52:16 CEST [3782-310] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE comm.PageTypes
	(
	    PageTypeId INT4 NOT NULL,
	    PageType VARCHAR(20),
	
	    CONSTRAINT PK_PageTypes PRIMARY KEY (PageTypeId)
	)
2016-04-07 12:52:16 CEST [3782-311] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO comm.PageTypes (PageTypeId, PageType) VALUES (0, 'Message')
2016-04-07 12:52:16 CEST [3782-312] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO comm.PageTypes (PageTypeId, PageType) VALUES (1, 'Wiki')
2016-04-07 12:52:16 CEST [3782-313] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE comm.EmailPrefs
	(
	    Container ENTITYID,
	    UserId USERID,
	    EmailOptionId INT4 NOT NULL,
	    EmailFormatId INT4 NOT NULL,
	    PageTypeId INT4 NOT NULL,
	    LastModifiedBy USERID,
	
	    CONSTRAINT PK_EmailPrefs PRIMARY KEY (Container, UserId),
	    CONSTRAINT FK_EmailPrefs_Containers FOREIGN KEY (Container) REFERENCES core.Containers (EntityId),
	    CONSTRAINT FK_EmailPrefs_Principals FOREIGN KEY (UserId) REFERENCES core.Principals (UserId),
	    CONSTRAINT FK_EmailPrefs_EmailOptions FOREIGN KEY (EmailOptionId) REFERENCES comm.EmailOptions (EmailOptionId),
	    CONSTRAINT FK_EmailPrefs_EmailFormats FOREIGN KEY (EmailFormatId) REFERENCES comm.EmailFormats (EmailFormatId),
	    CONSTRAINT FK_EmailPrefs_PageTypes FOREIGN KEY (PageTypeId) REFERENCES comm.PageTypes (PageTypeId)
	)
2016-04-07 12:52:16 CEST [3782-314] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE comm.UserList
	(
	    MessageId INT NOT NULL,
	    UserId USERID NOT NULL,
	
	    CONSTRAINT PK_UserList PRIMARY KEY (MessageId, UserId)
	)
2016-04-07 12:52:16 CEST [3782-315] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE INDEX IX_UserList_UserId ON comm.UserList(UserId)
2016-04-07 12:52:16 CEST [3782-316] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	INSERT INTO comm.EmailOptions (EmailOptionID, EmailOption) VALUES (259, 'Daily digest of broadcast messages only')
2016-04-07 12:52:16 CEST [3782-317] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE comm.EmailOptions SET EmailOption = 'Broadcast messages only' WHERE EmailOptionID = 3
2016-04-07 12:52:16 CEST [3782-318] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE comm.EmailOptions ADD COLUMN Type VARCHAR(60) NOT NULL DEFAULT 'messages'
2016-04-07 12:52:16 CEST [3782-319] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE comm.EmailPrefs ADD COLUMN Type VARCHAR(60) NOT NULL DEFAULT 'messages'
2016-04-07 12:52:16 CEST [3782-320] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE comm.EmailPrefs DROP CONSTRAINT PK_EmailPrefs
2016-04-07 12:52:16 CEST [3782-321] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE comm.EmailPrefs ADD CONSTRAINT PK_EmailPrefs PRIMARY KEY (Container, UserId, Type)
2016-04-07 12:52:16 CEST [3782-322] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO comm.emailOptions (EmailOptionId, EmailOption, Type) VALUES
	  (512, 'No Email', 'files'),
	  (513, '15 minute digest', 'files'),
	  (514, 'Daily digest', 'files')
2016-04-07 12:52:16 CEST [3782-323] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO comm.emailPrefs (Container, UserId, EmailOptionId, EmailFormatId, PageTypeId, Type) SELECT
		ObjectId,
		UserId,
		CAST(Value AS INTEGER) + 512,
		1, 0, 'files'
		FROM prop.Properties props JOIN prop.PropertySets ps on props.set = ps.set AND category = 'EmailService.emailPrefs' WHERE name = 'FileContentEmailPref' AND value <> '-1'
2016-04-07 12:52:16 CEST [3782-324] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE prop.Properties SET Value = '512' WHERE name = 'FileContentDefaultEmailPref' AND Value = '0'
2016-04-07 12:52:16 CEST [3782-325] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE prop.Properties SET Value = '513' WHERE name = 'FileContentDefaultEmailPref' AND Value = '1'
2016-04-07 12:52:16 CEST [3782-326] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM prop.Properties WHERE name = 'FileContentEmailPref'
2016-04-07 12:52:16 CEST [3782-327] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	ALTER TABLE comm.Pages DROP CONSTRAINT UQ_Pages
2016-04-07 12:52:16 CEST [3782-328] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_Pages ON comm.Pages (Container, LOWER(Name))
2016-04-07 12:52:16 CEST [3782-329] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	UPDATE comm.EmailPrefs SET EmailOptionID = 0 WHERE EmailOptionID IN (3, 259)
2016-04-07 12:52:16 CEST [3782-330] postgres@labkey LOG:  execute <unnamed>: 
	DELETE FROM comm.EmailOptions WHERE EmailOptionID IN (3, 259)
2016-04-07 12:52:16 CEST [3782-331] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE comm.EmailPrefs ADD COLUMN SrcIdentifier VARCHAR(100)
2016-04-07 12:52:16 CEST [3782-332] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE comm.EmailPrefs SET SrcIdentifier = Container
2016-04-07 12:52:16 CEST [3782-333] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE comm.EmailPrefs ALTER COLUMN SrcIdentifier SET NOT NULL
2016-04-07 12:52:16 CEST [3782-334] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE comm.EmailPrefs DROP CONSTRAINT pk_emailprefs
2016-04-07 12:52:16 CEST [3782-335] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE comm.EmailPrefs ADD CONSTRAINT PK_EmailPrefs PRIMARY KEY (Container, UserId, Type, SrcIdentifier)
2016-04-07 12:52:17 CEST [3782-336] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE comm.Announcements SET DiscussionSrcIdentifier = Container WHERE DiscussionSrcIdentifier IS NULL AND Parent IS NULL
2016-04-07 12:52:17 CEST [3782-337] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE comm.Pages ADD COLUMN ShouldIndex BOOLEAN DEFAULT TRUE
2016-04-07 12:52:17 CEST [3782-338] postgres@labkey LOG:  execute <unnamed>: 
	 UPDATE comm.Pages SET ShouldIndex=TRUE
2016-04-07 12:52:17 CEST [3782-339] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:17 CEST [3782-340] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:17.223', $2 = '0', $3 = '2016-04-07 12:52:17.223', $4 = '0', $5 = '2016-04-07 12:52:17.223', $6 = 'Announcements', $7 = 'comm-0.00-12.20.sql'
2016-04-07 12:52:17 CEST [3782-341] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:17 CEST [3782-342] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:17.28', $2 = '0', $3 = '2016-04-07 12:52:17.28', $4 = '0', $5 = '2016-04-07 12:52:17.28', $6 = 'Announcements', $7 = 'comm-13.30-14.10.sql'
2016-04-07 12:52:17 CEST [3782-343] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE comm.RSSFeeds
	(
	    RowId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Container ENTITYID NOT NULL,
	    FeedName VARCHAR(250) NULL,
	    FeedURL VARCHAR(1000) NOT NULL,
	    LastRead TIMESTAMP NULL,
	    Content TEXT,
	
	    CONSTRAINT PK_RSSFeeds PRIMARY KEY (RowId),
	    CONSTRAINT UQ_RSSFeeds UNIQUE (Container, RowId)
	)
2016-04-07 12:52:17 CEST [3782-344] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE comm.announcements DROP COLUMN EmailList
2016-04-07 12:52:17 CEST [3782-345] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:17 CEST [3782-346] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:17.441', $2 = '0', $3 = '2016-04-07 12:52:17.441', $4 = '0', $5 = '2016-04-07 12:52:17.441', $6 = 'Announcements', $7 = 'comm-14.10-14.20.sql'
2016-04-07 12:52:17 CEST [3782-347] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE comm.Tours
	(
	  RowId SERIAL,
	  Title VARCHAR(500) NOT NULL,
	  Description VARCHAR(4000),
	  Container ENTITYID NOT NULL,
	  EntityId ENTITYID NOT NULL,
	  Created TIMESTAMP,
	  CreatedBy USERID,
	  Modified TIMESTAMP,
	  ModifiedBy USERID,
	  Json VARCHAR,
	  Mode INT NOT NULL DEFAULT 0,
	
	  CONSTRAINT PK_ToursId PRIMARY KEY (RowId)
	)
2016-04-07 12:52:17 CEST [3782-348] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:17 CEST [3782-349] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:17.586', $2 = '0', $3 = '2016-04-07 12:52:17.586', $4 = '0', $5 = '2016-04-07 12:52:17.586', $6 = 'Announcements', $7 = 'comm-14.30-15.10.sql'
2016-04-07 12:52:17 CEST [3782-350] postgres@labkey LOG:  execute <unnamed>: CREATE VIEW comm.Threads AS
	    SELECT y.RowId, y.EntityId, y.Container, y.Body, y.RendererType, PropsId AS LatestId, props.Title, props.AssignedTo,
	        props.Status, props.Expires, props.CreatedBy AS ResponseCreatedBy, props.Created AS ResponseCreated,
	        y.DiscussionSrcIdentifier, y.DiscussionSrcURL, y.CreatedBy, y.Created,
	        y.modified, y.lastIndexed,
	        (SELECT COUNT(*) FROM comm.Announcements WHERE Parent = y.EntityId) AS ResponseCount FROM
	    (
	        SELECT *, CASE WHEN LastResponseId IS NULL THEN x.RowId ELSE LastResponseId END AS PropsId FROM
	        (
	            SELECT *, (SELECT MAX(RowId) FROM comm.Announcements response WHERE response.Parent = message.EntityId) AS LastResponseId
	            FROM comm.Announcements message
	            WHERE Parent IS NULL
	        ) x
	    ) y LEFT OUTER JOIN comm.Announcements props ON props.RowId = PropsId
2016-04-07 12:52:17 CEST [3782-351] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE VIEW comm.PagePaths AS
	  WITH RECURSIVE pages_cte AS (
	    
	    SELECT
	      p.RowId, p.EntityId,
	      p.CreatedBy, p.Created,
	      p.ModifiedBy, p.Modified,
	      p.Owner, p.Container,
	      p.Name, p.Parent,
	      p.DisplayOrder, p.PageVersionId,
	      p.ShowAttachments, p.LastIndexed,
	      p.ShouldIndex,
	      CAST(p.Name AS VARCHAR(2000)) AS Path,
	      CAST(p.Name AS VARCHAR(2000)) AS PathParts,
	      0 AS Depth
	    FROM comm.Pages p
	      WHERE p.Parent = -1
	
	    UNION ALL
	
	    
	    SELECT
	      q.RowId, q.EntityId,
	      q.CreatedBy, q.Created,
	      q.ModifiedBy, q.Modified,
	      q.Owner, q.Container,
	      q.Name, q.Parent,
	      q.DisplayOrder, q.PageVersionId,
	      q.ShowAttachments, q.LastIndexed,
	      q.ShouldIndex,
	      CAST(previous.Path || '/' || q.Name AS VARCHAR(2000)) AS Path,
	      CAST(previous.PathParts || '{@~^' || q.Name AS VARCHAR(2000)) AS PathParts,
	      previous.Depth + 1 AS Depth
	    FROM comm.Pages q
	    JOIN pages_cte AS previous ON q.Parent = previous.RowId
	  )
	  SELECT * from pages_cte
2016-04-07 12:52:17 CEST [3782-352] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE VIEW comm.CurrentWikiVersions AS
	    SELECT pv.RowId, p.Container, p.Name, p.Path, p.PathParts, p.Depth, pv.Title, pv.Version, pv.Body, p.CreatedBy, p.Created, p.ModifiedBy, p.Modified
	        FROM comm.PagePaths p INNER JOIN comm.PageVersions pv ON p.PageVersionId = pv.RowId
2016-04-07 12:52:17 CEST [3782-353] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE VIEW comm.AllWikiVersions AS
	    SELECT pv.RowId, p.Container, p.Name, p.Path, p.PathParts, p.Depth, pv.Title, pv.Version, pv.Body, p.CreatedBy, p.Created, pv.CreatedBy AS ModifiedBy, pv.Created AS Modified
	        FROM comm.PageVersions pv INNER JOIN comm.PagePaths p ON pv.PageEntityId = p.EntityId
2016-04-07 12:52:17 CEST [3782-354] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.containers
		(_ts, entityid, created, parent, name, sortorder, title, type)
		VALUES ($1, $2, $3, $4, $5, $6, NULL, $7)
	RETURNING rowid
2016-04-07 12:52:17 CEST [3782-355] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:17.662', $2 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $3 = '2016-04-07 12:52:17.662', $4 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $5 = 'support', $6 = '0', $7 = 'normal'
2016-04-07 12:52:17 CEST [3782-356] postgres@labkey LOG:  execute S_44/C_169: INSERT INTO core.policies
		(resourceid, resourceclass, container, modified)
		VALUES ($1, $2, $3, $4)
2016-04-07 12:52:17 CEST [3782-357] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:17.762'
2016-04-07 12:52:17 CEST [3782-358] postgres@labkey LOG:  execute S_46/C_170: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:17 CEST [3782-359] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:17 CEST [3782-360] postgres@labkey LOG:  execute S_48/C_171: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:17 CEST [3782-361] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = '-3', $3 = 'org.labkey.api.security.roles.NoPermissionsRole'
2016-04-07 12:52:17 CEST [3782-362] postgres@labkey LOG:  execute S_69/C_187: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:52:17 CEST [3782-363] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'defaultModules', $3 = '0', $4 = 'None'
2016-04-07 12:52:17 CEST [3782-364] postgres@labkey LOG:  execute S_69/C_192: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:52:17 CEST [3782-365] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'defaultModules', $3 = '0', $4 = 'None'
2016-04-07 12:52:17 CEST [3782-366] postgres@labkey LOG:  execute S_69/C_196: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:52:17 CEST [3782-367] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'activeModules', $3 = '0', $4 = 'None'
2016-04-07 12:52:17 CEST [3782-368] postgres@labkey LOG:  execute S_79/C_205: UPDATE core.policies
		SET resourceid=$1, resourceclass=$2, container=$3, modified=$4
		WHERE resourceid=$5
2016-04-07 12:52:17 CEST [3782-369] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'org.labkey.api.data.Container', $3 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $4 = '2016-04-07 12:52:17.915', $5 = 'aeef676b-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:17 CEST [3782-370] postgres@labkey LOG:  execute S_46/C_206: DELETE FROM core.roleassignments
		WHERE (resourceid = $1)
2016-04-07 12:52:17 CEST [3782-371] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:52:17 CEST [3782-372] postgres@labkey LOG:  execute S_48/C_207: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:17 CEST [3782-373] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = '-3', $3 = 'org.labkey.api.security.roles.ReaderRole'
2016-04-07 12:52:17 CEST [3782-374] postgres@labkey LOG:  execute S_48/C_208: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:17 CEST [3782-375] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = '-2', $3 = 'org.labkey.api.security.roles.AuthorRole'
2016-04-07 12:52:17 CEST [3782-376] postgres@labkey LOG:  execute S_48/C_209: INSERT INTO core.roleassignments
		(resourceid, userid, role)
		VALUES ($1, $2, $3)
2016-04-07 12:52:17 CEST [3782-377] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = '-1', $3 = 'org.labkey.api.security.roles.SiteAdminRole'
2016-04-07 12:52:17 CEST [3782-378] postgres@labkey LOG:  execute S_211/C_212: INSERT INTO core.portalpages
		(entityid, container, pageid, index, caption, hidden, type, action, targetfolder, permanent, properties)
		VALUES ($1, $2, $3, $4, NULL, $5, $6, NULL, NULL, $7, NULL)
2016-04-07 12:52:17 CEST [3782-379] postgres@labkey DETAIL:  parameters: $1 = 'aeef676c-dedc-1033-b8fa-6788989ded56', $2 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $3 = 'portal.default', $4 = '1', $5 = 'f', $6 = 'portal', $7 = 'f'
2016-04-07 12:52:17 CEST [3782-380] postgres@labkey LOG:  execute S_213/C_214: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 12:52:17 CEST [3782-381] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '1', $4 = 'Messages', $5 = '!content', $6 = 'f'
2016-04-07 12:52:17 CEST [3782-382] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:17 CEST [3782-383] postgres@labkey DETAIL:  parameters: $1 = 'Announcements', $2 = 'org.labkey.announcements.AnnouncementModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:17 CEST [3782-384] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:17 CEST [3782-385] postgres@labkey DETAIL:  parameters: $1 = 'BigIron', $2 = 'org.labkey.bigiron.BigIronModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:18 CEST [3782-386] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA pipeline
2016-04-07 12:52:18 CEST [3782-387] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE pipeline.StatusFiles
	(
	    _ts TIMESTAMP DEFAULT now(),
	    CreatedBy USERID,
	    Created TIMESTAMP DEFAULT now(),
	    ModifiedBy USERID,
	    Modified TIMESTAMP DEFAULT now(),
	
	    Container ENTITYID NOT NULL,
	    EntityId ENTITYID NOT NULL,
	
	    RowId SERIAL,
	    Status VARCHAR(100),
	    Info VARCHAR(1024),
	    FilePath VARCHAR(1024),
	    Email VARCHAR(255),
	
	    Description VARCHAR(255),
	    DataUrl VARCHAR(1024),
	    Job VARCHAR(36),
	    Provider VARCHAR(255),
	
	    HadError BOOLEAN NOT NULL DEFAULT FALSE,
	    JobParent VARCHAR(36),
	    JobStore TEXT,
	    ActiveTaskId VARCHAR(255),
	
	    CONSTRAINT PK_StatusFiles PRIMARY KEY (RowId),
	    CONSTRAINT FK_StatusFiles_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId),
	    CONSTRAINT UQ_StatusFiles_FilePath UNIQUE (FilePath),
	    CONSTRAINT UQ_StatusFiles_Job UNIQUE (Job),
	    CONSTRAINT FK_StatusFiles_JobParent FOREIGN KEY (JobParent) REFERENCES pipeline.StatusFiles(Job)
	)
2016-04-07 12:52:18 CEST [3782-388] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_StatusFiles_Container_JobParent ON pipeline.StatusFiles (Container, JobParent)
2016-04-07 12:52:18 CEST [3782-389] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE pipeline.PipelineRoots
	(
	    _ts TIMESTAMP DEFAULT now(),
	    CreatedBy USERID,
	    Created TIMESTAMP DEFAULT now(),
	    ModifiedBy USERID,
	    Modified TIMESTAMP DEFAULT now(),
	
	    Container ENTITYID NOT NULL,
	    EntityId ENTITYID NOT NULL,
	
	    PipelineRootId SERIAL,
	    Path VARCHAR(300) NOT NULL,
	    Providers VARCHAR(100),
	
	    KeyBytes BYTEA,
	    CertBytes BYTEA,
	    KeyPassword VARCHAR(32),
	    Type VARCHAR(255) NOT NULL DEFAULT 'PRIMARY',
	    Searchable BOOLEAN NOT NULL DEFAULT FALSE,
	
	    CONSTRAINT PK_PipelineRoots PRIMARY KEY (PipelineRootId)
	)
2016-04-07 12:52:18 CEST [3782-390] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE pipeline.PipelineRoots
	    ADD SupplementalPath VARCHAR(300)
2016-04-07 12:52:18 CEST [3782-391] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:18 CEST [3782-392] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:18.324', $2 = '0', $3 = '2016-04-07 12:52:18.324', $4 = '0', $5 = '2016-04-07 12:52:18.324', $6 = 'Pipeline', $7 = 'pipeline-0.00-10.30.sql'
2016-04-07 12:52:18 CEST [3782-393] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE pipeline.StatusFiles ADD ActiveHostName VARCHAR(255) NULL
2016-04-07 12:52:18 CEST [3782-394] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:18 CEST [3782-395] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:18.345', $2 = '0', $3 = '2016-04-07 12:52:18.345', $4 = '0', $5 = '2016-04-07 12:52:18.345', $6 = 'Pipeline', $7 = 'pipeline-14.10-14.20.sql'
2016-04-07 12:52:18 CEST [3782-396] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE pipeline.PipelineRoots DROP COLUMN KeyBytes
2016-04-07 12:52:18 CEST [3782-397] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE pipeline.PipelineRoots DROP COLUMN CertBytes
2016-04-07 12:52:18 CEST [3782-398] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE pipeline.PipelineRoots DROP COLUMN KeyPassword
2016-04-07 12:52:18 CEST [3782-399] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	DELETE FROM pipeline.PipelineRoots WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:18 CEST [3782-400] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE pipeline.PipelineRoots ADD
	    CONSTRAINT FK_PipelineRoots_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:18 CEST [3782-401] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE pipeline.PipelineRoots ADD
	    CONSTRAINT UQ_PipelineRoots_Container_Type UNIQUE (Container, Type)
2016-04-07 12:52:18 CEST [3782-402] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:18 CEST [3782-403] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:18.434', $2 = '0', $3 = '2016-04-07 12:52:18.434', $4 = '0', $5 = '2016-04-07 12:52:18.434', $6 = 'Pipeline', $7 = 'pipeline-15.30-16.10.sql'
2016-04-07 12:52:18 CEST [3782-404] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:18 CEST [3782-405] postgres@labkey DETAIL:  parameters: $1 = 'Pipeline', $2 = 'org.labkey.pipeline.PipelineModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:18 CEST [3782-406] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA exp
2016-04-07 12:52:18 CEST [3782-407] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE DOMAIN public.LSIDType AS VARCHAR(300)
2016-04-07 12:52:18 CEST [3782-408] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.Protocol
	(
	    RowId SERIAL NOT NULL,
	    LSID LSIDtype NOT NULL,
	    Name VARCHAR (200) NULL,
	    ProtocolDescription TEXT NULL,
	    ApplicationType VARCHAR (50) NULL,
	    MaxInputMaterialPerInstance INT NULL,
	    MaxInputDataPerInstance INT NULL,
	    OutputMaterialPerInstance INT NULL,
	    OutputDataPerInstance INT NULL,
	    OutputMaterialType VARCHAR (50) NULL,
	    OutputDataType VARCHAR (50) NULL,
	    Instrument VARCHAR (200) NULL,
	    Software VARCHAR (200) NULL,
	    ContactId VARCHAR (100) NULL,
	    Created TIMESTAMP NULL,
	    EntityId ENTITYID NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	    Container ENTITYID NOT NULL,
	
	    CONSTRAINT PK_Protocol PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Protocol_LSID UNIQUE (LSID)
	)
2016-04-07 12:52:18 CEST [3782-409] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.Experiment
	(
	    RowId SERIAL NOT NULL,
	    LSID LSIDtype NOT NULL,
	    Name VARCHAR (200) NULL,
	    Hypothesis TEXT NULL,
	    ContactId VARCHAR (100) NULL,
	    ExperimentDescriptionURL VARCHAR (200) NULL,
	    Comments TEXT NULL,
	    EntityId ENTITYID NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	    Container ENTITYID NOT NULL,
	    Hidden BOOLEAN NOT NULL DEFAULT '0',
	    BatchProtocolId INT NULL,
	
	    CONSTRAINT PK_Experiment PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Experiment_LSID UNIQUE (LSID),
	    CONSTRAINT FK_Experiment_BatchProtocolId FOREIGN KEY (BatchProtocolId) REFERENCES exp.Protocol (RowId)
	)
2016-04-07 12:52:18 CEST [3782-410] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Experiment_Container ON exp.Experiment(Container)
2016-04-07 12:52:18 CEST [3782-411] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Experiment_BatchProtocolId ON exp.Experiment(BatchProtocolId)
2016-04-07 12:52:18 CEST [3782-412] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ExperimentRun
	(
	    RowId SERIAL NOT NULL,
	    LSID LSIDtype NOT NULL,
	    Name VARCHAR (100) NULL,
	    ProtocolLSID LSIDtype NOT NULL,
	    Comments TEXT NULL,
	    EntityId ENTITYID NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	    Container ENTITYID NOT NULL,
	    FilePathRoot VARCHAR(500),
	
	    CONSTRAINT PK_ExperimentRun PRIMARY KEY (RowId),
	    CONSTRAINT UQ_ExperimentRun_LSID UNIQUE (LSID),
	    CONSTRAINT FK_ExperimentRun_Protocol FOREIGN KEY (ProtocolLSID) REFERENCES exp.Protocol (LSID)
	)
2016-04-07 12:52:18 CEST [3782-413] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_CL_ExperimentRun_Container ON exp.ExperimentRun(Container)
2016-04-07 12:52:18 CEST [3782-414] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ExperimentRun_ProtocolLSID ON exp.ExperimentRun(ProtocolLSID)
2016-04-07 12:52:18 CEST [3782-415] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ProtocolApplication
	(
	    RowId SERIAL NOT NULL,
	    LSID LSIDtype NOT NULL,
	    Name VARCHAR (200) NULL,
	    CpasType VARCHAR (50) NULL,
	    ProtocolLSID LSIDtype NOT NULL,
	    ActivityDate TIMESTAMP NULL,
	    Comments VARCHAR (2000) NULL,
	    RunId INT NOT NULL,
	    ActionSequence INT NOT NULL,
	
	    CONSTRAINT PK_ProtocolApplication PRIMARY KEY (RowId),
	    CONSTRAINT UQ_ProtocolApp_LSID UNIQUE (LSID),
	    CONSTRAINT FK_ProtocolApplication_ExperimentRun FOREIGN KEY (RunId) REFERENCES exp.ExperimentRun (RowId),
	    CONSTRAINT FK_ProtocolApplication_Protocol FOREIGN KEY (ProtocolLSID) REFERENCES exp.Protocol (LSID)
	)
2016-04-07 12:52:19 CEST [3782-416] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_CL_ProtocolApplication_RunId ON exp.ProtocolApplication(RunId)
2016-04-07 12:52:19 CEST [3782-417] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_ProtocolApplication_ProtocolLSID ON exp.ProtocolApplication(ProtocolLSID)
2016-04-07 12:52:19 CEST [3782-418] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.Data
	(
	    RowId SERIAL NOT NULL,
	    LSID LSIDtype NOT NULL,
	    Name VARCHAR (200) NULL,
	    CpasType VARCHAR (50) NULL,
	    SourceApplicationId INT NULL,
	    DataFileUrl VARCHAR (400) NULL,
	    RunId INT NULL,
	    Container ENTITYID NOT NULL,
	    Created TIMESTAMP NOT NULL,
	    CreatedBy INT,
	    Modified TIMESTAMP,
	    ModifiedBy INT,
	
	    CONSTRAINT PK_Data PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Data_LSID UNIQUE (LSID),
	    CONSTRAINT FK_Data_ExperimentRun FOREIGN KEY (RunId) REFERENCES exp.ExperimentRun (RowId),
	    CONSTRAINT FK_Data_ProtocolApplication FOREIGN KEY (SourceApplicationID) REFERENCES exp.ProtocolApplication (RowId),
	    CONSTRAINT FK_Data_Containers FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
	)
2016-04-07 12:52:19 CEST [3782-419] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_CL_Data_RunId ON exp.Data(RunId)
2016-04-07 12:52:19 CEST [3782-420] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Data_Container ON exp.Data(Container)
2016-04-07 12:52:19 CEST [3782-421] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Data_SourceApplicationId ON exp.Data(SourceApplicationId)
2016-04-07 12:52:19 CEST [3782-422] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Data_DataFileUrl ON exp.Data(DataFileUrl)
2016-04-07 12:52:19 CEST [3782-423] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	CREATE TABLE exp.PropertyDescriptor
	(
	    PropertyId SERIAL NOT NULL,
	    PropertyURI VARCHAR (200) NOT NULL,
	    OntologyURI VARCHAR (200) NULL,
	    Name VARCHAR (200) NULL,
	    Description TEXT NULL,
	    RangeURI VARCHAR (200) NOT NULL CONSTRAINT DF_PropertyDescriptor_Range DEFAULT ('http://www.w3.org/2001/XMLSchema#string'),
	    ConceptURI VARCHAR (200) NULL,
	    Label VARCHAR (200) NULL,
	    SearchTerms VARCHAR (1000) NULL,
	    SemanticType VARCHAR (200) NULL,
	    Format VARCHAR (50) NULL,
	    Container ENTITYID NOT NULL,
	    Project ENTITYID NOT NULL,
	
	    LookupContainer ENTITYID,
	    LookupSchema VARCHAR(50),
	    LookupQuery VARCHAR(50),
	    DefaultValueType VARCHAR(50),
	    Hidden BOOLEAN NOT NULL DEFAULT '0',
	    MvEnabled BOOLEAN NOT NULL DEFAULT '0',
	    ImportAliases VARCHAR(200),
	    URL VARCHAR(200),
	    ShownInInsertView BOOLEAN NOT NULL DEFAULT '1',
	    ShownInUpdateView BOOLEAN NOT NULL DEFAULT '1',
	    ShownInDetailsView BOOLEAN NOT NULL DEFAULT '1',
	    Dimension BOOLEAN NOT NULL DEFAULT FALSE,
	    Measure BOOLEAN NOT NULL DEFAULT FALSE,
	
	    CONSTRAINT PK_PropertyDescriptor PRIMARY KEY (PropertyId),
	    CONSTRAINT UQ_PropertyDescriptor UNIQUE (Project, PropertyURI),
	    CONSTRAINT UQ_PropertyURIContainer UNIQUE (PropertyURI, Container)
	)
2016-04-07 12:52:19 CEST [3782-424] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PropertyDescriptor_Container ON exp.PropertyDescriptor(Container)
2016-04-07 12:52:19 CEST [3782-425] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.DataInput
	(
	    DataId INT NOT NULL,
	    TargetApplicationId INT NOT NULL,
	    Role VARCHAR(50) NOT NULL,
	
	    CONSTRAINT PK_DataInput PRIMARY KEY (DataId, TargetApplicationId),
	    CONSTRAINT FK_DataInputData_Data FOREIGN KEY (DataId) REFERENCES exp.Data (RowId),
	    CONSTRAINT FK_DataInput_ProtocolApplication FOREIGN KEY (TargetApplicationId) REFERENCES exp.ProtocolApplication (RowId)
	)
2016-04-07 12:52:19 CEST [3782-426] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_DataInput_TargetApplicationId ON exp.DataInput(TargetApplicationId)
2016-04-07 12:52:19 CEST [3782-427] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_DataInput_Role ON exp.DataInput(Role)
2016-04-07 12:52:19 CEST [3782-428] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.Material
	(
	    RowId SERIAL NOT NULL,
	    LSID LSIDtype NOT NULL,
	    Name VARCHAR (200) NULL,
	    CpasType VARCHAR (200) NULL,
	    SourceApplicationId INT NULL,
	    RunId INT NULL,
	    Created TIMESTAMP NOT NULL,
	    Container ENTITYID NOT NULL,
	
	    CreatedBy INT,
	    ModifiedBy INT,
	    Modified TIMESTAMP,
	    LastIndexed TIMESTAMP,
	
	    CONSTRAINT PK_Material PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Material_LSID UNIQUE (LSID),
	    CONSTRAINT FK_Material_ExperimentRun FOREIGN KEY(RunId) REFERENCES exp.ExperimentRun (RowId),
	    CONSTRAINT FK_Material_ProtocolApplication FOREIGN KEY (SourceApplicationID) REFERENCES exp.ProtocolApplication (RowId),
	    CONSTRAINT FK_Material_Containers FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
	)
2016-04-07 12:52:19 CEST [3782-429] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_CL_Material_RunId ON exp.Material(RunId)
2016-04-07 12:52:19 CEST [3782-430] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Material_Container ON exp.Material(Container)
2016-04-07 12:52:19 CEST [3782-431] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Material_SourceApplicationId ON exp.Material(SourceApplicationId)
2016-04-07 12:52:19 CEST [3782-432] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Material_CpasType ON exp.Material(CpasType)
2016-04-07 12:52:20 CEST [3782-433] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Material_LSID ON exp.Material(LSID)
2016-04-07 12:52:20 CEST [3782-434] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.MaterialInput
	(
	    MaterialId INT NOT NULL,
	    TargetApplicationId INT NOT NULL,
	    Role VARCHAR(50) NOT NULL,
	
	    CONSTRAINT PK_MaterialInput PRIMARY KEY (MaterialId, TargetApplicationId),
	    CONSTRAINT FK_MaterialInput_Material FOREIGN KEY (MaterialId) REFERENCES exp.Material (RowId),
	    CONSTRAINT FK_MaterialInput_ProtocolApplication FOREIGN KEY (TargetApplicationId) REFERENCES exp.ProtocolApplication (RowId)
	)
2016-04-07 12:52:20 CEST [3782-435] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_MaterialInput_TargetApplicationId ON exp.MaterialInput(TargetApplicationId)
2016-04-07 12:52:20 CEST [3782-436] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_MaterialInput_Role ON exp.MaterialInput(Role)
2016-04-07 12:52:20 CEST [3782-437] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.MaterialSource
	(
	    RowId SERIAL NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    LSID LSIDtype NOT NULL,
	    MaterialLSIDPrefix VARCHAR(200) NULL,
	    Description TEXT NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	    Container ENTITYID NOT NULL,
	
	    IdCol1 VARCHAR(200) NULL,
	    IdCol2 VARCHAR(200) NULL,
	    IdCol3 VARCHAR(200) NULL,
	    ParentCol VARCHAR(200) NULL,
	
	    CONSTRAINT PK_MaterialSource PRIMARY KEY (RowId),
	    CONSTRAINT UQ_MaterialSource_LSID UNIQUE (LSID)
	)
2016-04-07 12:52:20 CEST [3782-438] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_MaterialSource_Container ON exp.MaterialSource(Container)
2016-04-07 12:52:20 CEST [3782-439] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.Object
	(
	    ObjectId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    ObjectURI LSIDType NOT NULL,
	    OwnerObjectId INT NULL,
	
	    CONSTRAINT PK_Object PRIMARY KEY (ObjectId),
	    CONSTRAINT FK_Object_Object FOREIGN KEY (OwnerObjectId) REFERENCES exp.Object (ObjectId),
	    CONSTRAINT UQ_Object UNIQUE (ObjectURI),
	    CONSTRAINT FK_Object_Containers FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
	    
	)
2016-04-07 12:52:20 CEST [3782-440] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Object_ContainerOwnerObjectId ON exp.Object (Container, OwnerObjectId, ObjectId)
2016-04-07 12:52:20 CEST [3782-441] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Object_OwnerObjectId ON exp.Object(OwnerObjectId)
2016-04-07 12:52:20 CEST [3782-442] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ObjectProperty
	(
	    ObjectId INT NOT NULL,  
	    PropertyId INT NOT NULL, 
	    TypeTag CHAR(1) NOT NULL, 
	    FloatValue FLOAT NULL,
	    DateTimeValue TIMESTAMP NULL,
	    StringValue VARCHAR(4000) NULL,
	    MvIndicator VARCHAR(50) NULL,
	
	    CONSTRAINT PK_ObjectProperty PRIMARY KEY (ObjectId, PropertyId),
	    CONSTRAINT FK_ObjectProperty_Object FOREIGN KEY (ObjectId) REFERENCES exp.Object (ObjectId),
	    CONSTRAINT FK_ObjectProperty_PropertyDescriptor FOREIGN KEY (PropertyId) REFERENCES exp.PropertyDescriptor (PropertyId)
	)
2016-04-07 12:52:20 CEST [3782-443] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_ObjectProperty_PropertyId ON exp.ObjectProperty(PropertyId)
2016-04-07 12:52:20 CEST [3782-444] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ProtocolAction
	(
	    RowId SERIAL NOT NULL,
	    ParentProtocolId INT NOT NULL,
	    ChildProtocolId INT NOT NULL,
	    Sequence INT NOT NULL,
	
	    CONSTRAINT PK_ProtocolAction PRIMARY KEY (RowId),
	    CONSTRAINT UQ_ProtocolAction UNIQUE (ParentProtocolId, ChildProtocolId, Sequence),
	    CONSTRAINT FK_ProtocolAction_Parent_Protocol FOREIGN KEY (ParentProtocolId) REFERENCES exp.Protocol (RowId),
	    CONSTRAINT FK_ProtocolAction_Child_Protocol FOREIGN KEY (ChildProtocolId) REFERENCES exp.Protocol (RowId)
	)
2016-04-07 12:52:20 CEST [3782-445] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ProtocolAction_ChildProtocolId ON exp.ProtocolAction(ChildProtocolId)
2016-04-07 12:52:20 CEST [3782-446] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ProtocolActionPredecessor
	(
	    ActionId INT NOT NULL,
	    PredecessorId INT NOT NULL,
	
	    CONSTRAINT PK_ActionPredecessor PRIMARY KEY (ActionId, PredecessorId),
	    CONSTRAINT FK_ActionPredecessor_Action_ProtocolAction FOREIGN KEY (ActionId) REFERENCES exp.ProtocolAction (RowId),
	    CONSTRAINT FK_ActionPredecessor_Predecessor_ProtocolAction FOREIGN KEY (PredecessorId) REFERENCES exp.ProtocolAction (RowId)
	)
2016-04-07 12:52:20 CEST [3782-447] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ProtocolActionPredecessor_PredecessorId ON exp.ProtocolActionPredecessor(PredecessorId)
2016-04-07 12:52:20 CEST [3782-448] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ProtocolParameter
	(
	    RowId SERIAL NOT NULL,
	    ProtocolId INT NOT NULL,
	    Name VARCHAR (200) NULL,
	    ValueType VARCHAR(50) NULL,
	    StringValue VARCHAR (4000) NULL,
	    IntegerValue INT NULL,
	    DoubleValue FLOAT NULL,
	    DateTimeValue TIMESTAMP NULL,
	    OntologyEntryURI VARCHAR (200) NULL,
	
	    CONSTRAINT PK_ProtocolParameter PRIMARY KEY (RowId),
	    CONSTRAINT UQ_ProtocolParameter_Ord UNIQUE (ProtocolId, Name),
	    CONSTRAINT FK_ProtocolParameter_Protocol FOREIGN KEY (ProtocolId) REFERENCES exp.Protocol (RowId)
	)
2016-04-07 12:52:21 CEST [3782-449] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ProtocolParameter_ProtocolId ON exp.ProtocolParameter(ProtocolId)
2016-04-07 12:52:21 CEST [3782-450] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ProtocolApplicationParameter
	(
	    RowId SERIAL NOT NULL,
	    ProtocolApplicationId INT NOT NULL,
	    Name VARCHAR (200) NULL,
	    ValueType VARCHAR(50) NULL,
	    StringValue TEXT NULL,
	    IntegerValue INT NULL,
	    DoubleValue FLOAT NULL,
	    DateTimeValue TIMESTAMP NULL,
	    OntologyEntryURI VARCHAR (200) NULL,
	
	    CONSTRAINT PK_ProtocolAppParam PRIMARY KEY (RowId),
	    CONSTRAINT UQ_ProtocolAppParam_Ord UNIQUE (ProtocolApplicationId, Name),
	    CONSTRAINT FK_ProtocolAppParam_ProtocolApp FOREIGN KEY (ProtocolApplicationId) REFERENCES exp.ProtocolApplication (RowId)
	)
2016-04-07 12:52:21 CEST [3782-451] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ProtocolApplicationParameter_AppId ON exp.ProtocolApplicationParameter(ProtocolApplicationId)
2016-04-07 12:52:21 CEST [3782-452] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.DomainDescriptor
	(
	    DomainId SERIAL NOT NULL,
	    Name VARCHAR (200) NULL,
	    DomainURI VARCHAR (200) NOT NULL,
	    Description text NULL,
	    Container ENTITYID NOT NULL,
	    Project ENTITYID NOT NULL,
	    StorageTableName VARCHAR(100),
	    StorageSchemaName VARCHAR(100),
	
	    CONSTRAINT PK_DomainDescriptor PRIMARY KEY (DomainId),
	    CONSTRAINT UQ_DomainDescriptor UNIQUE (Project, DomainURI),
	    CONSTRAINT UQ_DomainURIContainer UNIQUE (DomainURI, Container)
	)
2016-04-07 12:52:21 CEST [3782-453] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_DomainDescriptor_Container ON exp.DomainDescriptor(Container)
2016-04-07 12:52:21 CEST [3782-454] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.PropertyDomain
	(
	    PropertyId INT NOT NULL,
	    DomainId INT NOT NULL,
	    Required BOOLEAN NOT NULL DEFAULT '0',
	    SortOrder INT NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_PropertyDomain PRIMARY KEY (PropertyId, DomainId),
	    CONSTRAINT FK_PropertyDomain_Property FOREIGN KEY (PropertyId) REFERENCES exp.PropertyDescriptor (PropertyId),
	    CONSTRAINT FK_PropertyDomain_DomainDescriptor FOREIGN KEY (DomainId) REFERENCES exp.DomainDescriptor (DomainId)
	)
2016-04-07 12:52:21 CEST [3782-455] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PropertyDomain_DomainId ON exp.PropertyDomain(DomainID)
2016-04-07 12:52:21 CEST [3782-456] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.RunList
	(
	    ExperimentId INT NOT NULL,
	    ExperimentRunId INT NOT NULL,
	
	    CONSTRAINT PK_RunList PRIMARY KEY (ExperimentId, ExperimentRunId),
	    CONSTRAINT FK_RunList_ExperimentId FOREIGN KEY (ExperimentId) REFERENCES exp.Experiment(RowId),
	    CONSTRAINT FK_RunList_ExperimentRunId FOREIGN KEY (ExperimentRunId) REFERENCES exp.ExperimentRun(RowId)
	)
2016-04-07 12:52:21 CEST [3782-457] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_RunList_ExperimentRunId ON exp.RunList(ExperimentRunId)
2016-04-07 12:52:21 CEST [3782-458] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ActiveMaterialSource
	(
	    Container ENTITYID NOT NULL,
	    MaterialSourceLSID LSIDtype NOT NULL,
	
	    CONSTRAINT PK_ActiveMaterialSource PRIMARY KEY (Container),
	    CONSTRAINT FK_ActiveMaterialSource_Container FOREIGN KEY (Container) REFERENCES core.Containers(EntityId),
	    CONSTRAINT FK_ActiveMaterialSource_MaterialSourceLSID FOREIGN KEY (MaterialSourceLSID) REFERENCES exp.MaterialSource(LSID)
	)
2016-04-07 12:52:21 CEST [3782-459] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ActiveMaterialSource_MaterialSourceLSID ON exp.ActiveMaterialSource(MaterialSourceLSID)
2016-04-07 12:52:21 CEST [3782-460] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.list
	(
	    RowId SERIAL NOT NULL,
	    EntityId ENTITYID NOT NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(64) NOT NULL,
	    DomainId INT NOT NULL,
	    KeyName VARCHAR(64) NOT NULL,
	    KeyType VARCHAR(64) NOT NULL,
	    Description TEXT,
	    TitleColumn VARCHAR(200) NULL,
	
	    DiscussionSetting SMALLINT NOT NULL DEFAULT 0,
	    AllowDelete BOOLEAN NOT NULL DEFAULT TRUE,
	    AllowUpload BOOLEAN NOT NULL DEFAULT TRUE,
	    AllowExport BOOLEAN NOT NULL DEFAULT TRUE,
	    IndexMetaData BOOLEAN NOT NULL DEFAULT TRUE,
	
	    CONSTRAINT PK_List PRIMARY KEY(RowId),
	    CONSTRAINT UQ_LIST UNIQUE(Container, Name),
	    CONSTRAINT FK_List_DomainId FOREIGN KEY(DomainId) REFERENCES exp.DomainDescriptor(DomainId)
	)
2016-04-07 12:52:21 CEST [3782-461] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_List_DomainId ON exp.List(DomainId)
2016-04-07 12:52:21 CEST [3782-462] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.IndexInteger
	(
	    ListId INT NOT NULL,
	    Key INT NOT NULL,
	    ObjectId INT NULL,
	    EntityId ENTITYID,
	
	    CONSTRAINT PK_IndexInteger PRIMARY KEY(ListId, Key),
	    CONSTRAINT FK_IndexInteger_List FOREIGN KEY(ListId) REFERENCES exp.List(RowId),
	    CONSTRAINT FK_IndexInteger_Object FOREIGN KEY(ObjectId) REFERENCES exp.Object(ObjectId)
	)
2016-04-07 12:52:22 CEST [3782-463] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_IndexInteger_ObjectId ON exp.IndexInteger(ObjectId)
2016-04-07 12:52:22 CEST [3782-464] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.IndexVarchar
	(
	    ListId INT NOT NULL,
	    Key VARCHAR(300) NOT NULL,
	    ObjectId INT NULL,
	    EntityId ENTITYID,
	
	    CONSTRAINT PK_IndexVarchar PRIMARY KEY(ListId, Key),
	    CONSTRAINT FK_IndexVarchar_List FOREIGN KEY(ListId) REFERENCES exp.List(RowId),
	    CONSTRAINT FK_IndexVarchar_Object FOREIGN KEY(ObjectId) REFERENCES exp.Object(ObjectId)
	)
2016-04-07 12:52:22 CEST [3782-465] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_IndexVarchar_ObjectId ON exp.IndexVarchar(ObjectId)
2016-04-07 12:52:22 CEST [3782-466] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.PropertyValidator
	(
	    RowId SERIAL NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    Description VARCHAR(200),
	    TypeURI VARCHAR(200) NOT NULL,
	    Expression TEXT,
	    Properties TEXT,
	    ErrorMessage TEXT,
	    Container ENTITYID NOT NULL,
	
	    CONSTRAINT PK_RowId PRIMARY KEY (RowId)
	)
2016-04-07 12:52:22 CEST [3782-467] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ValidatorReference
	(
	    ValidatorId INT NOT NULL,
	    PropertyId INT NOT NULL,
	
	    CONSTRAINT PK_ValidatorReference PRIMARY KEY (ValidatorId, PropertyId),
	    CONSTRAINT FK_PropertyValidator_ValidatorId FOREIGN KEY (ValidatorId) REFERENCES exp.PropertyValidator (RowId),
	    CONSTRAINT FK_PropertyDescriptor_PropertyId FOREIGN KEY (PropertyId) REFERENCES exp.PropertyDescriptor (PropertyId)
	)
2016-04-07 12:52:22 CEST [3782-468] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.ConditionalFormat
	(
	    RowId SERIAL NOT NULL,
	    PropertyId INT NOT NULL,
	    SortOrder INT NOT NULL,
	    Filter VARCHAR(500) NOT NULL,
	    Bold BOOLEAN NOT NULL,
	    Italic BOOLEAN NOT NULL,
	    Strikethrough BOOLEAN NOT NULL,
	    TextColor VARCHAR(10),
	    BackgroundColor VARCHAR(10),
	
	    CONSTRAINT PK_ConditionalFormat_RowId PRIMARY KEY (RowId),
	    CONSTRAINT FK_ConditionalFormat_PropertyId FOREIGN KEY (PropertyId) REFERENCES exp.PropertyDescriptor (PropertyId),
	    CONSTRAINT UQ_ConditionalFormat_PropertyId_SortOrder UNIQUE (PropertyId, SortOrder)
	)
2016-04-07 12:52:22 CEST [3782-469] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_ConditionalFormat_PropertyId ON exp.ConditionalFormat(PropertyId)
2016-04-07 12:52:22 CEST [3782-470] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION exp.ensureObject(ENTITYID, LSIDType, INTEGER) RETURNS INTEGER AS $$
	DECLARE
	    _container ALIAS FOR $1;
	    _lsid ALIAS FOR $2;
	    _ownerObjectId ALIAS FOR $3;
	    _objectid INTEGER;
	BEGIN
	
	        _objectid := (SELECT ObjectId FROM exp.Object WHERE Container=_container AND ObjectURI=_lsid);
	        IF (_objectid IS NULL) THEN
	            INSERT INTO exp.Object (Container, ObjectURI, OwnerObjectId) VALUES (_container, _lsid, _ownerObjectId);
	            _objectid := currval('exp.object_objectid_seq');
	        END IF;
	
	    RETURN _objectid;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-471] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE FUNCTION exp.deleteObject(ENTITYID, LSIDType) RETURNS void AS '
	DECLARE
	    _container ALIAS FOR $1;
	    _lsid ALIAS FOR $2;
	    _objectid INTEGER;
	BEGIN
	        _objectid := (SELECT ObjectId FROM exp.Object WHERE Container=_container AND ObjectURI=_lsid);
	        IF (_objectid IS NULL) THEN
	            RETURN;
	        END IF;
	--    START TRANSACTION;
	        DELETE FROM exp.ObjectProperty WHERE ObjectId IN
	            (SELECT ObjectId FROM exp.Object WHERE Container=_container AND OwnerObjectId = _objectid);
	        DELETE FROM exp.ObjectProperty WHERE ObjectId = _objectid;
	        DELETE FROM exp.Object WHERE Container=_container AND OwnerObjectId = _objectid;
	        DELETE FROM exp.Object WHERE ObjectId = _objectid;
	--    COMMIT;
	    RETURN;
	END;
	' LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-472] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	CREATE FUNCTION exp._insertFloatProperty(INTEGER, INTEGER, FLOAT) RETURNS void AS $$
	DECLARE
	    _objectid ALIAS FOR $1;
	    _propid ALIAS FOR $2;
	    _float ALIAS FOR $3;
	BEGIN
	    IF (_propid IS NULL OR _objectid IS NULL) THEN
	        RETURN;
	    END IF;
	    INSERT INTO exp.ObjectProperty (ObjectId, PropertyId, TypeTag, FloatValue)
	    VALUES (_objectid, _propid, 'f', _float);
	    RETURN;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-473] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION exp._insertDateTimeProperty(INTEGER, INTEGER, TIMESTAMP) RETURNS void AS $$
	DECLARE
	    _objectid ALIAS FOR $1;
	    _propid ALIAS FOR $2;
	    _datetime ALIAS FOR $3;
	BEGIN
	    IF (_propid IS NULL OR _objectid IS NULL) THEN
	        RETURN;
	    END IF;
	    INSERT INTO exp.ObjectProperty (ObjectId, PropertyId, TypeTag, DateTimeValue)
	    VALUES (_objectid, _propid, 'd', _datetime);
	    RETURN;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-474] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION exp._insertStringProperty(INTEGER, INTEGER, VARCHAR(400)) RETURNS void AS $$
	DECLARE
	    _objectid ALIAS FOR $1;
	    _propid ALIAS FOR $2;
	    _string ALIAS FOR $3;
	BEGIN
	    IF (_propid IS NULL OR _objectid IS NULL) THEN
	        RETURN;
	    END IF;
	    INSERT INTO exp.ObjectProperty (ObjectId, PropertyId, TypeTag, StringValue)
	    VALUES (_objectid, _propid, 's', _string);
	    RETURN;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-475] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	CREATE FUNCTION exp.setFloatProperties(_propertyid INTEGER,
	    _objectid1 INTEGER, _float1 FLOAT,
	    _objectid2 INTEGER, _float2 FLOAT,
	    _objectid3 INTEGER, _float3 FLOAT,
	    _objectid4 INTEGER, _float4 FLOAT,
	    _objectid5 INTEGER, _float5 FLOAT,
	    _objectid6 INTEGER, _float6 FLOAT,
	    _objectid7 INTEGER, _float7 FLOAT,
	    _objectid8 INTEGER, _float8 FLOAT,
	    _objectid9 INTEGER, _float9 FLOAT,
	    _objectid10 INTEGER, _float10 FLOAT
	    ) RETURNS void AS '
	BEGIN
	--    BEGIN TRANSACTION
	        DELETE FROM exp.ObjectProperty WHERE PropertyId=_propertyid AND ObjectId IN (_objectid1, _objectid2, _objectid3, _objectid4, _objectid5, _objectid6, _objectid7, _objectid8, _objectid9, _objectid10);
	        PERFORM exp._insertFloatProperty(_objectid1, _propertyid, _float1);
	        PERFORM exp._insertFloatProperty(_objectid2, _propertyid, _float2);
	        PERFORM exp._insertFloatProperty(_objectid3, _propertyid, _float3);
	        PERFORM exp._insertFloatProperty(_objectid4, _propertyid, _float4);
	        PERFORM exp._insertFloatProperty(_objectid5, _propertyid, _float5);
	        PERFORM exp._insertFloatProperty(_objectid6, _propertyid, _float6);
	        PERFORM exp._insertFloatProperty(_objectid7, _propertyid, _float7);
	        PERFORM exp._insertFloatProperty(_objectid8, _propertyid, _float8);
	        PERFORM exp._insertFloatProperty(_objectid9, _propertyid, _float9);
	        PERFORM exp._insertFloatProperty(_objectid10, _propertyid, _float10);
	--    COMMIT
	    RETURN;
	END;
	' LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-476] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION exp.setStringProperties
	(
	    _propertyid INTEGER,
	    _objectid1 INTEGER, _string1 VARCHAR(400),
	    _objectid2 INTEGER, _string2 VARCHAR(400),
	    _objectid3 INTEGER, _string3 VARCHAR(400),
	    _objectid4 INTEGER, _string4 VARCHAR(400),
	    _objectid5 INTEGER, _string5 VARCHAR(400),
	    _objectid6 INTEGER, _string6 VARCHAR(400),
	    _objectid7 INTEGER, _string7 VARCHAR(400),
	    _objectid8 INTEGER, _string8 VARCHAR(400),
	    _objectid9 INTEGER, _string9 VARCHAR(400),
	    _objectid10 INTEGER, _string10 VARCHAR(400)
	) RETURNS void AS $$
	BEGIN
	
	        DELETE FROM exp.ObjectProperty WHERE PropertyId=_propertyid AND ObjectId IN (_objectid1, _objectid2, _objectid3, _objectid4, _objectid5, _objectid6, _objectid7, _objectid8, _objectid9, _objectid10);
	        PERFORM exp._insertStringProperty(_objectid1, _propertyid, _string1);
	        PERFORM exp._insertStringProperty(_objectid2, _propertyid, _string2);
	        PERFORM exp._insertStringProperty(_objectid3, _propertyid, _string3);
	        PERFORM exp._insertStringProperty(_objectid4, _propertyid, _string4);
	        PERFORM exp._insertStringProperty(_objectid5, _propertyid, _string5);
	        PERFORM exp._insertStringProperty(_objectid6, _propertyid, _string6);
	        PERFORM exp._insertStringProperty(_objectid7, _propertyid, _string7);
	        PERFORM exp._insertStringProperty(_objectid8, _propertyid, _string8);
	        PERFORM exp._insertStringProperty(_objectid9, _propertyid, _string9);
	        PERFORM exp._insertStringProperty(_objectid10, _propertyid, _string10);
	
	    RETURN;
	END;
	$$ LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-477] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION exp.setDateTimeProperties(_propertyid INTEGER,
	    _objectid1 INTEGER, _datetime1 TIMESTAMP,
	    _objectid2 INTEGER, _datetime2 TIMESTAMP,
	    _objectid3 INTEGER, _datetime3 TIMESTAMP,
	    _objectid4 INTEGER, _datetime4 TIMESTAMP,
	    _objectid5 INTEGER, _datetime5 TIMESTAMP,
	    _objectid6 INTEGER, _datetime6 TIMESTAMP,
	    _objectid7 INTEGER, _datetime7 TIMESTAMP,
	    _objectid8 INTEGER, _datetime8 TIMESTAMP,
	    _objectid9 INTEGER, _datetime9 TIMESTAMP,
	    _objectid10 INTEGER, _datetime10 TIMESTAMP
	    ) RETURNS void AS '
	BEGIN
	--    BEGIN TRANSACTION
	        DELETE FROM exp.ObjectProperty WHERE PropertyId=_propertyid AND ObjectId IN (_objectid1, _objectid2, _objectid3, _objectid4, _objectid5, _objectid6, _objectid7, _objectid8, _objectid9, _objectid10);
	        PERFORM exp._insertDateTimeProperty(_objectid1, _propertyid, _datetime1);
	        PERFORM exp._insertDateTimeProperty(_objectid2, _propertyid, _datetime2);
	        PERFORM exp._insertDateTimeProperty(_objectid3, _propertyid, _datetime3);
	        PERFORM exp._insertDateTimeProperty(_objectid4, _propertyid, _datetime4);
	        PERFORM exp._insertDateTimeProperty(_objectid5, _propertyid, _datetime5);
	        PERFORM exp._insertDateTimeProperty(_objectid6, _propertyid, _datetime6);
	        PERFORM exp._insertDateTimeProperty(_objectid7, _propertyid, _datetime7);
	        PERFORM exp._insertDateTimeProperty(_objectid8, _propertyid, _datetime8);
	        PERFORM exp._insertDateTimeProperty(_objectid9, _propertyid, _datetime9);
	        PERFORM exp._insertDateTimeProperty(_objectid10, _propertyid, _datetime10);
	--    COMMIT
	    RETURN;
	END;
	' LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-478] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE FUNCTION exp.deleteObjectById(ENTITYID, INTEGER) RETURNS void AS '
	DECLARE
	    _container ALIAS FOR $1;
	    _inputObjectId ALIAS FOR $2;
	    _objectid INTEGER;
	BEGIN
	        _objectid := (SELECT ObjectId FROM exp.Object WHERE Container=_container AND ObjectId=_inputObjectid);
	        IF (_objectid IS NULL) THEN
	            RETURN;
	        END IF;
	--    START TRANSACTION;
	        DELETE FROM exp.ObjectProperty WHERE ObjectId IN
	            (SELECT ObjectId FROM exp.Object WHERE Container=_container AND OwnerObjectId = _objectid);
	        DELETE FROM exp.ObjectProperty WHERE ObjectId = _objectid;
	        DELETE FROM exp.Object WHERE Container=_container AND OwnerObjectId = _objectid;
	        DELETE FROM exp.Object WHERE ObjectId = _objectid;
	--    COMMIT;
	    RETURN;
	END;
	' LANGUAGE plpgsql
2016-04-07 12:52:22 CEST [3782-479] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE INDEX IDX_Protocol_Container ON exp.Protocol (Container)
2016-04-07 12:52:22 CEST [3782-480] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE exp.AssayQCFlag
	(
	    RowId SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    FlagType VARCHAR(40) NOT NULL,
	    Description TEXT NULL,
	    Comment TEXT NULL,
	    Enabled BOOLEAN NOT NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL
	)
2016-04-07 12:52:22 CEST [3782-481] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.AssayQCFlag ADD CONSTRAINT PK_AssayQCFlag PRIMARY KEY (RowId)
2016-04-07 12:52:22 CEST [3782-482] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.AssayQCFlag ADD CONSTRAINT FK_AssayQCFlag_EunId FOREIGN KEY (RunId) REFERENCES exp.ExperimentRun (RowId)
2016-04-07 12:52:22 CEST [3782-483] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_AssayQCFlag_RunId ON exp.AssayQCFlag(RunId)
2016-04-07 12:52:22 CEST [3782-484] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.AssayQCFlag ADD COLUMN IntKey1 INT NULL
2016-04-07 12:52:22 CEST [3782-485] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.AssayQCFlag ADD COLUMN IntKey2 INT NULL
2016-04-07 12:52:22 CEST [3782-486] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_AssayQCFlag_IntKeys ON exp.AssayQCFlag(IntKey1, IntKey2)
2016-04-07 12:52:22 CEST [3782-487] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.AssayQCFlag ADD COLUMN Key1 VARCHAR(50)
2016-04-07 12:52:22 CEST [3782-488] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.AssayQCFlag ADD COLUMN Key2 VARCHAR(50)
2016-04-07 12:52:22 CEST [3782-489] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_AssayQCFlag_Keys ON exp.AssayQCFlag(Key1, Key2)
2016-04-07 12:52:22 CEST [3782-490] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN CreatedBy USERID NULL
2016-04-07 12:52:22 CEST [3782-491] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN Created TIMESTAMP NULL
2016-04-07 12:52:22 CEST [3782-492] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN ModifiedBy USERID NULL
2016-04-07 12:52:22 CEST [3782-493] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN Modified TIMESTAMP NULL
2016-04-07 12:52:22 CEST [3782-494] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	DELETE FROM exp.RunList WHERE ExperimentId IN (SELECT RowId FROM exp.Experiment WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-495] postgres@labkey LOG:  execute <unnamed>: 
	DELETE FROM exp.RunList WHERE ExperimentRunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-496] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE exp.Data SET RunId = NULL WHERE RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.containers))
2016-04-07 12:52:22 CEST [3782-497] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE exp.Material SET RunId = NULL WHERE RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.containers))
2016-04-07 12:52:22 CEST [3782-498] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE exp.Data SET SourceApplicationId = NULL WHERE SourceApplicationId IN (SELECT RowId FROM exp.ProtocolApplication WHERE RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.containers)))
2016-04-07 12:52:22 CEST [3782-499] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE exp.Material SET SourceApplicationId = NULL WHERE SourceApplicationId IN (SELECT RowId FROM exp.ProtocolApplication WHERE RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.containers)))
2016-04-07 12:52:22 CEST [3782-500] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.DataInput WHERE TargetApplicationId IN
		(SELECT RowId FROM exp.ProtocolApplication WHERE
			ProtocolLSID IN (SELECT Lsid FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
			OR RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.Containers)))
2016-04-07 12:52:22 CEST [3782-501] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.MaterialInput WHERE TargetApplicationId IN
		(SELECT RowId FROM exp.ProtocolApplication WHERE
			ProtocolLSID IN (SELECT Lsid FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
			OR RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.Containers)))
2016-04-07 12:52:22 CEST [3782-502] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.ProtocolApplicationParameter WHERE ProtocolApplicationId IN
		(SELECT RowId FROM exp.ProtocolApplication WHERE
			ProtocolLSID IN (SELECT Lsid FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
			OR RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.Containers)))
2016-04-07 12:52:22 CEST [3782-503] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.ProtocolApplication WHERE
		ProtocolLSID IN (SELECT Lsid FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
		OR RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-504] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.AssayQCFlag WHERE RunId IN (SELECT RowId FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-505] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.ExperimentRun WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-506] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.Experiment WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-507] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ProtocolParameter WHERE ProtocolId IN (SELECT RowId FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-508] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.ProtocolActionPredecessor WHERE ActionId IN (SELECT RowId FROM exp.ProtocolAction WHERE
		ParentProtocolId IN (SELECT RowId FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
		OR ChildProtocolId IN (SELECT RowId FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers)))
2016-04-07 12:52:22 CEST [3782-509] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.ProtocolAction WHERE
		ParentProtocolId IN (SELECT RowId FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
		OR ChildProtocolId IN (SELECT RowId FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-510] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.Protocol WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-511] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ActiveMaterialSource WHERE MaterialSourceLSID IN (SELECT Lsid FROM exp.MaterialSource WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-512] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.MaterialSource WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-513] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	DELETE FROM exp.PropertyDomain WHERE
		PropertyId IN (SELECT PropertyId FROM exp.PropertyDescriptor WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
		OR DomainId IN (SELECT DomainId FROM exp.DomainDescriptor WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-514] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.DomainDescriptor WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-515] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ValidatorReference WHERE
		ValidatorId IN (SELECT RowId FROM exp.PropertyValidator WHERE Container IN (SELECT EntityId FROM core.Containers))
		OR PropertyId IN (SELECT PropertyId FROM exp.PropertyDescriptor WHERE Container IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-516] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.PropertyValidator WHERE Container IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-517] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ConditionalFormat WHERE PropertyId IN (SELECT PropertyId FROM exp.PropertyDescriptor WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-518] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ObjectProperty WHERE PropertyId IN (SELECT PropertyId FROM exp.PropertyDescriptor WHERE Container NOT IN (SELECT EntityId FROM core.Containers))
2016-04-07 12:52:22 CEST [3782-519] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.PropertyDescriptor WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-520] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.List WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:22 CEST [3782-521] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.DomainDescriptor ADD CONSTRAINT FK_DomainDescriptor_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-522] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.Experiment ADD CONSTRAINT FK_Experiment_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-523] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.ExperimentRun ADD CONSTRAINT FK_ExperimentRun_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-524] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.List ADD CONSTRAINT FK_List_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-525] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.MaterialSource ADD CONSTRAINT FK_MaterialSource_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-526] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.PropertyDescriptor ADD CONSTRAINT FK_PropertyDescriptor_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-527] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.PropertyValidator ADD CONSTRAINT FK_PropertyValidator_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-528] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.Protocol ADD CONSTRAINT FK_Protocol_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:22 CEST [3782-529] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX idx_propertyvalidator_container ON exp.PropertyValidator (Container)
2016-04-07 12:52:22 CEST [3782-530] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.DataInput WHERE DataId IN
	  (SELECT di.DataId
	   FROM exp.DataInput di, exp.Data d, exp.ExperimentRun r
	   WHERE di.DataId = d.RowId
	     AND d.RunId = r.RowId
	     AND r.lsid LIKE '%:NabAssayRun.%'
	     AND r.protocollsid LIKE '%:NabAssayProtocol.%'
	     AND di.role LIKE '%;%.xls')
2016-04-07 12:52:22 CEST [3782-531] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN FacetingBehaviorType VARCHAR(40) NOT NULL DEFAULT 'AUTOMATIC'
2016-04-07 12:52:23 CEST [3782-532] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.IndexVarchar ADD COLUMN CreatedBy USERID NULL
2016-04-07 12:52:23 CEST [3782-533] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexVarchar ADD COLUMN Created TIMESTAMP NULL
2016-04-07 12:52:23 CEST [3782-534] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexVarchar ADD COLUMN ModifiedBy USERID NULL
2016-04-07 12:52:23 CEST [3782-535] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexVarchar ADD COLUMN Modified TIMESTAMP NULL
2016-04-07 12:52:23 CEST [3782-536] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexVarchar ADD COLUMN LastIndexed TIMESTAMP NULL
2016-04-07 12:52:23 CEST [3782-537] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.IndexInteger ADD COLUMN CreatedBy USERID NULL
2016-04-07 12:52:23 CEST [3782-538] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexInteger ADD COLUMN Created TIMESTAMP NULL
2016-04-07 12:52:23 CEST [3782-539] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexInteger ADD COLUMN ModifiedBy USERID NULL
2016-04-07 12:52:23 CEST [3782-540] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexInteger ADD COLUMN Modified TIMESTAMP NULL
2016-04-07 12:52:23 CEST [3782-541] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexInteger ADD COLUMN LastIndexed TIMESTAMP NULL
2016-04-07 12:52:23 CEST [3782-542] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.List RENAME COLUMN IndexMetaData TO MetaDataIndex
2016-04-07 12:52:23 CEST [3782-543] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.list ADD EntireListIndex BOOLEAN NOT NULL DEFAULT FALSE
2016-04-07 12:52:23 CEST [3782-544] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EntireListTitleSetting INT NOT NULL DEFAULT 0
2016-04-07 12:52:23 CEST [3782-545] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EntireListTitleTemplate VARCHAR(1000) NULL
2016-04-07 12:52:23 CEST [3782-546] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EntireListBodySetting INT NOT NULL DEFAULT 0
2016-04-07 12:52:23 CEST [3782-547] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EntireListBodyTemplate VARCHAR(1000) NULL
2016-04-07 12:52:23 CEST [3782-548] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.list ADD EachItemIndex BOOLEAN NOT NULL DEFAULT FALSE
2016-04-07 12:52:24 CEST [3782-549] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EachItemTitleSetting INT NOT NULL DEFAULT 0
2016-04-07 12:52:24 CEST [3782-550] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EachItemTitleTemplate VARCHAR(1000) NULL
2016-04-07 12:52:24 CEST [3782-551] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EachItemBodySetting INT NOT NULL DEFAULT 0
2016-04-07 12:52:24 CEST [3782-552] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list ADD EachItemBodyTemplate VARCHAR(1000) NULL
2016-04-07 12:52:24 CEST [3782-553] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.List ADD LastIndexed TIMESTAMP NULL
2016-04-07 12:52:24 CEST [3782-554] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE exp.List ADD EntireListIndexSetting INT NOT NULL DEFAULT 0
2016-04-07 12:52:24 CEST [3782-555] postgres@labkey LOG:  execute <unnamed>:   
	
	UPDATE exp.List SET EntireListIndexSetting = 1 WHERE MetaDataIndex = FALSE AND EntireListIndex = TRUE
2016-04-07 12:52:24 CEST [3782-556] postgres@labkey LOG:  execute <unnamed>:  
	UPDATE exp.List SET EntireListIndexSetting = 2 WHERE MetaDataIndex = TRUE AND EntireListIndex = TRUE
2016-04-07 12:52:24 CEST [3782-557] postgres@labkey LOG:  execute <unnamed>:   
	
	UPDATE exp.List SET EntireListIndex = TRUE WHERE MetaDataIndex = TRUE
2016-04-07 12:52:24 CEST [3782-558] postgres@labkey LOG:  execute <unnamed>:    
	
	ALTER TABLE exp.List DROP MetaDataIndex
2016-04-07 12:52:24 CEST [3782-559] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.ExperimentRun ADD JobId INTEGER
2016-04-07 12:52:24 CEST [3782-560] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.ExperimentRun ADD
	    CONSTRAINT FK_ExperimentRun_JobId FOREIGN KEY (JobId)
	        REFERENCES pipeline.statusfiles (RowId)
2016-04-07 12:52:24 CEST [3782-561] postgres@labkey LOG:  execute <unnamed>: 
	
	
	 
	ALTER TABLE exp.MaterialSource ALTER COLUMN Name TYPE VARCHAR(100)
2016-04-07 12:52:24 CEST [3782-562] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.ExperimentRun ALTER COLUMN Name TYPE VARCHAR(200)
2016-04-07 12:52:24 CEST [3782-563] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE exp.PropertyDescriptor SET Name = Name || '_99' WHERE LOWER(Name) IN ('created', 'createdby', 'modified', 'modifiedby') AND
	    PropertyId IN (SELECT PropertyId FROM exp.PropertyDomain pdom INNER JOIN exp.List l ON pdom.DomainId = l.DomainId)
2016-04-07 12:52:24 CEST [3782-564] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN Protected BOOLEAN NOT NULL DEFAULT False
2016-04-07 12:52:24 CEST [3782-565] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.ExperimentRun ADD COLUMN ReplacedByRunId INT
2016-04-07 12:52:24 CEST [3782-566] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.ExperimentRun ADD
	    CONSTRAINT FK_ExperimentRun_ReplacedByRunId FOREIGN KEY (ReplacedByRunId)
	        REFERENCES exp.ExperimentRun (RowId)
2016-04-07 12:52:24 CEST [3782-567] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_ExperimentRun_ReplacedByRunId ON exp.ExperimentRun(ReplacedByRunId)
2016-04-07 12:52:24 CEST [3782-568] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.DomainDescriptor DROP CONSTRAINT uq_domainuricontainer
2016-04-07 12:52:24 CEST [3782-569] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.DomainDescriptor DROP CONSTRAINT uq_domaindescriptor
2016-04-07 12:52:24 CEST [3782-570] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.DomainDescriptor ADD CONSTRAINT uq_domaindescriptor UNIQUE (DomainURI, Project)
2016-04-07 12:52:24 CEST [3782-571] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.RunList ADD COLUMN Created TIMESTAMP
2016-04-07 12:52:24 CEST [3782-572] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.RunList ADD COLUMN CreatedBy INT
2016-04-07 12:52:24 CEST [3782-573] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.PropertyDescriptor ALTER COLUMN lookupschema TYPE VARCHAR(200)
2016-04-07 12:52:24 CEST [3782-574] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.PropertyDescriptor ALTER COLUMN lookupquery TYPE VARCHAR(200)
2016-04-07 12:52:24 CEST [3782-575] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN ExcludeFromShifting BOOLEAN NOT NULL DEFAULT False
2016-04-07 12:52:25 CEST [3782-576] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	
	
	ALTER TABLE exp.IndexInteger DROP CONSTRAINT FK_IndexInteger_List
2016-04-07 12:52:25 CEST [3782-577] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexVarchar DROP CONSTRAINT FK_IndexVarchar_List
2016-04-07 12:52:25 CEST [3782-578] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.List DROP CONSTRAINT PK_List
2016-04-07 12:52:25 CEST [3782-579] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.List ADD CONSTRAINT UQ_RowId UNIQUE (RowId)
2016-04-07 12:52:25 CEST [3782-580] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexInteger ADD CONSTRAINT FK_IndexInteger_List FOREIGN KEY(ListId) REFERENCES exp.List(RowId)
2016-04-07 12:52:25 CEST [3782-581] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.IndexVarchar ADD CONSTRAINT FK_IndexVarchar_List FOREIGN KEY(ListId) REFERENCES exp.List(RowId)
2016-04-07 12:52:25 CEST [3782-582] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.List ADD ListId INT NULL
2016-04-07 12:52:25 CEST [3782-583] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE exp.List SET ListId = RowId
2016-04-07 12:52:25 CEST [3782-584] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.List ALTER ListId SET NOT NULL
2016-04-07 12:52:25 CEST [3782-585] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.List ADD CONSTRAINT PK_List PRIMARY KEY (Container, ListId)
2016-04-07 12:52:25 CEST [3782-586] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.ProtocolApplication ADD COLUMN StartTime TIMESTAMP NULL
2016-04-07 12:52:25 CEST [3782-587] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.ProtocolApplication ADD COLUMN EndTime TIMESTAMP NULL
2016-04-07 12:52:25 CEST [3782-588] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.ProtocolApplication ADD COLUMN RecordCount INT NULL
2016-04-07 12:52:25 CEST [3782-589] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:25 CEST [3782-590] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:25.374', $2 = '0', $3 = '2016-04-07 12:52:25.374', $4 = '0', $5 = '2016-04-07 12:52:25.374', $6 = 'Experiment', $7 = 'exp-0.00-13.20.sql'
2016-04-07 12:52:25 CEST [3782-591] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE exp.propertydescriptor ADD COLUMN scale INTEGER NOT NULL DEFAULT 0
2016-04-07 12:52:25 CEST [3782-592] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:25 CEST [3782-593] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:25.941', $2 = '0', $3 = '2016-04-07 12:52:25.941', $4 = '0', $5 = '2016-04-07 12:52:25.941', $6 = 'Experiment', $7 = 'exp-13.30-14.10.sql'
2016-04-07 12:52:25 CEST [3782-594] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE exp.PropertyDescriptor ADD COLUMN KeyVariable BOOLEAN NOT NULL DEFAULT False
2016-04-07 12:52:26 CEST [3782-595] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.PropertyDescriptor ADD COLUMN DefaultScale VARCHAR(40) NOT NULL DEFAULT 'LINEAR'
2016-04-07 12:52:26 CEST [3782-596] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:26 CEST [3782-597] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:26.425', $2 = '0', $3 = '2016-04-07 12:52:26.425', $4 = '0', $5 = '2016-04-07 12:52:26.425', $6 = 'Experiment', $7 = 'exp-14.10-14.20.sql'
2016-04-07 12:52:26 CEST [3782-598] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE exp.PropertyDescriptor ADD COLUMN StorageColumnName VARCHAR(100) NULL
2016-04-07 12:52:26 CEST [3782-599] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE exp.propertydescriptor PD
	SET storagecolumnname=lower(name)
	WHERE EXISTS (SELECT * FROM
	  exp.propertydomain DP inner join exp.domaindescriptor DD on DP.domainid = DD.domainid
	WHERE DD.storagetablename is not null and PD.propertyid = DP.propertyid)
2016-04-07 12:52:26 CEST [3782-600] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE exp.ExperimentRun
	   ADD BatchId INT
2016-04-07 12:52:26 CEST [3782-601] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.ExperimentRun
	  ADD CONSTRAINT fk_ExperimentRun_BatchId FOREIGN KEY (BatchId) REFERENCES exp.Experiment (RowId)
2016-04-07 12:52:26 CEST [3782-602] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_ExperimentRun_BatchId
	  ON exp.ExperimentRun(BatchId)
2016-04-07 12:52:26 CEST [3782-603] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE exp.ExperimentRun r SET BatchId = (
	  SELECT e.RowId AS BatchId
	    FROM exp.Experiment e
	    WHERE
	      e.BatchProtocolId IS NOT NULL
	      AND e.RowId = (
	        SELECT MIN(ExperimentId) FROM exp.Experiment e, exp.RunList rl
	        WHERE e.RowId = rl.ExperimentId
	        AND rl.ExperimentRunid = r.RowId
	      )
	)
2016-04-07 12:52:26 CEST [3782-604] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:26 CEST [3782-605] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:26.511', $2 = '0', $3 = '2016-04-07 12:52:26.511', $4 = '0', $5 = '2016-04-07 12:52:26.511', $6 = 'Experiment', $7 = 'exp-14.20-14.30.sql'
2016-04-07 12:52:26 CEST [3782-606] postgres@labkey LOG:  execute <unnamed>: CREATE SEQUENCE exp.domaindescriptor_ts
2016-04-07 12:52:26 CEST [3782-607] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.DomainDescriptor ADD _ts BIGINT DEFAULT nextval('exp.domaindescriptor_ts') NOT NULL
2016-04-07 12:52:26 CEST [3782-608] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.DomainDescriptor ADD COLUMN ModifiedBy USERID
2016-04-07 12:52:26 CEST [3782-609] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.DomainDescriptor ADD COLUMN Modified TIMESTAMP DEFAULT now()
2016-04-07 12:52:26 CEST [3782-610] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:26 CEST [3782-611] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:26.926', $2 = '0', $3 = '2016-04-07 12:52:26.926', $4 = '0', $5 = '2016-04-07 12:52:26.926', $6 = 'Experiment', $7 = 'exp-14.30-15.10.sql'
2016-04-07 12:52:26 CEST [3782-612] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE exp.material SET name='NULL' WHERE name IS NULL
2016-04-07 12:52:26 CEST [3782-613] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.material ALTER COLUMN name SET NOT NULL
2016-04-07 12:52:26 CEST [3782-614] postgres@labkey LOG:  execute <unnamed>: 
	
	WITH nonunique AS (
	    SELECT container, cpastype, name
	    FROM exp.material
	      WHERE cpastype IS NOT NULL
	    GROUP BY container, cpastype, name
	    HAVING COUNT(*) > 1)
	
	UPDATE exp.material M
	SET Name = Name || ' - ' || RowId
	WHERE EXISTS (SELECT * FROM nonunique NU WHERE M.container=NU.container AND M.cpastype=NU.cpastype AND M.name=NU.name)
2016-04-07 12:52:26 CEST [3782-615] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX idx_material_AK ON exp.material (container, cpastype, name) WHERE cpastype IS NOT NULL
2016-04-07 12:52:26 CEST [3782-616] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE exp.PropertyDescriptor RENAME COLUMN KeyVariable TO RecommendedVariable
2016-04-07 12:52:26 CEST [3782-617] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE exp.Data ADD COLUMN Generated BOOLEAN NOT NULL DEFAULT FALSE
2016-04-07 12:52:27 CEST [3782-618] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:27 CEST [3782-619] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:27.291', $2 = '0', $3 = '2016-04-07 12:52:27.291', $4 = '0', $5 = '2016-04-07 12:52:27.291', $6 = 'Experiment', $7 = 'exp-15.10-15.20.sql'
2016-04-07 12:52:27 CEST [3782-620] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA expdataclass
2016-04-07 12:52:27 CEST [3782-621] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.DataClass
	(
	  RowId SERIAL NOT NULL,
	  Name VARCHAR(200) NOT NULL,
	  LSID LSIDtype NOT NULL,
	  Container ENTITYID NOT NULL,
	  Created TIMESTAMP NULL,
	  CreatedBy INT NULL,
	  Modified TIMESTAMP NULL,
	  ModifiedBy INT NULL,
	  Description TEXT NULL,
	  MaterialSourceId INT NULL,
	  NameExpression VARCHAR(200) NULL,
	
	  CONSTRAINT PK_DataClass PRIMARY KEY (RowId),
	  CONSTRAINT UQ_DataClass_LSID UNIQUE (LSID),
	  CONSTRAINT UQ_DataClass_Container_Name UNIQUE (Container, Name),
	
	  CONSTRAINT FK_DataClass_Container FOREIGN KEY (Container) REFERENCES core.Containers(EntityId),
	  CONSTRAINT FK_DataClass_MaterialSource FOREIGN KEY (MaterialSourceId) REFERENCES exp.MaterialSource (RowId)
	)
2016-04-07 12:52:27 CEST [3782-622] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_DataClass_Container ON exp.DataClass(Container)
2016-04-07 12:52:27 CEST [3782-623] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.data
	  ADD COLUMN description VARCHAR(4000)
2016-04-07 12:52:27 CEST [3782-624] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.data
	  ADD COLUMN classId INT
2016-04-07 12:52:27 CEST [3782-625] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.data
	  ADD CONSTRAINT FK_Data_DataClass FOREIGN KEY (classId) REFERENCES exp.DataClass (rowid)
2016-04-07 12:52:27 CEST [3782-626] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE exp.data
	  ADD CONSTRAINT UQ_Data_DataClass_Name UNIQUE (classId, name)
2016-04-07 12:52:27 CEST [3782-627] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE exp.Alias
	(
	  RowId SERIAL NOT NULL,
	  Created TIMESTAMP,
	  CreatedBy INT,
	  Modified TIMESTAMP,
	  ModifiedBy INT,
	
	  Name VARCHAR(500) NOT NULL,
	
	  CONSTRAINT PK_Alias PRIMARY KEY (RowId),
	  CONSTRAINT UQ_Alias_Name UNIQUE (Name)
	)
2016-04-07 12:52:27 CEST [3782-628] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.DataAliasMap
	(
	  LSID LSIDtype NOT NULL,
	  Alias INT NOT NULL,
	  Container EntityId NOT NULL,
	
	  CONSTRAINT PK_DataAliasMap PRIMARY KEY (LSID, Alias),
	  CONSTRAINT FK_DataAlias_RowId FOREIGN KEY (Alias) REFERENCES exp.Alias(RowId)
	)
2016-04-07 12:52:27 CEST [3782-629] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE exp.MaterialAliasMap
	(
	  LSID LSIDtype NOT NULL,
	  Alias INT NOT NULL,
	  Container EntityId NOT NULL,
	
	  CONSTRAINT PK_MaterialAliasMap PRIMARY KEY (LSID, Alias),
	  CONSTRAINT FK_MaterialAlias_RowId FOREIGN KEY (Alias) REFERENCES exp.Alias(RowId)
	)
2016-04-07 12:52:28 CEST [3782-630] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE INDEX IX_Alias_Name ON exp.Alias(Name)
2016-04-07 12:52:28 CEST [3782-631] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.DataAliasMap ADD CONSTRAINT FK_DataAlias_LSID FOREIGN KEY (LSID) REFERENCES exp.Data(LSID)
2016-04-07 12:52:28 CEST [3782-632] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_DataAliasMap ON exp.DataAliasMap(LSID, Alias, Container)
2016-04-07 12:52:28 CEST [3782-633] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.MaterialAliasMap ADD CONSTRAINT FK_MaterialAlias_LSID FOREIGN KEY (LSID) REFERENCES exp.Material(LSID)
2016-04-07 12:52:28 CEST [3782-634] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_MaterialAliasMap ON exp.MaterialAliasMap(LSID, Alias, Container)
2016-04-07 12:52:28 CEST [3782-635] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:28 CEST [3782-636] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:28.271', $2 = '0', $3 = '2016-04-07 12:52:28.271', $4 = '0', $5 = '2016-04-07 12:52:28.271', $6 = 'Experiment', $7 = 'exp-15.30-16.10.sql'
2016-04-07 12:52:28 CEST [3782-637] postgres@labkey LOG:  execute <unnamed>: CREATE VIEW exp.ProtocolActionStepDetailsView AS
	    SELECT Protocol_P.LSID AS ParentProtocolLSID, Protocol_C.LSID AS LSID, Protocol_C.LSID AS ChildProtocolLSID, exp.ProtocolAction.Sequence AS Sequence, exp.ProtocolAction.Sequence AS ActionSequence,
	        exp.ProtocolAction.RowId AS ActionId, Protocol_C.RowId AS RowId, Protocol_C.Name AS Name,
	        Protocol_C.ProtocolDescription AS ProtocolDescription, Protocol_C.ApplicationType AS ApplicationType,
	        Protocol_C.MaxInputMaterialPerInstance AS MaxInputMaterialPerInstance, Protocol_C.MaxInputDataPerInstance AS MaxInputDataPerInstance,
	        Protocol_C.OutputMaterialPerInstance AS OutputMaterialPerInstance, Protocol_C.OutputDataPerInstance AS OutputDataPerInstance, Protocol_C.OutputMaterialType AS OutputMaterialType, Protocol_C.OutputDataType AS OutputDataType,
	        Protocol_C.Instrument AS Instrument, Protocol_C.Software AS Software, Protocol_C.contactId AS contactId,
	        Protocol_C.Created AS Created, Protocol_C.EntityId AS EntityId, Protocol_C.CreatedBy AS CreatedBy, Protocol_C.Modified AS Modified, Protocol_C.ModifiedBy AS ModifiedBy, Protocol_C.Container AS Container
	    FROM exp.Protocol Protocol_C INNER JOIN
	        exp.ProtocolAction ON Protocol_C.RowId = exp.ProtocolAction.ChildProtocolId INNER JOIN
	        exp.Protocol Protocol_P ON exp.ProtocolAction.ParentProtocolId = Protocol_P.RowId
2016-04-07 12:52:28 CEST [3782-638] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ProtocolActionPredecessorLSIDView AS
	    SELECT Action.ParentProtocolLSID, Action.ChildProtocolLSID, Action.ActionSequence, PredecessorAction.ParentProtocolLSID AS PredecessorParentLSID,
	        PredecessorAction.ChildProtocolLSID AS PredecessorChildLSID, PredecessorAction.ActionSequence AS PredecessorSequence
	    FROM exp.ProtocolActionPredecessor INNER JOIN
	        exp.ProtocolActionStepDetailsView PredecessorAction ON exp.ProtocolActionPredecessor.PredecessorId = PredecessorAction.ActionId INNER JOIN
	        exp.ProtocolActionStepDetailsView Action ON exp.ProtocolActionPredecessor.ActionId = Action.ActionId                      
2016-04-07 12:52:28 CEST [3782-639] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.PredecessorOutputMaterialsView AS
	    SELECT exp.ProtocolActionPredecessorLSIDView.ParentProtocolLSID AS RunProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ChildProtocolLSID AS RunStepProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ActionSequence AS RunStepSequence, exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID,
	        exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID, exp.ProtocolActionPredecessorLSIDView.PredecessorSequence,
	        exp.Material.RowId AS OutputRowId, exp.Material.LSID AS OutputLSID, exp.Material.Name AS OutputName, exp.Material.CpasType AS OutputCpasType,
	        exp.ExperimentRun.RowId AS RunId
	    FROM exp.ProtocolApplication INNER JOIN
	        exp.ExperimentRun ON exp.ProtocolApplication.RunId = exp.ExperimentRun.RowId INNER JOIN
	        exp.ProtocolActionPredecessorLSIDView ON
	        exp.ProtocolApplication.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID AND
	        exp.ProtocolApplication.ActionSequence = exp.ProtocolActionPredecessorLSIDView.PredecessorSequence AND
	        exp.ExperimentRun.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.ParentProtocolLSID INNER JOIN
	        exp.Material ON exp.ProtocolApplication.RowId = exp.Material.SourceApplicationId
	    WHERE (exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID <> exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID)
2016-04-07 12:52:28 CEST [3782-640] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.PredecessorRunStartMaterialsView AS
	    SELECT exp.ProtocolActionPredecessorLSIDView.ParentProtocolLSID AS RunProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ChildProtocolLSID AS RunStepProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ActionSequence AS RunStepSequence, exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID,
	        exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID, exp.ProtocolActionPredecessorLSIDView.PredecessorSequence,
	        exp.Material.RowId AS OutputRowId, exp.Material.LSID AS OutputLSID, exp.Material.Name AS OutputName, exp.Material.CpasType AS OutputCpasType,
	        exp.ExperimentRun.RowId AS RunId
	    FROM exp.ProtocolApplication INNER JOIN
	        exp.ExperimentRun ON exp.ProtocolApplication.RunId = exp.ExperimentRun.RowId INNER JOIN
	        exp.ProtocolActionPredecessorLSIDView ON
	        exp.ProtocolApplication.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID AND
	        exp.ProtocolApplication.ActionSequence = exp.ProtocolActionPredecessorLSIDView.PredecessorSequence AND
	        exp.ExperimentRun.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID INNER JOIN
	        exp.MaterialInput ON exp.ProtocolApplication.RowId = exp.MaterialInput.TargetApplicationId INNER JOIN
	        exp.Material ON exp.MaterialInput.MaterialId = exp.Material.RowId
	    WHERE (exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID)
2016-04-07 12:52:28 CEST [3782-641] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.PredecessorAllMaterialsView AS
	    SELECT * FROM exp.PredecessorRunStartMaterialsView
	        UNION
	    SELECT * FROM exp.PredecessorOutputMaterialsView
2016-04-07 12:52:28 CEST [3782-642] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.PredecessorOutputDataView AS
	    SELECT exp.ProtocolActionPredecessorLSIDView.ParentProtocolLSID AS RunProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ChildProtocolLSID AS RunStepProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ActionSequence AS RunStepSequence, exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID,
	        exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID, exp.ProtocolActionPredecessorLSIDView.PredecessorSequence,
	        exp.Data.RowId AS OutputRowId, exp.Data.LSID AS OutputLSID, exp.Data.Name AS OutputName, exp.Data.CpasType AS OutputCpasType,
	        exp.ExperimentRun.RowId AS RunId
	    FROM exp.ProtocolApplication INNER JOIN
	        exp.ExperimentRun ON exp.ProtocolApplication.RunId = exp.ExperimentRun.RowId INNER JOIN
	        exp.ProtocolActionPredecessorLSIDView ON
	        exp.ProtocolApplication.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID AND
	        exp.ProtocolApplication.ActionSequence = exp.ProtocolActionPredecessorLSIDView.PredecessorSequence AND
	        exp.ExperimentRun.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.ParentProtocolLSID INNER JOIN
	        exp.Data ON exp.ProtocolApplication.RowId = exp.Data.SourceApplicationId
	    WHERE (exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID <> exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID)
2016-04-07 12:52:28 CEST [3782-643] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.PredecessorRunStartDataView AS
	    SELECT exp.ProtocolActionPredecessorLSIDView.ParentProtocolLSID AS RunProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ChildProtocolLSID AS RunStepProtocolLSID,
	        exp.ProtocolActionPredecessorLSIDView.ActionSequence AS RunStepSequence, exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID,
	        exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID, exp.ProtocolActionPredecessorLSIDView.PredecessorSequence,
	        exp.Data.RowId AS OutputRowId, exp.Data.LSID AS OutputLSID, exp.Data.Name AS OutputName, exp.Data.CpasType AS OutputCpasType,
	        exp.ExperimentRun.RowId AS RunId
	    FROM exp.DataInput INNER JOIN
	        exp.ProtocolApplication INNER JOIN
	        exp.ExperimentRun ON exp.ProtocolApplication.RunId = exp.ExperimentRun.RowId INNER JOIN
	        exp.ProtocolActionPredecessorLSIDView ON
	        exp.ProtocolApplication.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID AND
	        exp.ProtocolApplication.ActionSequence = exp.ProtocolActionPredecessorLSIDView.PredecessorSequence AND
	        exp.ExperimentRun.ProtocolLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID ON
	        exp.DataInput.TargetApplicationId = exp.ProtocolApplication.RowId INNER JOIN
	        exp.Data ON exp.DataInput.DataId = exp.Data.RowId
	    WHERE (exp.ProtocolActionPredecessorLSIDView.PredecessorChildLSID = exp.ProtocolActionPredecessorLSIDView.PredecessorParentLSID)
2016-04-07 12:52:28 CEST [3782-644] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.PredecessorAllDataView AS
	    SELECT * FROM exp.PredecessorRunStartDataView
	        UNION
	    SELECT * FROM exp.PredecessorOutputDataView
2016-04-07 12:52:28 CEST [3782-645] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ChildMaterialForApplication AS
	    SELECT exp.Material.RowId, exp.Material.LSID, exp.Material.Name, exp.Material.SourceApplicationId, exp.Material.RunId, exp.Material.Created,
	        exp.ProtocolApplication.RowId AS ApplicationID, exp.ProtocolApplication.LSID AS ApplicationLSID, exp.ProtocolApplication.Name AS ApplicationName,
	        exp.ProtocolApplication.CpasType AS ApplicationType
	    FROM exp.Material INNER JOIN
	        exp.ProtocolApplication ON exp.Material.SourceApplicationId = exp.ProtocolApplication.RowId
	    WHERE (exp.ProtocolApplication.CpasType <> N'ExperimentRunOutput')
2016-04-07 12:52:28 CEST [3782-646] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ChildDataForApplication AS
	    SELECT exp.Data.RowId, exp.Data.LSID, exp.Data.Name, exp.Data.SourceApplicationId, exp.Data.DataFileUrl, exp.Data.RunId, exp.Data.Created,
	        exp.ProtocolApplication.RowId AS ApplicationID, exp.ProtocolApplication.LSID AS ApplicationLSID, exp.ProtocolApplication.Name AS ApplicationName,
	        exp.ProtocolApplication.CpasType AS ApplicationType
	    FROM exp.Data INNER JOIN
	        exp.ProtocolApplication ON exp.Data.SourceApplicationId = exp.ProtocolApplication.RowId
	    WHERE (exp.ProtocolApplication.CpasType <> N'ExperimentRunOutput')
2016-04-07 12:52:28 CEST [3782-647] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.MarkedOutputMaterialForRun AS
	    SELECT exp.Material.RowId, exp.Material.LSID, exp.Material.Name, exp.Material.SourceApplicationId, exp.Material.RunId, exp.Material.Created,
	        PAStartNode.RowId AS ApplicationID, PAStartNode.LSID AS ApplicationLSID, PAStartNode.Name AS ApplicationName,
	        PAStartNode.CpasType AS ApplicationCpasType
	    FROM exp.Material INNER JOIN
	        exp.MaterialInput ON exp.Material.RowId = exp.MaterialInput.MaterialId INNER JOIN
	        exp.ProtocolApplication PAMarkOutputNode ON exp.MaterialInput.TargetApplicationId = PAMarkOutputNode.RowId INNER JOIN
	        exp.ProtocolApplication PAStartNode ON PAMarkOutputNode.RunId = PAStartNode.RunId
	    WHERE (PAMarkOutputNode.CpasType = N'ExperimentRunOutput') AND (PAStartNode.CpasType = N'ExperimentRun')
2016-04-07 12:52:28 CEST [3782-648] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.MarkedOutputDataForRun AS
	    SELECT exp.Data.RowId, exp.Data.LSID, exp.Data.Name, exp.Data.SourceApplicationId, exp.Data.DataFileUrl, exp.Data.RunId, exp.Data.Created,
	        PAStartNode.RowId AS ApplicationID, PAStartNode.LSID AS ApplicationLSID, PAStartNode.Name AS ApplicationName,
	        PAStartNode.CpasType AS ApplicationCpasType
	    FROM exp.Data INNER JOIN
	        exp.DataInput ON exp.Data.RowId = exp.DataInput.DataId INNER JOIN
	        exp.ProtocolApplication PAMarkOutputNode ON exp.DataInput.TargetApplicationId = PAMarkOutputNode.RowId INNER JOIN
	        exp.ProtocolApplication PAStartNode ON PAMarkOutputNode.RunId = PAStartNode.RunId
	    WHERE (PAMarkOutputNode.CpasType = N'ExperimentRunOutput') AND (PAStartNode.CpasType = N'ExperimentRun')
2016-04-07 12:52:28 CEST [3782-649] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.OutputMaterialForNode AS
	    SELECT RowId, LSID, Name, SourceApplicationId, RunId, Created, ApplicationID, ApplicationLSID, ApplicationName
	    FROM exp.ChildMaterialforApplication
	    UNION ALL
	    SELECT RowId, LSID, Name, SourceApplicationId, RunId, Created, ApplicationID, ApplicationLSID, ApplicationName
	    FROM exp.MarkedOutputMaterialForRun
2016-04-07 12:52:28 CEST [3782-650] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.OutputDataForNode AS
	    SELECT RowId, LSID, Name, SourceApplicationId, DataFileUrl, RunId, Created, ApplicationID, ApplicationLSID, ApplicationName
	    FROM exp.ChildDataforApplication
	    UNION ALL
	    SELECT RowId, LSID, Name, SourceApplicationId, DataFileUrl, RunId, Created, ApplicationID, ApplicationLSID, ApplicationName
	    FROM exp.MarkedOutputDataForRun
2016-04-07 12:52:28 CEST [3782-651] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.AllLsid AS
	    SELECT LSID, 'Protocol' AS Type From exp.Protocol UNION
	    SELECT LSID, 'ProtocolApplication' AS TYPE From exp.ProtocolApplication UNION
	    SELECT LSID, 'Experiment' AS TYPE From exp.Experiment UNION
	    SELECT LSID, 'Material' AS TYPE From exp.Material UNION
	    SELECT LSID, 'MaterialSource' AS TYPE From exp.MaterialSource UNION
	    SELECT LSID, 'Data' AS TYPE From exp.Data UNION
	    SELECT LSID, 'ExperimentRun' AS TYPE From exp.ExperimentRun
2016-04-07 12:52:28 CEST [3782-652] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ExperimentRunDataOutputs AS
	    SELECT exp.Data.LSID AS DataLSID, exp.ExperimentRun.LSID AS RunLSID, exp.ExperimentRun.Container AS Container
	    FROM exp.Data
	    JOIN exp.ExperimentRun ON exp.Data.RunId=exp.ExperimentRun.RowId
	    WHERE SourceApplicationId IS NOT NULL
2016-04-07 12:52:28 CEST [3782-653] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ExperimentRunMaterialInputs AS
	    SELECT exp.ExperimentRun.LSID AS RunLSID, exp.Material.*
	    FROM exp.ExperimentRun
	    JOIN exp.ProtocolApplication PAExp ON exp.ExperimentRun.RowId=PAExp.RunId
	    JOIN exp.MaterialInput ON exp.MaterialInput.TargetApplicationId=PAExp.RowId
	    JOIN exp.Material ON exp.MaterialInput.MaterialId=exp.Material.RowId
	    WHERE PAExp.CpasType='ExperimentRun'
2016-04-07 12:52:28 CEST [3782-654] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ExperimentRunDataInputs AS
	    SELECT exp.ExperimentRun.LSID AS RunLSID, exp.Data.*
	    FROM exp.ExperimentRun
	    JOIN exp.ProtocolApplication PAExp ON exp.ExperimentRun.RowId=PAExp.RunId
	    JOIN exp.DataInput ON exp.DataInput.TargetApplicationId=PAExp.RowId
	    JOIN exp.Data ON exp.DataInput.DataId=exp.Data.RowId
	    WHERE PAExp.CpasType='ExperimentRun'
2016-04-07 12:52:28 CEST [3782-655] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.AllLsidContainers AS
	    SELECT LSID, Container, 'Protocol' AS Type FROM exp.Protocol UNION ALL
	    SELECT exp.ProtocolApplication.LSID, Container, 'ProtocolApplication' AS Type FROM exp.ProtocolApplication JOIN exp.Protocol ON exp.Protocol.LSID = exp.ProtocolApplication.ProtocolLSID UNION ALL
	    SELECT LSID, Container, 'Experiment' AS Type FROM exp.Experiment UNION ALL
	    SELECT LSID, Container, 'Material' AS Type FROM exp.Material UNION ALL
	    SELECT LSID, Container, 'MaterialSource' AS Type FROM exp.MaterialSource UNION ALL
	    SELECT LSID, Container, 'Data' AS Type FROM exp.Data UNION ALL
	    SELECT LSID, Container, 'ExperimentRun' AS Type FROM exp.ExperimentRun
2016-04-07 12:52:28 CEST [3782-656] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ObjectClasses AS
	    SELECT DomainURI
	    FROM exp.DomainDescriptor
2016-04-07 12:52:28 CEST [3782-657] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ExperimentRunMaterialOutputs AS
	    SELECT exp.Material.LSID AS MaterialLSID, exp.ExperimentRun.LSID AS RunLSID, exp.ExperimentRun.Container AS Container
	    FROM exp.Material
	    JOIN exp.ExperimentRun ON exp.Material.RunId=exp.ExperimentRun.RowId
	    WHERE SourceApplicationId IS NOT NULL
2016-04-07 12:52:28 CEST [3782-658] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW exp.ObjectPropertiesView AS
	    SELECT
	        O.ObjectId, O.Container, O.ObjectURI, O.OwnerObjectId,
	        PD.name, PD.PropertyURI, PD.RangeURI,
	        P.TypeTag, P.FloatValue, P.StringValue, P.DatetimeValue, P.MvIndicator, PD.PropertyId, PD.ConceptURI, PD.Format
	    FROM exp.ObjectProperty P JOIN exp.Object O ON P.ObjectId = O.ObjectId
	    JOIN exp.PropertyDescriptor PD ON P.PropertyId = PD.PropertyId
2016-04-07 12:52:28 CEST [3782-659] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:28 CEST [3782-660] postgres@labkey DETAIL:  parameters: $1 = 'Experiment', $2 = 'org.labkey.experiment.ExperimentModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:28 CEST [3782-661] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA Flow
2016-04-07 12:52:28 CEST [3782-662] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE flow.Attribute
	(
	    RowId SERIAL NOT NULL,
	    Name VARCHAR(256) NOT NULL,
	
	    CONSTRAINT PK_Attribute PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Attribute UNIQUE(Name)
	)
2016-04-07 12:52:28 CEST [3782-663] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE flow.Object
	(
	    RowId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    DataId INT,
	    TypeId INT NOT NULL,
	    URI VARCHAR(400),
	    CompId INT4,
	    ScriptId INT4,
	    FcsId INT4,
	
	    CONSTRAINT FK_Object_Data FOREIGN KEY(DataId) REFERENCES exp.Data(RowId),
	    CONSTRAINT PK_Object PRIMARY KEY(RowId),
	    CONSTRAINT UQ_Object UNIQUE(DataId)
	)
2016-04-07 12:52:28 CEST [3782-664] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX flow_object_typeid ON flow.object (container, typeid, dataid)
2016-04-07 12:52:28 CEST [3782-665] postgres@labkey LOG:  execute <unnamed>: 
	CLUSTER flow_object_typeid ON flow.object
2016-04-07 12:52:28 CEST [3782-666] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE flow.Keyword
	(
	    ObjectId INT NOT NULL,
	    KeywordId INT NOT NULL,
	    Value TEXT,
	
	    CONSTRAINT PK_Keyword PRIMARY KEY (ObjectId, KeywordId),
	    CONSTRAINT FK_Keyword_Object FOREIGN KEY(ObjectId) REFERENCES flow.Object(RowId),
	    CONSTRAINT FK_Keyword_Attribute FOREIGN KEY (KeywordId) REFERENCES flow.Attribute(RowId)
	)
2016-04-07 12:52:29 CEST [3782-667] postgres@labkey LOG:  execute <unnamed>: 
	
	CLUSTER PK_Keyword ON flow.Keyword
2016-04-07 12:52:29 CEST [3782-668] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE flow.Statistic
	(
	    ObjectId INT NOT NULL,
	    StatisticId INT NOT NULL,
	    Value FLOAT NOT NULL,
	
	    CONSTRAINT PK_Statistic PRIMARY KEY (ObjectId, StatisticId),
	    CONSTRAINT FK_Statistic_Object FOREIGN KEY (ObjectId) REFERENCES flow.Object(RowId),
	    CONSTRAINT FK_Statistic_Attribute FOREIGN KEY (StatisticId) REFERENCES flow.Attribute(RowId)
	)
2016-04-07 12:52:29 CEST [3782-669] postgres@labkey LOG:  execute <unnamed>: 
	
	CLUSTER PK_Statistic ON flow.Statistic
2016-04-07 12:52:29 CEST [3782-670] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE flow.Graph
	(
	    RowId SERIAL NOT NULL,
	    ObjectId INT NOT NULL,
	    GraphId INT NOT NULL,
	    Data BYTEA,
	
	    CONSTRAINT PK_Graph PRIMARY KEY(RowId),
	    CONSTRAINT UQ_Graph UNIQUE(ObjectId, GraphId),
	    CONSTRAINT FK_Graph_Object FOREIGN KEY (ObjectId) REFERENCES flow.Object(RowId),
	    CONSTRAINT FK_Graph_Attribute FOREIGN KEY (GraphId) REFERENCES flow.Attribute(RowId)
	)
2016-04-07 12:52:29 CEST [3782-671] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE flow.Script
	(
	    RowId SERIAL NOT NULL,
	    ObjectId INT NOT NULL,
	    Text TEXT,
	
	    CONSTRAINT PK_Script PRIMARY KEY(RowId),
	    CONSTRAINT UQ_Script UNIQUE(ObjectId),
	    CONSTRAINT FK_Script_Object FOREIGN KEY (ObjectId) REFERENCES flow.Object(RowId)
	)
2016-04-07 12:52:29 CEST [3782-672] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	CREATE TABLE flow.StatisticAttr
	(
	    Container ENTITYID NOT NULL,
	    Id INT NOT NULL,
	    CONSTRAINT "PK_StatisticAttr" UNIQUE (Container, Id)
	)
2016-04-07 12:52:29 CEST [3782-673] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO flow.StatisticAttr (Container, Id)
	SELECT DISTINCT OBJ.Container, PROP.statisticid as id
	FROM flow.object OBJ INNER JOIN
	    flow.statistic PROP ON OBJ.rowid = PROP.objectid
2016-04-07 12:52:29 CEST [3782-674] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE flow.KeywordAttr
	(
	    Container ENTITYID NOT NULL,
	    Id INT NOT NULL,
	    CONSTRAINT "PK_KeywordAttr" UNIQUE (Container, Id)
	)
2016-04-07 12:52:29 CEST [3782-675] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO flow.KeywordAttr (Container, Id)
	SELECT DISTINCT OBJ.Container, PROP.keywordid as id
	FROM flow.object OBJ INNER JOIN
	    flow.keyword PROP ON OBJ.rowid = PROP.objectid
2016-04-07 12:52:29 CEST [3782-676] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE flow.GraphAttr
	(
	    Container ENTITYID NOT NULL,
	    Id INT NOT NULL,
	    CONSTRAINT "PK_GraphAttr" UNIQUE (Container, Id)
	)
2016-04-07 12:52:29 CEST [3782-677] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO flow.GraphAttr (Container, Id)
	SELECT DISTINCT OBJ.Container, PROP.graphid as Id
	FROM flow.object OBJ INNER JOIN
	    flow.graph PROP ON OBJ.rowid = PROP.objectid
2016-04-07 12:52:29 CEST [3782-678] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	ALTER TABLE flow.KeywordAttr
	    ADD COLUMN RowId SERIAL NOT NULL,
	    ADD COLUMN Name VARCHAR(256)
2016-04-07 12:52:29 CEST [3782-679] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.KeywordAttr DROP CONSTRAINT "PK_KeywordAttr"
2016-04-07 12:52:29 CEST [3782-680] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.KeywordAttr ADD CONSTRAINT PK_KeywordAttr PRIMARY KEY (RowId)
2016-04-07 12:52:29 CEST [3782-681] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE flow.KeywordAttr
	    SET Name = Attribute.Name
	    FROM flow.Attribute
	    WHERE Attribute.RowId = KeywordAttr.Id
2016-04-07 12:52:29 CEST [3782-682] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.KeywordAttr ALTER COLUMN Name SET NOT NULL
2016-04-07 12:52:29 CEST [3782-683] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.KeywordAttr ADD CONSTRAINT UQ_KeywordAttr UNIQUE (Container, Name)
2016-04-07 12:52:29 CEST [3782-684] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE flow.Keyword DROP CONSTRAINT PK_Keyword
2016-04-07 12:52:29 CEST [3782-685] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.Keyword DROP CONSTRAINT FK_Keyword_Attribute
2016-04-07 12:52:29 CEST [3782-686] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE flow.Keyword
	SET KeywordId =
	  (SELECT KeywordAttr.RowId FROM flow.KeywordAttr, flow.Object
	   WHERE KeywordAttr.Id = Keyword.KeywordId
	   AND KeywordAttr.Container = Object.Container
	   AND Object.RowId = Keyword.ObjectId)
2016-04-07 12:52:29 CEST [3782-687] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE flow.Keyword ADD CONSTRAINT FK_Keyword_KeywordAttr FOREIGN KEY (KeywordId) REFERENCES flow.KeywordAttr (RowId)
2016-04-07 12:52:29 CEST [3782-688] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	UPDATE flow.KeywordAttr SET Id = RowId
2016-04-07 12:52:29 CEST [3782-689] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	ALTER TABLE flow.StatisticAttr
	    ADD COLUMN RowId SERIAL NOT NULL,
	    ADD COLUMN Name VARCHAR(256)
2016-04-07 12:52:30 CEST [3782-690] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.StatisticAttr DROP CONSTRAINT "PK_StatisticAttr"
2016-04-07 12:52:30 CEST [3782-691] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.StatisticAttr ADD CONSTRAINT PK_StatisticAttr PRIMARY KEY (RowId)
2016-04-07 12:52:30 CEST [3782-692] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE flow.StatisticAttr
	    SET Name = Attribute.Name
	    FROM flow.Attribute
	    WHERE Attribute.RowId = StatisticAttr.Id
2016-04-07 12:52:30 CEST [3782-693] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.StatisticAttr ALTER COLUMN Name SET NOT NULL
2016-04-07 12:52:30 CEST [3782-694] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.StatisticAttr ADD CONSTRAINT UQ_StatisticAttr UNIQUE (Container, Name)
2016-04-07 12:52:30 CEST [3782-695] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE flow.Statistic DROP CONSTRAINT PK_Statistic
2016-04-07 12:52:30 CEST [3782-696] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.Statistic DROP CONSTRAINT FK_Statistic_Attribute
2016-04-07 12:52:30 CEST [3782-697] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE flow.Statistic
	SET StatisticId =
	  (SELECT StatisticAttr.RowId FROM flow.StatisticAttr, flow.Object
	   WHERE StatisticAttr.Id = Statistic.StatisticId
	   AND StatisticAttr.Container = Object.Container
	   AND Object.RowId = Statistic.ObjectId)
2016-04-07 12:52:30 CEST [3782-698] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE flow.Statistic ADD CONSTRAINT FK_Statistic_StatisticAttr FOREIGN KEY (StatisticId) REFERENCES flow.StatisticAttr (RowId)
2016-04-07 12:52:30 CEST [3782-699] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	UPDATE flow.StatisticAttr SET Id = RowId
2016-04-07 12:52:30 CEST [3782-700] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	ALTER TABLE flow.GraphAttr
	    ADD COLUMN RowId SERIAL NOT NULL,
	    ADD COLUMN Name VARCHAR(256)
2016-04-07 12:52:30 CEST [3782-701] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.GraphAttr DROP CONSTRAINT "PK_GraphAttr"
2016-04-07 12:52:30 CEST [3782-702] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.GraphAttr ADD CONSTRAINT PK_GraphAttr PRIMARY KEY (RowId)
2016-04-07 12:52:30 CEST [3782-703] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE flow.GraphAttr
	    SET Name = Attribute.Name
	    FROM flow.Attribute
	    WHERE Attribute.RowId = GraphAttr.Id
2016-04-07 12:52:30 CEST [3782-704] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.GraphAttr ALTER COLUMN Name SET NOT NULL
2016-04-07 12:52:30 CEST [3782-705] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.GraphAttr ADD CONSTRAINT UQ_GraphAttr UNIQUE (Container, Name)
2016-04-07 12:52:30 CEST [3782-706] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE flow.Graph DROP CONSTRAINT PK_Graph
2016-04-07 12:52:30 CEST [3782-707] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.Graph DROP CONSTRAINT UQ_Graph
2016-04-07 12:52:30 CEST [3782-708] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.Graph DROP CONSTRAINT FK_Graph_Attribute
2016-04-07 12:52:30 CEST [3782-709] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE flow.Graph
	SET GraphId =
	  (SELECT GraphAttr.RowId FROM flow.GraphAttr, flow.Object
	   WHERE GraphAttr.Id = Graph.GraphId
	   AND GraphAttr.Container = Object.Container
	   AND Object.RowId = Graph.ObjectId)
2016-04-07 12:52:30 CEST [3782-710] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE flow.Graph ADD CONSTRAINT FK_Graph_GraphAttr FOREIGN KEY (GraphId) REFERENCES flow.GraphAttr (RowId)
2016-04-07 12:52:30 CEST [3782-711] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	UPDATE flow.GraphAttr SET Id = RowId
2016-04-07 12:52:30 CEST [3782-712] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.Keyword ADD CONSTRAINT PK_Keyword PRIMARY KEY (ObjectId, KeywordId)
2016-04-07 12:52:30 CEST [3782-713] postgres@labkey LOG:  execute <unnamed>: 
	CLUSTER PK_Keyword ON flow.keyword
2016-04-07 12:52:30 CEST [3782-714] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.Statistic ADD CONSTRAINT PK_Statistic PRIMARY KEY (ObjectId, StatisticId)
2016-04-07 12:52:30 CEST [3782-715] postgres@labkey LOG:  execute <unnamed>: 
	CLUSTER PK_Statistic ON flow.statistic
2016-04-07 12:52:30 CEST [3782-716] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.Graph DROP COLUMN rowid
2016-04-07 12:52:30 CEST [3782-717] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE flow.Graph ADD CONSTRAINT PK_Graph PRIMARY KEY (ObjectId, GraphId)
2016-04-07 12:52:30 CEST [3782-718] postgres@labkey LOG:  execute <unnamed>: 
	CLUSTER PK_Graph ON flow.graph
2016-04-07 12:52:30 CEST [3782-719] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	DELETE FROM exp.data WHERE rowid IN (
	    SELECT
	        d.rowid
	    FROM
	        exp.data d
	    WHERE
	        d.sourceapplicationid IS NULL AND
	        d.runid IS NULL AND
	        (d.lsid like 'urn:lsid:%:Flow-%' OR d.lsid like 'urn:lsid:%:Data.Folder-%') AND
	        d.rowid NOT IN (
	            SELECT dataid FROM exp.datainput
	            UNION
	            SELECT dataid FROM flow.object
	        )
	)
2016-04-07 12:52:30 CEST [3782-720] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE INDEX IX_Keyword_KeywordId ON flow.Keyword (KeywordId)
2016-04-07 12:52:30 CEST [3782-721] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Statistic_StatisticId ON flow.Statistic (StatisticId)
2016-04-07 12:52:31 CEST [3782-722] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Graph_GraphId ON flow.Graph (GraphId)
2016-04-07 12:52:31 CEST [3782-723] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE flow.keyword ALTER COLUMN value DROP NOT NULL
2016-04-07 12:52:31 CEST [3782-724] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE flow.keyword
	SET value = NULL
	WHERE 0 = LENGTH(TRIM(value))
2016-04-07 12:52:31 CEST [3782-725] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:31 CEST [3782-726] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:31.133', $2 = '0', $3 = '2016-04-07 12:52:31.133', $4 = '0', $5 = '2016-04-07 12:52:31.133', $6 = 'Flow', $7 = 'flow-0.00-13.20.sql'
2016-04-07 12:52:31 CEST [3782-727] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE flow.keyword
	    ADD COLUMN OriginalKeywordId INT
2016-04-07 12:52:31 CEST [3782-728] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE flow.keyword SET OriginalKeywordId = KeywordId
2016-04-07 12:52:31 CEST [3782-729] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE flow.keyword SET KeywordId = (
	    SELECT id FROM flow.keywordattr WHERE flow.keywordattr.rowid = keywordid
	)
2016-04-07 12:52:31 CEST [3782-730] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.keyword
	    ALTER COLUMN OriginalKeywordId SET NOT NULL
2016-04-07 12:52:31 CEST [3782-731] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.keyword
	    ADD CONSTRAINT FK_Keyword_OriginalKeywordId FOREIGN KEY (OriginalKeywordId) REFERENCES flow.keywordattr (rowid)
2016-04-07 12:52:31 CEST [3782-732] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE flow.statistic
	    ADD COLUMN OriginalStatisticId INT
2016-04-07 12:52:31 CEST [3782-733] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE flow.statistic SET OriginalStatisticId = StatisticId
2016-04-07 12:52:31 CEST [3782-734] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE flow.statistic SET StatisticId = (
	    SELECT id FROM flow.statisticattr WHERE flow.statisticattr.rowid = statisticid
	)
2016-04-07 12:52:31 CEST [3782-735] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.statistic
	    ALTER COLUMN OriginalStatisticId SET NOT NULL
2016-04-07 12:52:31 CEST [3782-736] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.statistic
	    ADD CONSTRAINT FK_Statistic_OriginalStatisticId FOREIGN KEY (OriginalStatisticId) REFERENCES flow.statisticattr (rowid)
2016-04-07 12:52:31 CEST [3782-737] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE flow.graph
	    ADD COLUMN OriginalGraphId INT
2016-04-07 12:52:31 CEST [3782-738] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE flow.graph SET OriginalGraphId = GraphId
2016-04-07 12:52:31 CEST [3782-739] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE flow.graph SET GraphId = (
	    SELECT id FROM flow.graphattr WHERE flow.graphattr.rowid = graphid
	)
2016-04-07 12:52:31 CEST [3782-740] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.graph
	    ALTER COLUMN OriginalGraphId SET NOT NULL
2016-04-07 12:52:31 CEST [3782-741] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE flow.graph
	    ADD CONSTRAINT FK_Statistic_OriginalGraphId FOREIGN KEY (OriginalGraphId) REFERENCES flow.graphattr (rowid)
2016-04-07 12:52:31 CEST [3782-742] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:31 CEST [3782-743] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:31.16', $2 = '0', $3 = '2016-04-07 12:52:31.16', $4 = '0', $5 = '2016-04-07 12:52:31.16', $6 = 'Flow', $7 = 'flow-14.10-14.20.sql'
2016-04-07 12:52:31 CEST [3782-744] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:31 CEST [3782-745] postgres@labkey DETAIL:  parameters: $1 = 'Flow', $2 = 'org.labkey.flow.FlowModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:31 CEST [3782-746] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA microarray
2016-04-07 12:52:31 CEST [3782-747] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE microarray.geo_properties
	(
	    rowid SERIAL,
	    prop_name VARCHAR(200),
	    category VARCHAR(200),
	    value TEXT,
	    container ENTITYID,
	    created TIMESTAMP,
	    createdby INTEGER,
	    modified TIMESTAMP,
	    modifiedby INTEGER,
	
	    CONSTRAINT PK_geo_properties PRIMARY KEY (rowid)
	)
2016-04-07 12:52:31 CEST [3782-748] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	UPDATE exp.PropertyDescriptor SET LookupContainer = NULL
	  WHERE Name = 'CelFileId' AND LookupSchema = 'exp' AND LookupQuery = 'Data'
2016-04-07 12:52:31 CEST [3782-749] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:31 CEST [3782-750] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:31.45', $2 = '0', $3 = '2016-04-07 12:52:31.45', $4 = '0', $5 = '2016-04-07 12:52:31.45', $6 = 'Microarray', $7 = 'microarray-0.00-13.30.sql'
2016-04-07 12:52:31 CEST [3782-751] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE microarray.FeatureAnnotationSet (
	  RowId SERIAL,
	  Container ENTITYID NOT NULL,
	  CreatedBy USERID NOT NULL,
	  Created TIMESTAMP NOT NULL,
	  ModifiedBy USERID NOT NULL,
	  Modified TIMESTAMP NOT NULL,
	
	  "Name" VARCHAR(255) NOT NULL,
	  Vendor VARCHAR(50),
	  Description VARCHAR(2000),
	
	  CONSTRAINT PK_FeatureAnnotationSet PRIMARY KEY (RowId),
	  CONSTRAINT FK_FeatureAnnotationSet_Container FOREIGN KEY (Container) REFERENCES core.containers (entityid)
	)
2016-04-07 12:52:31 CEST [3782-752] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE microarray.FeatureAnnotation (
	  RowId SERIAL,
	  Container ENTITYID NOT NULL,
	  CreatedBy USERID NOT NULL,
	  Created TIMESTAMP NOT NULL,
	  ModifiedBy USERID NOT NULL,
	  Modified TIMESTAMP NOT NULL,
	
	  FeatureAnnotationSetId INT NOT NULL,
	  ProbeId VARCHAR(128) NOT NULL,
	  GeneSymbol VARCHAR(2000),
	
	  CONSTRAINT PK_FeatureAnnotation PRIMARY KEY (RowId),
	  CONSTRAINT UQ_FeatureAnnotation_ProbeId_FeatureAnnotationSetId UNIQUE (ProbeId, FeatureAnnotationSetId),
	  CONSTRAINT FK_FeatureAnnotation_FeatureAnnotationSetId FOREIGN KEY (FeatureAnnotationSetId) REFERENCES microarray.FeatureAnnotationSet(RowId)
	)
2016-04-07 12:52:31 CEST [3782-753] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE microarray.FeatureData (
	  RowId SERIAL,
	  "Value" REAL,
	  FeatureId INT NOT NULL,
	  SampleId INT NOT NULL,
	  DataId INT NOT NULL,
	
	  CONSTRAINT PK_FeatureData Primary Key (RowId),
	  CONSTRAINT FK_FeatureData_FeatureId FOREIGN KEY (FeatureId) REFERENCES microarray.FeatureAnnotation (RowId),
	  CONSTRAINT FK_FeatureData_SampleId FOREIGN KEY (SampleId) REFERENCES exp.material (RowId),
	  CONSTRAINT FK_FeatureData_DataId FOREIGN KEY (DataId) REFERENCES exp.data (RowId)
	)
2016-04-07 12:52:31 CEST [3782-754] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE microarray.FeatureAnnotation
	  RENAME ProbeId TO FeatureId
2016-04-07 12:52:31 CEST [3782-755] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE microarray.featureannotation DROP CONSTRAINT uq_featureannotation_probeid_featureannotationsetid
2016-04-07 12:52:31 CEST [3782-756] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_FeatureAnnotation_FeatureId_FeatureAnnotationSetId ON microarray.featureannotation(FeatureId, FeatureAnnotationSetId)
2016-04-07 12:52:31 CEST [3782-757] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE microarray.FeatureAnnotation ADD UniGeneId VARCHAR(2000)
2016-04-07 12:52:31 CEST [3782-758] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE microarray.FeatureAnnotation ADD GeneId VARCHAR(2000)
2016-04-07 12:52:31 CEST [3782-759] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE microarray.FeatureAnnotation ADD AccessionId VARCHAR(128)
2016-04-07 12:52:31 CEST [3782-760] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE microarray.FeatureAnnotation ADD ReqSeqProteinId VARCHAR(2000)
2016-04-07 12:52:31 CEST [3782-761] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE microarray.FeatureAnnotation ADD ReqSeqTranscriptId VARCHAR(2000)
2016-04-07 12:52:31 CEST [3782-762] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_FeatureAnnotation_FeatureAnnotationSetId
	   ON microarray.FeatureAnnotation (FeatureAnnotationSetId)
2016-04-07 12:52:31 CEST [3782-763] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	ALTER TABLE microarray.FeatureAnnotation
	  RENAME ReqSeqProteinId TO RefSeqProteinId
2016-04-07 12:52:31 CEST [3782-764] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE microarray.FeatureAnnotation
	  RENAME ReqSeqTranscriptId TO RefSeqTranscriptId
2016-04-07 12:52:31 CEST [3782-765] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:31 CEST [3782-766] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:31.906', $2 = '0', $3 = '2016-04-07 12:52:31.906', $4 = '0', $5 = '2016-04-07 12:52:31.906', $6 = 'Microarray', $7 = 'microarray-13.30-14.10.sql'
2016-04-07 12:52:31 CEST [3782-767] postgres@labkey LOG:  execute <unnamed>: CREATE INDEX IX_FeatureData_SampleId ON microarray.featuredata(SampleId)
2016-04-07 12:52:31 CEST [3782-768] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_FeatureData_DataId ON microarray.featuredata(DataId)
2016-04-07 12:52:31 CEST [3782-769] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_FeatureData_FeatureId ON microarray.featuredata(FeatureId)
2016-04-07 12:52:32 CEST [3782-770] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:32 CEST [3782-771] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:32.103', $2 = '0', $3 = '2016-04-07 12:52:32.103', $4 = '0', $5 = '2016-04-07 12:52:32.103', $6 = 'Microarray', $7 = 'microarray-14.10-14.20.sql'
2016-04-07 12:52:32 CEST [3782-772] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE microarray.FeatureData ADD CONSTRAINT UQ_FeatureData_DataId_FeatureId_SampleId UNIQUE (DataId, FeatureId, SampleId)
2016-04-07 12:52:32 CEST [3782-773] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	DROP INDEX microarray.IX_FeatureData_DataId
2016-04-07 12:52:32 CEST [3782-774] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:32 CEST [3782-775] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:32.192', $2 = '0', $3 = '2016-04-07 12:52:32.192', $4 = '0', $5 = '2016-04-07 12:52:32.192', $6 = 'Microarray', $7 = 'microarray-15.10-15.20.sql'
2016-04-07 12:52:32 CEST [3782-776] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:32 CEST [3782-777] postgres@labkey DETAIL:  parameters: $1 = 'Microarray', $2 = 'org.labkey.microarray.MicroarrayModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:32 CEST [3782-778] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA filecontent
2016-04-07 12:52:32 CEST [3782-779] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE filecontent.FileRoots
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    Path VARCHAR(255),
	    Type VARCHAR(50),
	    Properties TEXT,
	
	    Enabled BOOLEAN NOT NULL DEFAULT TRUE,
	    UseDefault BOOLEAN NOT NULL DEFAULT FALSE,
	
	    CONSTRAINT PK_FileRoots PRIMARY KEY (RowId)
	)
2016-04-07 12:52:32 CEST [3782-780] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:32 CEST [3782-781] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:32.447', $2 = '0', $3 = '2016-04-07 12:52:32.447', $4 = '0', $5 = '2016-04-07 12:52:32.447', $6 = 'FileContent', $7 = 'filecontent-0.00-12.10.sql'
2016-04-07 12:52:32 CEST [3782-782] postgres@labkey LOG:  execute <unnamed>: DELETE FROM prop.properties WHERE name = 'experimentalFeature.dragDropUpload'
2016-04-07 12:52:32 CEST [3782-783] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	DELETE FROM filecontent.FileRoots WHERE RowId NOT IN (SELECT MIN(RowId) FROM filecontent.FileRoots GROUP BY Container)
2016-04-07 12:52:32 CEST [3782-784] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE filecontent.FileRoots ADD CONSTRAINT Container_Type_Key UNIQUE (Container, Type)
2016-04-07 12:52:32 CEST [3782-785] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:32 CEST [3782-786] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:32.56', $2 = '0', $3 = '2016-04-07 12:52:32.56', $4 = '0', $5 = '2016-04-07 12:52:32.56', $6 = 'FileContent', $7 = 'filecontent-14.10-14.20.sql'
2016-04-07 12:52:32 CEST [3782-787] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:32 CEST [3782-788] postgres@labkey DETAIL:  parameters: $1 = 'FileContent', $2 = 'org.labkey.filecontent.FileContentModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:32 CEST [3782-789] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA list
2016-04-07 12:52:32 CEST [3782-790] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP TABLE exp.indexinteger, exp.indexvarchar
2016-04-07 12:52:32 CEST [3782-791] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.list DROP CONSTRAINT uq_rowid
2016-04-07 12:52:32 CEST [3782-792] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.list DROP COLUMN rowid
2016-04-07 12:52:32 CEST [3782-793] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:32 CEST [3782-794] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:32.683', $2 = '0', $3 = '2016-04-07 12:52:32.683', $4 = '0', $5 = '2016-04-07 12:52:32.683', $6 = 'List', $7 = 'list-13.10-13.20.sql'
2016-04-07 12:52:32 CEST [3782-795] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:32 CEST [3782-796] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:32.73', $2 = '0', $3 = '2016-04-07 12:52:32.73', $4 = '0', $5 = '2016-04-07 12:52:32.73', $6 = 'List', $7 = 'list-13.30-14.10.sql'
2016-04-07 12:52:32 CEST [3782-797] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:32 CEST [3782-798] postgres@labkey DETAIL:  parameters: $1 = 'List', $2 = 'org.labkey.list.ListModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:32 CEST [3782-799] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA prot
2016-04-07 12:52:32 CEST [3782-800] postgres@labkey LOG:  execute <unnamed>: 
	CREATE SCHEMA ms2
2016-04-07 12:52:32 CEST [3782-801] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE prot.AnnotInsertions
	(
	    InsertId SERIAL NOT NULL,
	    FileName VARCHAR(200) NULL,
	    FileType VARCHAR(50) NULL,
	    Comment VARCHAR(200) NULL,
	    InsertDate TIMESTAMP NOT NULL,
	    ChangeDate TIMESTAMP NULL,
	    Mouthsful INT NULL DEFAULT 0,
	    RecordsProcessed INT NULL DEFAULT 0,
	    CompletionDate TIMESTAMP NULL,
	    SequencesAdded INT NULL DEFAULT 0,
	    AnnotationsAdded INT NULL DEFAULT 0,
	    IdentifiersAdded INT NULL DEFAULT 0,
	    OrganismsAdded INT NULL DEFAULT 0,
	    MRMSize INT NULL DEFAULT 0,
	    MRMSequencesAdded INT NULL,
	    MRMAnnotationsAdded INT NULL,
	    MRMIdentifiersAdded INT NULL,
	    MRMOrganismsAdded INT NULL,
	    DefaultOrganism VARCHAR(100) NULL DEFAULT 'Unknown unknown',
	    OrgShouldBeGuessed INT NULL DEFAULT 1,
	
	    CONSTRAINT PK_ProtAnnotInsertions PRIMARY KEY (InsertId)
	)
2016-04-07 12:52:32 CEST [3782-802] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE prot.AnnotInsertions ALTER COLUMN FileName TYPE VARCHAR(400)
2016-04-07 12:52:32 CEST [3782-803] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE prot.InfoSources
	(
	    SourceId SERIAL NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    CurrentVersion VARCHAR(50) NULL,
	    CurrentVersionDate TIMESTAMP NULL,
	    Url VARCHAR(1000) NULL ,
	    ProcessToObtain BYTEA NULL,
	    LastUpdate TIMESTAMP NULL,
	    InsertDate TIMESTAMP NOT NULL,
	    ModDate TIMESTAMP NULL ,
	    Deleted INT NOT NULL DEFAULT 0,
	 
	    CONSTRAINT PK_ProtSeqSources PRIMARY KEY (SourceId)
	)
2016-04-07 12:52:33 CEST [3782-804] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	INSERT INTO prot.InfoSources (Name, Url, InsertDate) VALUES ('Genbank', 'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=protein&cmd=search&term={}', '2005-03-04 12:08:10')
2016-04-07 12:52:33 CEST [3782-805] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.InfoSources (Name, Url, InsertDate) VALUES ('NiceProt', 'http://au.expasy.org/cgi-bin/niceprot.pl?{}', '2005-03-04 12:08:10')
2016-04-07 12:52:33 CEST [3782-806] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.InfoSources (Name, Url, InsertDate) VALUES ('GeneCards', 'http://www.genecards.org/cgi-bin/carddisp?{}&alias=yes', '2005-03-04 12:08:10')
2016-04-07 12:52:33 CEST [3782-807] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.InfoSources (Name, Url, InsertDate) VALUES ('NCBI Taxonomy', 'http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id={}', '2005-03-04 12:08:10')
2016-04-07 12:52:33 CEST [3782-808] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.InfoSources (Name, Url, InsertDate) VALUES ('GO', 'http://amigo.geneontology.org/cgi-bin/amigo/go.cgi?action=query&view=query&query={}', '2005-03-04 12:08:52')
2016-04-07 12:52:33 CEST [3782-809] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE prot.InfoSources SET Url = 'http://www.genecards.org/cgi-bin/carddisp.pl?gene={}' WHERE Name = 'GeneCards'
2016-04-07 12:52:33 CEST [3782-810] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE prot.InfoSources SET URL = 'http://www.uniprot.org/uniprot/{}' WHERE Name = 'NiceProt'
2016-04-07 12:52:33 CEST [3782-811] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE prot.InfoSources SET URL = 'http://www.ncbi.nlm.nih.gov/protein/{}' WHERE Name = 'Genbank'
2016-04-07 12:52:33 CEST [3782-812] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.AnnotationTypes
	(
	    AnnotTypeId SERIAL NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    SourceId INT NULL,
	    Description VARCHAR(200) NULL,
	    EntryDate TIMESTAMP NOT NULL,
	    ModDate TIMESTAMP NULL,
	    Deleted INTEGER NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_ProtAnnotationTypes PRIMARY KEY (AnnotTypeId),
	    CONSTRAINT FK_ProtAnnotationTypes_ProtSeqSources FOREIGN KEY (SourceId) REFERENCES prot.InfoSources (SourceId)
	)
2016-04-07 12:52:33 CEST [3782-813] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_ProtAnnotationTypes ON prot.AnnotationTypes(Name)
2016-04-07 12:52:33 CEST [3782-814] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO prot.AnnotationTypes (Name,SourceId,EntryDate) VALUES ('GO_F',5,'2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-815] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.AnnotationTypes (Name,SourceId,EntryDate) VALUES ('GO_P',5,'2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-816] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.AnnotationTypes (Name,EntryDate) VALUES ('keyword','2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-817] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.AnnotationTypes (Name,EntryDate) VALUES ('feature','2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-818] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.AnnotationTypes (Name,SourceId,EntryDate) VALUES ('GO_C',5,'2005-03-04 11:38:13')
2016-04-07 12:52:33 CEST [3782-819] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.AnnotationTypes (Name,EntryDate) VALUES ('FullOrganismName',now())
2016-04-07 12:52:33 CEST [3782-820] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.AnnotationTypes (Name,EntryDate) VALUES ('LookupString',now())
2016-04-07 12:52:33 CEST [3782-821] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_AnnotationTypes_SourceId ON prot.annotationtypes(SourceId)
2016-04-07 12:52:33 CEST [3782-822] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.IdentTypes
	(
	    IdentTypeId SERIAL NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    CannonicalSourceId INT NULL,
	    EntryDate TIMESTAMP NOT NULL,
	    Description VARCHAR(200) NULL,
	    Deleted INT NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_ProtIdentTypes PRIMARY KEY (IdentTypeId),
	    CONSTRAINT FK_ProtIdentTypes_ProtInfoSources FOREIGN KEY (CannonicalSourceId) REFERENCES prot.InfoSources (SourceId)
	)
2016-04-07 12:52:33 CEST [3782-823] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_ProtIdentTypes ON prot.IdentTypes(Name)
2016-04-07 12:52:33 CEST [3782-824] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_IdentTypes_cannonicalsourceid ON prot.IdentTypes(cannonicalsourceid)
2016-04-07 12:52:33 CEST [3782-825] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO prot.IdentTypes (Name,CannonicalSourceId,EntryDate) VALUES ('Genbank',1,'2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-826] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,CannonicalSourceId,EntryDate) VALUES ('SwissProt',2,'2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-827] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,CannonicalSourceId,EntryDate) VALUES ('GeneName',3,'2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-828] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,CannonicalSourceId,EntryDate) VALUES ('NCBI Taxonomy',4,'2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-829] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('EMBL','2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-830] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('IntAct','2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-831] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Ensembl','2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-832] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('FlyBase','2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-833] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,CannonicalSourceId,EntryDate) VALUES ('GO',5,'2005-03-04 11:37:14')
2016-04-07 12:52:33 CEST [3782-834] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('InterPro','2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-835] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Pfam','2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-836] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PIR','2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-837] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Uniprot_keyword','2005-03-04 11:37:15')
2016-04-07 12:52:33 CEST [3782-838] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('SMART','2005-03-04 11:37:16')
2016-04-07 12:52:33 CEST [3782-839] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('HSSP','2005-03-04 11:37:17')
2016-04-07 12:52:33 CEST [3782-840] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('ProDom','2005-03-04 11:37:17')
2016-04-07 12:52:33 CEST [3782-841] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PROSITE','2005-03-04 11:37:17')
2016-04-07 12:52:33 CEST [3782-842] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PRINTS','2005-03-04 11:37:19')
2016-04-07 12:52:33 CEST [3782-843] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('TIGRFAMs','2005-03-04 11:37:22')
2016-04-07 12:52:33 CEST [3782-844] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('EC','2005-03-04 11:37:22')
2016-04-07 12:52:33 CEST [3782-845] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('MaizeDB','2005-03-04 11:37:33')
2016-04-07 12:52:33 CEST [3782-846] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('TRANSFAC','2005-03-04 11:37:34')
2016-04-07 12:52:33 CEST [3782-847] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('WormBase','2005-03-04 11:37:38')
2016-04-07 12:52:33 CEST [3782-848] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('WormPep','2005-03-04 11:37:39')
2016-04-07 12:52:33 CEST [3782-849] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('COMPLUYEAST-2DPAGE','2005-03-04 11:37:39')
2016-04-07 12:52:33 CEST [3782-850] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('DictyBase','2005-03-04 11:37:40')
2016-04-07 12:52:33 CEST [3782-851] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Gramene','2005-03-04 11:37:45')
2016-04-07 12:52:33 CEST [3782-852] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('OGP','2005-03-04 11:38:02')
2016-04-07 12:52:33 CEST [3782-853] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Genew','2005-03-04 11:38:02')
2016-04-07 12:52:33 CEST [3782-854] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('H-InvDB','2005-03-04 11:38:02')
2016-04-07 12:52:33 CEST [3782-855] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('MIM','2005-03-04 11:38:02')
2016-04-07 12:52:33 CEST [3782-856] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('MGD','2005-03-04 11:38:04')
2016-04-07 12:52:33 CEST [3782-857] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('RGD','2005-03-04 11:38:06')
2016-04-07 12:52:33 CEST [3782-858] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PDB','2005-03-04 11:38:10')
2016-04-07 12:52:33 CEST [3782-859] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('SWISS-2DPAGE','2005-03-04 11:38:33')
2016-04-07 12:52:33 CEST [3782-860] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Aarhus/Ghent-2DPAGE','2005-03-04 11:38:33')
2016-04-07 12:52:33 CEST [3782-861] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PMMA-2DPAGE','2005-03-04 11:38:45')
2016-04-07 12:52:33 CEST [3782-862] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('TIGR','2005-03-04 11:38:49')
2016-04-07 12:52:33 CEST [3782-863] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('TubercuList','2005-03-04 11:38:50')
2016-04-07 12:52:33 CEST [3782-864] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Leproma','2005-03-04 11:39:05')
2016-04-07 12:52:33 CEST [3782-865] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('GeneFarm','2005-03-04 11:39:35')
2016-04-07 12:52:33 CEST [3782-866] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('GermOnline','2005-03-04 11:43:54')
2016-04-07 12:52:33 CEST [3782-867] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('SGD','2005-03-04 11:43:54')
2016-04-07 12:52:33 CEST [3782-868] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('GeneDB_SPombe','2005-03-04 11:44:15')
2016-04-07 12:52:33 CEST [3782-869] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PIRSF','2005-03-04 11:45:42')
2016-04-07 12:52:33 CEST [3782-870] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('HAMAP','2005-03-04 11:46:49')
2016-04-07 12:52:33 CEST [3782-871] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Reactome','2005-03-04 11:46:52')
2016-04-07 12:52:33 CEST [3782-872] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('ECO2DBASE','2005-03-04 11:46:55')
2016-04-07 12:52:33 CEST [3782-873] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('EchoBASE','2005-03-04 11:46:55')
2016-04-07 12:52:33 CEST [3782-874] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('EcoGene','2005-03-04 11:46:55')
2016-04-07 12:52:33 CEST [3782-875] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('SubtiList','2005-03-04 11:46:58')
2016-04-07 12:52:33 CEST [3782-876] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('ListiList','2005-03-04 11:47:14')
2016-04-07 12:52:33 CEST [3782-877] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('GlycoSuiteDB','2005-03-04 11:47:44')
2016-04-07 12:52:33 CEST [3782-878] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('StyGene','2005-03-04 11:51:59')
2016-04-07 12:52:33 CEST [3782-879] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PHCI-2DPAGE','2005-03-04 11:52:19')
2016-04-07 12:52:33 CEST [3782-880] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Siena-2DPAGE','2005-03-04 11:55:22')
2016-04-07 12:52:33 CEST [3782-881] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('HSC-2DPAGE','2005-03-04 11:55:41')
2016-04-07 12:52:33 CEST [3782-882] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('MEROPS','2005-03-04 11:59:32')
2016-04-07 12:52:33 CEST [3782-883] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('AGD','2005-03-04 12:14:40')
2016-04-07 12:52:33 CEST [3782-884] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PhotoList','2005-03-04 12:15:22')
2016-04-07 12:52:33 CEST [3782-885] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('ZFIN','2005-03-04 12:15:39')
2016-04-07 12:52:33 CEST [3782-886] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('MypuList','2005-03-04 12:24:15')
2016-04-07 12:52:33 CEST [3782-887] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('SagaList','2005-03-04 12:25:40')
2016-04-07 12:52:33 CEST [3782-888] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('ANU-2DPAGE','2005-03-04 12:29:22')
2016-04-07 12:52:33 CEST [3782-889] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Rat-heart-2DPAGE','2005-03-04 12:30:51')
2016-04-07 12:52:33 CEST [3782-890] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('PhosSite','2005-03-04 12:49:00')
2016-04-07 12:52:33 CEST [3782-891] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('REBASE','2005-03-04 13:25:29')
2016-04-07 12:52:33 CEST [3782-892] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('Maize-2DPAGE','2005-03-04 15:10:53')
2016-04-07 12:52:33 CEST [3782-893] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO prot.IdentTypes (Name,EntryDate) VALUES ('HIV','2005-03-04 22:13:40')
2016-04-07 12:52:33 CEST [3782-894] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.Organisms
	(
	    OrgId SERIAL NOT NULL,
	    CommonName VARCHAR(100) NULL,
	    Genus VARCHAR(100) NOT NULL,
	    Species VARCHAR(100) NOT NULL,
	    Comments VARCHAR(200) NULL,
	    IdentId INT NULL,
	    Deleted INT NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_ProtOrganisms PRIMARY KEY (OrgId)
	)
2016-04-07 12:52:33 CEST [3782-895] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_ProtOrganisms_Genus_Species ON prot.Organisms(Genus, Species)
2016-04-07 12:52:33 CEST [3782-896] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO prot.Organisms (CommonName,Genus,Species,Comments) VALUES ('Unknown organism','Unknown','unknown','Organism is unknown')
2016-04-07 12:52:33 CEST [3782-897] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Organisms_IdentId ON prot.Organisms(IdentId)
2016-04-07 12:52:33 CEST [3782-898] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.Sequences
	(
	    SeqId SERIAL NOT NULL,
	    ProtSequence TEXT NULL,
	    Hash VARCHAR(100) NULL ,
	    Description VARCHAR(200) NULL,
	    SourceId INT NULL,
	    SourceVersion VARCHAR(50) NULL,
	    InsertDate TIMESTAMP NOT NULL,
	    ChangeDate TIMESTAMP NULL,
	    SourceChangeDate TIMESTAMP NULL,
	    SourceInsertDate TIMESTAMP NULL,
	    OrgId INT NULL,
	    Mass FLOAT NULL,
	    BestName VARCHAR(50) NULL,
	    BestGeneName VARCHAR(50) NULL,
	    Length INT NULL,
	    Deleted INT NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_ProtSequences PRIMARY KEY (SeqId),
	    CONSTRAINT FK_ProtSequences_ProtSeqSources FOREIGN KEY (SourceId) REFERENCES prot.InfoSources (SourceId),
	    CONSTRAINT FK_ProtSequences_ProtOrganisms FOREIGN KEY (OrgId) REFERENCES prot.Organisms (OrgId)
	)
2016-04-07 12:52:33 CEST [3782-899] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_ProtSequences_OrgId ON prot.Sequences(OrgId)
2016-04-07 12:52:33 CEST [3782-900] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ProtSequences_BestGeneName ON prot.Sequences(BestGeneName)
2016-04-07 12:52:33 CEST [3782-901] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_ProtSequences_Hash_OrgId ON prot.Sequences(Hash, OrgId)
2016-04-07 12:52:33 CEST [3782-902] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE INDEX IX_SequencesSource ON prot.Sequences(SourceId)
2016-04-07 12:52:33 CEST [3782-903] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.Identifiers
	(
	    IdentId SERIAL NOT NULL,
	    IdentTypeId INT NOT NULL,
	    Identifier VARCHAR(50) NOT NULL,
	    SeqId INT NULL,
	    SourceId INT NULL,
	    EntryDate TIMESTAMP NOT NULL,
	    SourceVersion VARCHAR(50) NULL,
	    Deleted INT NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_ProtIdentifiers PRIMARY KEY (IdentId),
	    CONSTRAINT FK_ProtIdentifiers_ProtIdentTypes FOREIGN KEY (IdentTypeId) REFERENCES prot.IdentTypes (IdentTypeId),
	    CONSTRAINT FK_ProtIdentifiers_ProtSeqSources FOREIGN KEY (SourceId)    REFERENCES prot.InfoSources (SourceId),
	    CONSTRAINT FK_ProtIdentifiers_ProtSequences  FOREIGN KEY (SeqId)       REFERENCES prot.Sequences (SeqId)
	)
2016-04-07 12:52:33 CEST [3782-904] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ProtIdentifiers_Identifier ON prot.Identifiers(Identifier)
2016-04-07 12:52:33 CEST [3782-905] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_ProtIdentifiers_IdentTypeId_Identifier_SeqId ON prot.Identifiers(IdentTypeId, Identifier, SeqId)
2016-04-07 12:52:33 CEST [3782-906] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Identifiers_SourceId ON prot.Identifiers(sourceid)
2016-04-07 12:52:33 CEST [3782-907] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Identifiers_SeqId ON prot.Identifiers(SeqId)
2016-04-07 12:52:33 CEST [3782-908] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE prot.Organisms ADD CONSTRAINT FK_ProtOrganisms_ProtIdentifiers FOREIGN KEY (IdentId) REFERENCES prot.Identifiers (IdentId)
2016-04-07 12:52:33 CEST [3782-909] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.Annotations
	(
	    AnnotId SERIAL NOT NULL,
	    AnnotTypeId INT NOT NULL,
	    AnnotVal VARCHAR(200) NULL,
	    AnnotIdent INT NULL,
	    SeqId INT NULL,
	    AnnotSourceId INT NULL,
	    AnnotSourceVersion VARCHAR(50) NULL,
	    InsertDate TIMESTAMP NOT NULL,
	    ModDate TIMESTAMP NULL,
	    StartPos INT NULL,
	    EndPos INT NULL,
	    Deleted INT NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_ProtAnnotations PRIMARY KEY (AnnotId),
	    CONSTRAINT FK_ProtAnnotations_ProtAnnotationTypes FOREIGN KEY (AnnotTypeId) REFERENCES prot.AnnotationTypes (AnnotTypeId),
	    CONSTRAINT FK_ProtAnnotations_ProtIdentifiers FOREIGN KEY (AnnotIdent) REFERENCES prot.Identifiers (IdentId),
	    CONSTRAINT FK_ProtAnnotations_ProtSeqSources FOREIGN KEY (AnnotSourceId) REFERENCES prot.InfoSources (SourceId),
	    CONSTRAINT FK_ProtAnnotations_ProtSequences FOREIGN KEY (SeqId) REFERENCES prot.Sequences (SeqId)
	)
2016-04-07 12:52:33 CEST [3782-910] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ProtAnnotations_SeqId_AnnotTypeId ON prot.Annotations(SeqId, AnnotTypeId)
2016-04-07 12:52:33 CEST [3782-911] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_ProtAnnotations_AnnotTypeId_AnnotVal_SeqId_StartPos_EndPos ON prot.Annotations(AnnotTypeId, AnnotVal, SeqId, StartPos, EndPos)
2016-04-07 12:52:34 CEST [3782-912] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Annotations_AnnotVal ON prot.Annotations(annotval)
2016-04-07 12:52:34 CEST [3782-913] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Annotations_AnnotIdent ON prot.Annotations(annotident)
2016-04-07 12:52:34 CEST [3782-914] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Annotations_annotsourceid ON prot.Annotations(annotsourceid)
2016-04-07 12:52:34 CEST [3782-915] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Annotations_IdentId ON prot.Annotations(AnnotIdent)
2016-04-07 12:52:34 CEST [3782-916] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.FastaLoads
	(
	    FastaId SERIAL NOT NULL,
	    FileName VARCHAR(200) NOT NULL,
	    FileChecksum VARCHAR(50) NULL,
	    Comment VARCHAR(200) NULL,
	    InsertDate TIMESTAMP NOT NULL,
	    DbName VARCHAR(100) NULL,
	    DbVersion VARCHAR(100) NULL,
	    DbSource INT NULL,
	    DbDate TIMESTAMP NULL,
	    Reference VARCHAR(200) NULL,
	    NSequences INT NULL,
	    Sequences TEXT NULL,
	 
	    CONSTRAINT FK_ProtFastas_ProtSeqSources FOREIGN KEY (DbSource) REFERENCES prot.InfoSources (SourceId),
	    CONSTRAINT PK_ProtFastas PRIMARY KEY (FastaId)
	)
2016-04-07 12:52:34 CEST [3782-917] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_FastaLoads_DBSource ON prot.fastaloads(dbsource)
2016-04-07 12:52:34 CEST [3782-918] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE prot.SprotOrgMap
	(
	    SprotSuffix VARCHAR(5) NOT NULL,
	    SuperKingdomCode CHAR(1) NULL,
	    TaxonId INT NULL,
	    FullName VARCHAR(200) NOT NULL,
	    Genus VARCHAR(100) NOT NULL,
	    Species VARCHAR(100) NOT NULL,
	    CommonName VARCHAR(200) NULL,
	    Synonym VARCHAR(200) NULL,
	
	    CONSTRAINT PK_ProtSprotOrgMap PRIMARY KEY (SprotSuffix)
	)
2016-04-07 12:52:34 CEST [3782-919] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE prot.FastaFiles
	(
	    FastaId SERIAL,
	    FileName VARCHAR(400),
	    Loaded TIMESTAMP,
	    FileChecksum VARCHAR(50) NULL,         
	    ScoringAnalysis BOOLEAN NOT NULL DEFAULT FALSE,
	
	    CONSTRAINT PK_ProteinDataBases PRIMARY KEY (FastaId)
	)
2016-04-07 12:52:34 CEST [3782-920] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms2.Runs
	(
	    _ts TIMESTAMP DEFAULT now(),
	    Run SERIAL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Owner USERID NULL,
	
	    Container ENTITYID NOT NULL,
	    EntityId ENTITYID NOT NULL,
	    Description VARCHAR(300),
	    Path VARCHAR(500),
	    FileName VARCHAR(300),
	    Status VARCHAR(200),
	    StatusId INT NOT NULL DEFAULT 0,
	    Type VARCHAR(30),
	    SearchEngine VARCHAR(20),
	    MassSpecType VARCHAR(200),
	    FastaId INT NOT NULL DEFAULT 0,
	    SearchEnzyme VARCHAR(50),
	    Deleted BOOLEAN NOT NULL DEFAULT '0',
	    ExperimentRunLSID LSIDType NULL,
	    HasPeptideProphet BOOLEAN NOT NULL DEFAULT '0',
	    PeptideCount INT NOT NULL DEFAULT 0,    
	    SpectrumCount INT NOT NULL DEFAULT 0,
	    NegativeHitCount INT NOT NULL DEFAULT 0,
	    
	    CONSTRAINT PK_MS2Runs PRIMARY KEY (Run)
	)
2016-04-07 12:52:34 CEST [3782-921] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE INDEX MS2Runs_Stats ON ms2.Runs(PeptideCount, SpectrumCount, Deleted, StatusId)
2016-04-07 12:52:34 CEST [3782-922] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX MS2Runs_ExperimentRunLSID ON ms2.Runs(ExperimentRunLSID)
2016-04-07 12:52:34 CEST [3782-923] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX MS2Runs_Container ON ms2.Runs(Container)
2016-04-07 12:52:34 CEST [3782-924] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE ms2.Runs SET Type = 'LegacyComet' WHERE Type = 'Comet'
2016-04-07 12:52:34 CEST [3782-925] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.Fractions
	(
	    Fraction SERIAL,
	    Run INT NOT NULL,
	    Description VARCHAR(300),
	    FileName VARCHAR(300),
	    HydroB0 REAL,
	    HydroB1 REAL,
	    HydroR2 REAL,
	    HydroSigma REAL,
	    PepXmlDataLSID LSIDType NULL,
	    MzXmlURL VARCHAR(400) NULL,
	
	    CONSTRAINT PK_MS2Fractions PRIMARY KEY (Fraction)
	)
2016-04-07 12:52:34 CEST [3782-926] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Fractions_Run_Fraction ON ms2.Fractions(Run,Fraction)
2016-04-07 12:52:34 CEST [3782-927] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Fractions_MzXMLURL ON ms2.fractions(mzxmlurl)
2016-04-07 12:52:35 CEST [3782-928] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE ms2.Fractions ADD COLUMN ScanCount INT
2016-04-07 12:52:35 CEST [3782-929] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.Fractions ADD COLUMN MS1ScanCount INT
2016-04-07 12:52:35 CEST [3782-930] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.Fractions ADD COLUMN MS2ScanCount INT
2016-04-07 12:52:35 CEST [3782-931] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.Fractions ADD COLUMN MS3ScanCount INT
2016-04-07 12:52:35 CEST [3782-932] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.Fractions ADD COLUMN MS4ScanCount INT
2016-04-07 12:52:35 CEST [3782-933] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.Modifications
	(
	    Run INT NOT NULL,
	    AminoAcid VARCHAR (1) NOT NULL,
	    MassDiff REAL NOT NULL,
	    Variable BOOLEAN NOT NULL,
	    Symbol VARCHAR (1) NOT NULL,
	
	    CONSTRAINT PK_MS2Modifications PRIMARY KEY (Run, AminoAcid, Symbol)
	)
2016-04-07 12:52:35 CEST [3782-934] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms2.SpectraData
	(
	    Fraction INT NOT NULL,
	    Scan INT NOT NULL,
	    Spectrum BYTEA NOT NULL,
	
	    CONSTRAINT PK_MS2SpectraData PRIMARY KEY (Fraction, Scan)
	)
2016-04-07 12:52:35 CEST [3782-935] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.History
	(
	    Date TIMESTAMP,
	    Runs BIGINT,
	    Peptides BIGINT
	)
2016-04-07 12:52:35 CEST [3782-936] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_MS2History ON ms2.History (Date)
2016-04-07 12:52:35 CEST [3782-937] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	
	
	CREATE TABLE prot.GoTerm
	(
	    id INTEGER NOT NULL,
	    name VARCHAR(255) NOT NULL DEFAULT '',
	    termtype VARCHAR(55) NOT NULL DEFAULT '',
	    acc VARCHAR(255) NOT NULL DEFAULT '',
	    isobsolete INTEGER NOT NULL DEFAULT 0,
	    isroot INTEGER NOT NULL DEFAULT 0,
	
	    CONSTRAINT pk_goterm PRIMARY KEY(id)
	)
2016-04-07 12:52:35 CEST [3782-938] postgres@labkey LOG:  execute <unnamed>: 
	 
	CREATE INDEX IX_GoTerm_Name ON prot.GoTerm(name)
2016-04-07 12:52:35 CEST [3782-939] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoTerm_TermType ON prot.GoTerm(termtype)
2016-04-07 12:52:35 CEST [3782-940] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_GoTerm_Acc ON prot.GoTerm(acc)
2016-04-07 12:52:35 CEST [3782-941] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE prot.GoTerm2Term
	(
	    id INTEGER NOT NULL,
	    relationshipTypeId INTEGER NOT NULL DEFAULT 0,
	    term1Id INTEGER NOT NULL DEFAULT 0,
	    term2Id INTEGER NOT NULL DEFAULT 0,
	    complete INTEGER NOT NULL DEFAULT 0,
	
	    CONSTRAINT pk_goterm2term PRIMARY KEY(id)
	)
2016-04-07 12:52:35 CEST [3782-942] postgres@labkey LOG:  execute <unnamed>:  
	
	CREATE INDEX IX_GoTerm2Term_term1Id ON prot.GoTerm2Term(term1Id)
2016-04-07 12:52:35 CEST [3782-943] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoTerm2Term_term2Id ON prot.GoTerm2Term(term2Id)
2016-04-07 12:52:35 CEST [3782-944] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoTerm2Term_term1_2_Id ON prot.GoTerm2Term(term1Id,term2Id)
2016-04-07 12:52:35 CEST [3782-945] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoTerm2Term_relationshipTypeId ON prot.GoTerm2Term(relationshipTypeId)
2016-04-07 12:52:35 CEST [3782-946] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_GoTerm2Term_1_2_R ON prot.GoTerm2Term(term1Id,term2Id,relationshipTypeId)
2016-04-07 12:52:35 CEST [3782-947] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE prot.GoGraphPath
	(
	    id INTEGER NOT NULL,
	    term1Id INTEGER NOT NULL DEFAULT 0,
	    term2Id INTEGER NOT NULL DEFAULT 0,
	    distance INTEGER NOT NULL DEFAULT 0,
	
	    CONSTRAINT pk_gographpath PRIMARY KEY(id)
	)
2016-04-07 12:52:35 CEST [3782-948] postgres@labkey LOG:  execute <unnamed>: 
	 
	CREATE INDEX IX_GoGraphPath_term1Id ON prot.GoGraphPath(term1Id)
2016-04-07 12:52:35 CEST [3782-949] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoGraphPath_term2Id ON prot.GoGraphPath(term2Id)
2016-04-07 12:52:35 CEST [3782-950] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoGraphPath_term1_2_Id ON prot.GoGraphPath(term1Id,term2Id)
2016-04-07 12:52:35 CEST [3782-951] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoGraphPath_t1_distance ON prot.GoGraphPath(term1Id,distance)
2016-04-07 12:52:35 CEST [3782-952] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE prot.GoTermDefinition
	(
	    termId INTEGER NOT NULL DEFAULT 0,
	    termDefinition text NOT NULL,
	    dbXrefId INTEGER NULL DEFAULT NULL,
	    termComment text NULL DEFAULT NULL,
	    reference VARCHAR(255) NULL DEFAULT NULL
	)
2016-04-07 12:52:36 CEST [3782-953] postgres@labkey LOG:  execute <unnamed>: 
	 
	CREATE INDEX IX_GoTermDefinition_dbXrefId ON prot.GoTermDefinition(dbXrefId)
2016-04-07 12:52:36 CEST [3782-954] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_GoTermDefinition_termId ON prot.GoTermDefinition(termId)
2016-04-07 12:52:36 CEST [3782-955] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE prot.GoTermSynonym
	(
	    termId INTEGER NOT NULL DEFAULT 0,
	    termSynonym VARCHAR(500) NULL DEFAULT NULL,
	    accSynonym VARCHAR(255) NULL DEFAULT NULL,
	    synonymTypeId INTEGER NOT NULL DEFAULT 0
	)
2016-04-07 12:52:36 CEST [3782-956] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_GoTermSynonym_SynonymTypeId ON prot.GoTermSynonym(synonymTypeId)
2016-04-07 12:52:36 CEST [3782-957] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoTermSynonym_TermId ON prot.GoTermSynonym(termId)
2016-04-07 12:52:36 CEST [3782-958] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GoTermSynonym_termSynonym ON prot.GoTermSynonym(termSynonym)
2016-04-07 12:52:36 CEST [3782-959] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_GoTermSynonym_termId_termSynonym ON prot.GoTermSynonym(termId,termSynonym)
2016-04-07 12:52:36 CEST [3782-960] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TEMPORARY TABLE idents
	(
	    Identifier VARCHAR(50) NOT NULL,
	    CommonName VARCHAR(20) NULL,
	    Genus VARCHAR(100) NOT NULL,
	    Species VARCHAR(100) NOT NULL,
	    OrgId INT NULL,
	    IdentId INT NULL,
	    IdentTypeId INT NULL
	)
2016-04-07 12:52:36 CEST [3782-961] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('chicken', 'Gallus', 'gallus', '9031')
2016-04-07 12:52:36 CEST [3782-962] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('chimp', 'Pan', 'troglodytes', '9598')
2016-04-07 12:52:36 CEST [3782-963] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('cow', 'Bos', 'taurus', '9913')
2016-04-07 12:52:36 CEST [3782-964] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('dog', 'Canis', 'familiaris', '9615')
2016-04-07 12:52:36 CEST [3782-965] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('ecoli', 'Escherichia', 'coli', '562')
2016-04-07 12:52:36 CEST [3782-966] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('fruit fly', 'Drosophila', 'melanogaster', '7227')
2016-04-07 12:52:36 CEST [3782-967] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('horse', 'Equus', 'caballus', '9796')
2016-04-07 12:52:36 CEST [3782-968] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('human', 'Homo', 'sapiens', '9606')
2016-04-07 12:52:36 CEST [3782-969] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('mouse', 'Mus', 'musculus', '10090')
2016-04-07 12:52:36 CEST [3782-970] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('nematode', 'Caenorhabditis', 'elegans', '6239')
2016-04-07 12:52:36 CEST [3782-971] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('pig', 'Sus', 'scrofa', '9823')
2016-04-07 12:52:36 CEST [3782-972] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('rat', 'Rattus', 'norvegicus', '10116')
2016-04-07 12:52:36 CEST [3782-973] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('yeast', 'Saccharomyces', 'cerevisiae', '4932')
2016-04-07 12:52:36 CEST [3782-974] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO idents (CommonName, Genus, Species, Identifier)
	    VALUES ('zebrafish', 'Danio', 'rerio', '7955')
2016-04-07 12:52:36 CEST [3782-975] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE idents
	    SET IdentTypeId = (SELECT identtypeid FROM prot.IdentTypes WHERE name='NCBI Taxonomy')
2016-04-07 12:52:36 CEST [3782-976] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO prot.Organisms (CommonName, Genus, Species)
	    SELECT CommonName, Genus, Species FROM idents
	        WHERE NOT EXISTS
	            (SELECT * FROM prot.Organisms PO INNER JOIN idents i ON (PO.Genus = i.Genus AND PO.Species = i.Species))
2016-04-07 12:52:36 CEST [3782-977] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO prot.Identifiers (Identifier, IdentTypeId, entrydate)
	    SELECT Identifier, IdentTypeId , now() FROM idents
	    WHERE NOT EXISTS
	        (SELECT * FROM prot.Identifiers PI INNER JOIN idents i ON (PI.Identifier = i.Identifier AND PI.IdentTypeId = i.IdentTypeId))
2016-04-07 12:52:36 CEST [3782-978] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE idents
	    SET OrgId = PO.OrgId
	    FROM prot.Organisms PO
	    WHERE idents.Genus = PO.Genus AND idents.Species = PO.Species
2016-04-07 12:52:36 CEST [3782-979] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE idents
	    SET IdentId = PI.IdentId
	    FROM prot.Identifiers PI
	    WHERE idents.Identifier = PI.Identifier AND idents.IdentTypeId = PI.IdentTypeId
2016-04-07 12:52:36 CEST [3782-980] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE prot.Organisms
	    SET IdentId = i.IdentID
	    FROM idents i
	    WHERE i.OrgId = Organisms.OrgId
2016-04-07 12:52:36 CEST [3782-981] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP TABLE idents
2016-04-07 12:52:36 CEST [3782-982] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.PeptidesData
	(
	    RowId BIGSERIAL NOT NULL,
	    Fraction INT NOT NULL,
	    Scan INT NOT NULL,
	    Charge SMALLINT NOT NULL,
	    Score1 REAL NOT NULL DEFAULT 0,
	    Score2 REAL NOT NULL DEFAULT 0,
	    Score3 REAL NOT NULL DEFAULT 0,
	    Score4 REAL NULL,
	    Score5 REAL NULL,
	    IonPercent REAL NOT NULL,
	    Mass FLOAT8 NOT NULL,
	    DeltaMass REAL NOT NULL,
	    PeptideProphet REAL NOT NULL,
	    Peptide VARCHAR (200) NOT NULL,
	    PrevAA CHAR(1) NOT NULL DEFAULT '',
	    TrimmedPeptide VARCHAR(200) NOT NULL DEFAULT '',
	    NextAA CHAR(1) NOT NULL DEFAULT '',
	    ProteinHits SMALLINT NOT NULL,
	    SequencePosition INT NOT NULL DEFAULT 0,
	    Protein VARCHAR(100) NOT NULL,
	    SeqId INT NULL,
	    RetentionTime REAL NULL,
	    PeptideProphetErrorRate REAL NULL,
	    EndScan INT NULL,
	
	    CONSTRAINT PK_MS2PeptidesData PRIMARY KEY (RowId)
	)
2016-04-07 12:52:36 CEST [3782-983] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_MS2PeptidesData_Protein ON ms2.PeptidesData (Protein)
2016-04-07 12:52:36 CEST [3782-984] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptidesData_SeqId ON ms2.PeptidesData(SeqId)
2016-04-07 12:52:36 CEST [3782-985] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_MS2PeptidesData_FractionScanCharge ON ms2.PeptidesData (Fraction, Scan, EndScan, Charge)
2016-04-07 12:52:36 CEST [3782-986] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_MS2PeptidesData_TrimmedPeptide ON ms2.PeptidesData(TrimmedPeptide)
2016-04-07 12:52:36 CEST [3782-987] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_MS2PeptidesData_Peptide ON ms2.PeptidesData(Peptide)
2016-04-07 12:52:36 CEST [3782-988] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE ms2.peptidesdata ALTER score1 DROP NOT NULL
2016-04-07 12:52:36 CEST [3782-989] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.peptidesdata ALTER score1 DROP DEFAULT
2016-04-07 12:52:36 CEST [3782-990] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE ms2.peptidesdata ALTER score2 DROP NOT NULL
2016-04-07 12:52:36 CEST [3782-991] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.peptidesdata ALTER score2 DROP DEFAULT
2016-04-07 12:52:36 CEST [3782-992] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE ms2.peptidesdata ALTER score3 DROP NOT NULL
2016-04-07 12:52:36 CEST [3782-993] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.peptidesdata ALTER score3 DROP DEFAULT
2016-04-07 12:52:36 CEST [3782-994] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE ms2.PeptidesData ADD COLUMN score6 REAL
2016-04-07 12:52:36 CEST [3782-995] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.ProteinProphetFiles
	(
	    RowId SERIAL NOT NULL,
	    FilePath VARCHAR(255) NOT NULL,
	    Run INT NOT NULL,
	    UploadCompleted BOOLEAN NOT NULL DEFAULT '0',
	    MinProbSeries BYTEA NULL,
	    SensitivitySeries BYTEA NULL,
	    ErrorSeries BYTEA NULL,
	    PredictedNumberCorrectSeries BYTEA NULL,
	    PredictedNumberIncorrectSeries BYTEA NULL,
	
	    CONSTRAINT PK_MS2ProteinProphetFiles PRIMARY KEY (RowId),
	    CONSTRAINT FK_MS2ProteinProphetFiles_MS2Runs FOREIGN KEY (Run) REFERENCES ms2.Runs(Run),
	    CONSTRAINT UQ_MS2ProteinProphetFiles UNIQUE (Run)
	)
2016-04-07 12:52:36 CEST [3782-996] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE ms2.proteinprophetfiles ALTER COLUMN FilePath TYPE VARCHAR(512)
2016-04-07 12:52:36 CEST [3782-997] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.ProteinGroups
	(
	    RowId SERIAL NOT NULL,
	    GroupProbability REAL NOT NULL,
	    ProteinProphetFileId INT NOT NULL,
	    GroupNumber INT NOT NULL,
	    IndistinguishableCollectionId INT NOT NULL,
	    UniquePeptidesCount INT NOT NULL,
	    TotalNumberPeptides INT NOT NULL,
	    PctSpectrumIds REAL NULL,
	    PercentCoverage REAL NULL,
	    ProteinProbability REAL NOT NULL DEFAULT 0,
	    ErrorRate REAL NULL,
	
	    CONSTRAINT PK_MS2ProteinGroups PRIMARY KEY (RowId),
	    CONSTRAINT UQ_MS2ProteinGroups UNIQUE (ProteinProphetFileId, GroupNumber, IndistinguishableCollectionId),
	    CONSTRAINT FK_MS2ProteinGroup_MS2ProteinProphetFileId FOREIGN KEY (ProteinProphetFileId) REFERENCES ms2.ProteinProphetFiles(RowId)
	)
2016-04-07 12:52:37 CEST [3782-998] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.ProteinGroupMemberships
	(
	    ProteinGroupId INT NOT NULL,
	    SeqId INT NOT NULL,
	    Probability REAL NOT NULL,
	
	    CONSTRAINT PK_MS2ProteinGroupMemberships PRIMARY KEY (ProteinGroupId, SeqId),
	    CONSTRAINT FK_MS2ProteinGroupMemberships_ProtSequences FOREIGN KEY (SeqId) REFERENCES prot.Sequences (SeqId),
	    CONSTRAINT FK_MS2ProteinGroupMembership_MS2ProteinGroups FOREIGN KEY (ProteinGroupId) REFERENCES ms2.ProteinGroups (RowId)
	)
2016-04-07 12:52:37 CEST [3782-999] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_ProteinGroupMemberships_SeqId ON ms2.ProteinGroupMemberships(SeqId, ProteinGroupId, Probability)
2016-04-07 12:52:37 CEST [3782-1000] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.PeptideMemberships
	(
	    PeptideId int8 NOT NULL,
	    ProteinGroupId int4 NOT NULL,
	    NSPAdjustedProbability float4 NOT NULL,
	    Weight float4 NOT NULL,
	    NondegenerateEvidence bool NOT NULL,
	    EnzymaticTermini int4 NOT NULL,
	    SiblingPeptides float4 NOT NULL,
	    SiblingPeptidesBin int4 NOT NULL,
	    Instances int4 NOT NULL,
	    ContributingEvidence bool NOT NULL,
	    CalcNeutralPepMass float4 NOT NULL,
	
	    CONSTRAINT pk_ms2peptidememberships PRIMARY KEY (proteingroupid, peptideid),
	    CONSTRAINT fk_ms2peptidemembership_ms2peptidesdata FOREIGN KEY (peptideid) REFERENCES ms2.PeptidesData (rowid),
	    CONSTRAINT fk_ms2peptidemembership_ms2proteingroup FOREIGN KEY (proteingroupid) REFERENCES ms2.ProteinGroups (rowid)
	)
2016-04-07 12:52:37 CEST [3782-1001] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE INDEX IX_MS2PeptideMemberships_PeptideId ON ms2.PeptideMemberships(PeptideId)
2016-04-07 12:52:37 CEST [3782-1002] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Peptidemembership_ProteingroupId ON ms2.PeptideMemberships(ProteinGroupId)
2016-04-07 12:52:37 CEST [3782-1003] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.Quantitation
	(
	    PeptideId BIGINT NOT NULL,
	    LightFirstscan INT NOT NULL,
	    LightLastscan INT NOT NULL,
	    LightMass REAL NOT NULL,
	    HeavyFirstscan INT NOT NULL,
	    HeavyLastscan INT NOT NULL,
	    HeavyMass REAL NOT NULL,
	    Ratio VARCHAR(20) NULL,                
	    Heavy2lightRatio VARCHAR(20) NULL,     
	    LightArea REAL NOT NULL,
	    HeavyArea REAL NOT NULL,
	    DecimalRatio REAL NOT NULL,
	    QuantId INT NOT NULL,                  
	
	    CONSTRAINT PK_Quantitation PRIMARY KEY (PeptideId),
	    CONSTRAINT FK_Quantitation_MS2PeptidesData FOREIGN KEY (PeptideId) REFERENCES ms2.PeptidesData(RowId)
	)
2016-04-07 12:52:37 CEST [3782-1004] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE ms2.Quantitation ADD COLUMN Invalidated BOOLEAN
2016-04-07 12:52:37 CEST [3782-1005] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.ProteinQuantitation
	(
	    ProteinGroupId INT NOT NULL,
	    RatioMean REAL NOT NULL,
	    RatioStandardDev REAL NOT NULL,
	    RatioNumberPeptides INT NOT NULL,
	    Heavy2LightRatioMean REAL NOT NULL,
	    Heavy2LightRatioStandardDev REAL NOT NULL,
	    CONSTRAINT PK_ProteinQuantitation PRIMARY KEY (ProteinGroupId),
	    CONSTRAINT FK_ProteinQuantitation_ProteinGroup FOREIGN KEY (ProteinGroupId) REFERENCES ms2.ProteinGroups (RowId)
	)
2016-04-07 12:52:37 CEST [3782-1006] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_ProteinQuantitation_ProteinGroupId ON ms2.ProteinQuantitation(ProteinGroupId)
2016-04-07 12:52:37 CEST [3782-1007] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.PeptideProphetSummaries
	(
	    Run INT NOT NULL,
	    FValSeries BYTEA NULL,
	    ObsSeries1 BYTEA NULL,
	    ObsSeries2 BYTEA NULL,
	    ObsSeries3 BYTEA NULL,
	    ModelPosSeries1 BYTEA NULL,
	    ModelPosSeries2 BYTEA NULL,
	    ModelPosSeries3 BYTEA NULL,
	    ModelNegSeries1 BYTEA NULL,
	    ModelNegSeries2 BYTEA NULL,
	    ModelNegSeries3 BYTEA NULL,
	    MinProbSeries BYTEA NULL,
	    SensitivitySeries BYTEA NULL,
	    ErrorSeries BYTEA NULL,
	
	    CONSTRAINT PK_PeptideProphetSummmaries PRIMARY KEY (Run)
	)
2016-04-07 12:52:37 CEST [3782-1008] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms2.QuantSummaries
	(
	    QuantId SERIAL NOT NULL,
	    Run INTEGER NOT NULL,
	    AnalysisType VARCHAR(20) NOT NULL,
	    AnalysisTime TIMESTAMP NULL,
	    Version VARCHAR(80) NULL,
	    LabeledResidues VARCHAR(20) NULL,
	    MassDiff VARCHAR(80) NULL,
	    MassTol REAL NOT NULL,
	    SameScanRange CHAR(1) NULL,
	    XpressLight INT NULL,
	
	    CONSTRAINT PK_QuantSummaries PRIMARY KEY (QuantId),
	    CONSTRAINT FK_QuantSummaries_MS2Runs FOREIGN KEY (Run) REFERENCES ms2.Runs (Run),
	    
	    CONSTRAINT UQ_QuantSummaries UNIQUE (Run)
	)
2016-04-07 12:52:37 CEST [3782-1009] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.PeptideProphetData
	(
	    PeptideId BIGINT NOT NULL,
	    ProphetFVal REAL NOT NULL,
	    ProphetDeltaMass REAL NULL,
	    ProphetNumTrypticTerm INT NULL,
	    ProphetNumMissedCleav INT NULL,
	
	    CONSTRAINT PK_PeptideProphetData PRIMARY KEY (PeptideId),
	    CONSTRAINT FK_PeptideProphetData_MS2PeptidesData FOREIGN KEY (PeptideId) REFERENCES ms2.PeptidesData(RowId)
	)
2016-04-07 12:52:37 CEST [3782-1010] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE prot.FastaSequences
	(
	    FastaId INT NOT NULL,
	    LookupString VARCHAR (200) NOT NULL,
	    SeqId INT NULL,
	
	    CONSTRAINT PK_FastaSequences PRIMARY KEY(LookupString, FastaId),
	    CONSTRAINT FK_FastaSequences_Sequences FOREIGN KEY (SeqId) REFERENCES prot.Sequences (SeqId)
	)
2016-04-07 12:52:37 CEST [3782-1011] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_FastaSequences_FastaId_SeqId ON prot.FastaSequences(FastaId, SeqId)
2016-04-07 12:52:37 CEST [3782-1012] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_FastaSequences_SeqId ON prot.FastaSequences(SeqId)
2016-04-07 12:52:37 CEST [3782-1013] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE prot.CustomAnnotationSet
	(
	    CustomAnnotationSetId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(200) NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP without time zone,
	    ModifiedBy USERID,
	    Modified TIMESTAMP without time zone,
	    CustomAnnotationType VARCHAR(20) NOT NULL,
	    Lsid lsidtype,
	
	    CONSTRAINT pk_customannotationset PRIMARY KEY (CustomAnnotationSetId),
	    CONSTRAINT fk_CustomAnnotationSet_Container FOREIGN KEY (container) REFERENCES core.containers(EntityId),
	    CONSTRAINT uq_CustomAnnotationSet UNIQUE (Container, Name)
	)
2016-04-07 12:52:38 CEST [3782-1014] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_CustomAnnotationSet_Container ON prot.CustomAnnotationSet(Container)
2016-04-07 12:52:38 CEST [3782-1015] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE prot.CustomAnnotation
	(
	    CustomAnnotationId SERIAL NOT NULL,
	    CustomAnnotationSetId INT NOT NULL,
	    ObjectURI LsidType NOT NULL,
	    LookupString VARCHAR(200) NOT NULL,
	
	    CONSTRAINT pk_customannotation PRIMARY KEY (CustomAnnotationId),
	    CONSTRAINT fk_CustomAnnotation_CustomAnnotationSetId FOREIGN KEY (CustomAnnotationSetId) REFERENCES prot.CustomAnnotationSet(CustomAnnotationSetId),
	    CONSTRAINT UQ_CustomAnnotation_LookupString_SetId UNIQUE (LookupString, CustomAnnotationSetId),
	    CONSTRAINT UQ_CustomAnnotation_ObjectURI UNIQUE (ObjectURI)
	)
2016-04-07 12:52:38 CEST [3782-1016] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_CustomAnnotation_CustomAnnotationSetId ON prot.CustomAnnotation(CustomAnnotationSetId)
2016-04-07 12:52:38 CEST [3782-1017] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE exp.DataInput SET Role = 'Spectra' WHERE Role = 'mzXML'
2016-04-07 12:52:38 CEST [3782-1018] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE ms2.iTraqPeptideQuantitation
	(
	    PeptideId BIGINT NOT NULL,
	    TargetMass1 REAL,
	    AbsoluteMass1 REAL,
	    Normalized1 REAL,
	    TargetMass2 REAL,
	    AbsoluteMass2 REAL,
	    Normalized2 REAL,
	    TargetMass3 REAL,
	    AbsoluteMass3 REAL,
	    Normalized3 REAL,
	    TargetMass4 REAL,
	    AbsoluteMass4 REAL,
	    Normalized4 REAL,
	    TargetMass5 REAL,
	    AbsoluteMass5 REAL,
	    Normalized5 REAL,
	    TargetMass6 REAL,
	    AbsoluteMass6 REAL,
	    Normalized6 REAL,
	    TargetMass7 REAL,
	    AbsoluteMass7 REAL,
	    Normalized7 REAL,
	    TargetMass8 REAL,
	    AbsoluteMass8 REAL,
	    Normalized8 REAL,
	
	    CONSTRAINT PK_iTraqPeptideQuantitation PRIMARY KEY (PeptideId),
	    CONSTRAINT FK_iTraqPeptideQuantitation_MS2PeptidesData FOREIGN KEY (PeptideId) REFERENCES ms2.PeptidesData(RowId)
	)
2016-04-07 12:52:38 CEST [3782-1019] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass1 TO AbsoluteIntensity1
2016-04-07 12:52:38 CEST [3782-1020] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass2 TO AbsoluteIntensity2
2016-04-07 12:52:38 CEST [3782-1021] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass3 TO AbsoluteIntensity3
2016-04-07 12:52:38 CEST [3782-1022] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass4 TO AbsoluteIntensity4
2016-04-07 12:52:38 CEST [3782-1023] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass5 TO AbsoluteIntensity5
2016-04-07 12:52:38 CEST [3782-1024] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass6 TO AbsoluteIntensity6
2016-04-07 12:52:38 CEST [3782-1025] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass7 TO AbsoluteIntensity7
2016-04-07 12:52:38 CEST [3782-1026] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.iTraqPeptideQuantitation RENAME COLUMN AbsoluteMass8 TO AbsoluteIntensity8
2016-04-07 12:52:38 CEST [3782-1027] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE ms2.iTraqProteinQuantitation
	(
	    ProteinGroupId BIGINT NOT NULL,
	    Ratio1 REAL,
	    Error1 REAL,
	    Ratio2 REAL,
	    Error2 REAL,
	    Ratio3 REAL,
	    Error3 REAL,
	    Ratio4 REAL,
	    Error4 REAL,
	    Ratio5 REAL,
	    Error5 REAL,
	    Ratio6 REAL,
	    Error6 REAL,
	    Ratio7 REAL,
	    Error7 REAL,
	    Ratio8 REAL,
	    Error8 REAL,
	
	    CONSTRAINT PK_iTraqProteinQuantitation PRIMARY KEY (ProteinGroupId),
	    CONSTRAINT FK_iTraqProteinQuantitation_ProteinGroups FOREIGN KEY (ProteinGroupId) REFERENCES ms2.ProteinGroups(RowId)
	)
2016-04-07 12:52:38 CEST [3782-1028] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE FUNCTION prot.create_go_indexes() RETURNS void AS $$
	    BEGIN
	        ALTER TABLE prot.goterm ADD CONSTRAINT pk_goterm PRIMARY KEY (id);
	        CREATE INDEX IX_GoTerm_Name ON prot.GoTerm(name);
	        CREATE INDEX IX_GoTerm_TermType ON prot.GoTerm(termtype);
	        CREATE UNIQUE INDEX UQ_GoTerm_Acc ON prot.GoTerm(acc);
	
	        ALTER TABLE prot.goterm2term ADD CONSTRAINT pk_goterm2term PRIMARY KEY (id);
	        CREATE INDEX IX_GoTerm2Term_term1Id ON prot.GoTerm2Term(term1Id);
	        CREATE INDEX IX_GoTerm2Term_term2Id ON prot.GoTerm2Term(term2Id);
	        CREATE INDEX IX_GoTerm2Term_term1_2_Id ON prot.GoTerm2Term(term1Id,term2Id);
	        CREATE INDEX IX_GoTerm2Term_relationshipTypeId ON prot.GoTerm2Term(relationshipTypeId);
	        CREATE UNIQUE INDEX UQ_GoTerm2Term_1_2_R ON prot.GoTerm2Term(term1Id,term2Id,relationshipTypeId);
	
	        ALTER TABLE prot.gographpath ADD CONSTRAINT pk_gographpath PRIMARY KEY (id);
	        CREATE INDEX IX_GoGraphPath_term1Id ON prot.GoGraphPath(term1Id);
	        CREATE INDEX IX_GoGraphPath_term2Id ON prot.GoGraphPath(term2Id);
	        CREATE INDEX IX_GoGraphPath_term1_2_Id ON prot.GoGraphPath(term1Id,term2Id);
	        CREATE INDEX IX_GoGraphPath_t1_distance ON prot.GoGraphPath(term1Id,distance);
	
	        CREATE INDEX IX_GoTermDefinition_dbXrefId ON prot.GoTermDefinition(dbXrefId);
	        CREATE UNIQUE INDEX UQ_GoTermDefinition_termId ON prot.GoTermDefinition(termId);
	
	        CREATE INDEX IX_GoTermSynonym_SynonymTypeId ON prot.GoTermSynonym(synonymTypeId);
	        CREATE INDEX IX_GoTermSynonym_TermId ON prot.GoTermSynonym(termId);
	        CREATE INDEX IX_GoTermSynonym_termSynonym ON prot.GoTermSynonym(termSynonym);
	        CREATE UNIQUE INDEX UQ_GoTermSynonym_termId_termSynonym ON prot.GoTermSynonym(termId,termSynonym);
	    END;
	    $$ LANGUAGE plpgsql
2016-04-07 12:52:38 CEST [3782-1029] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE OR REPLACE FUNCTION prot.drop_go_indexes() RETURNS void AS $$
	    BEGIN
	        PERFORM core.fn_dropifexists('goterm', 'prot', 'Constraint', 'pk_goterm');
	        PERFORM core.fn_dropifexists('goterm', 'prot', 'Index', 'IX_GoTerm_Name');
	        PERFORM core.fn_dropifexists('goterm', 'prot', 'Index', 'IX_GoTerm_TermType');
	        PERFORM core.fn_dropifexists('goterm', 'prot', 'Index', 'UQ_GoTerm_Acc');
	
	        PERFORM core.fn_dropifexists('goterm2term', 'prot', 'Constraint', 'pk_goterm2term');
	        PERFORM core.fn_dropifexists('goterm2term', 'prot', 'Index', 'IX_GoTerm2Term_term1Id');
	        PERFORM core.fn_dropifexists('goterm2term', 'prot', 'Index', 'IX_GoTerm2Term_term2Id');
	        PERFORM core.fn_dropifexists('goterm2term', 'prot', 'Index', 'IX_GoTerm2Term_term1_2_Id');
	        PERFORM core.fn_dropifexists('goterm2term', 'prot', 'Index', 'IX_GoTerm2Term_relationshipTypeId');
	        PERFORM core.fn_dropifexists('goterm2term', 'prot', 'Index', 'UQ_GoTerm2Term_1_2_R');
	
	        PERFORM core.fn_dropifexists('gographpath', 'prot', 'Constraint', 'pk_gographpath');
	        PERFORM core.fn_dropifexists('gographpath', 'prot', 'Index', 'IX_GoGraphPath_term1Id');
	        PERFORM core.fn_dropifexists('gographpath', 'prot', 'Index', 'IX_GoGraphPath_term2Id');
	        PERFORM core.fn_dropifexists('gographpath', 'prot', 'Index', 'IX_GoGraphPath_term1_2_Id');
	        PERFORM core.fn_dropifexists('gographpath', 'prot', 'Index', 'IX_GoGraphPath_t1_distance');
	
	        PERFORM core.fn_dropifexists('gotermdefinition', 'prot', 'Index', 'IX_GoTermDefinition_dbXrefId');
	        PERFORM core.fn_dropifexists('gotermdefinition', 'prot', 'Index', 'UQ_GoTermDefinition_termId');
	
	        PERFORM core.fn_dropifexists('gotermsynonym', 'prot', 'Index', 'IX_GoTermSynonym_SynonymTypeId');
	        PERFORM core.fn_dropifexists('gotermsynonym', 'prot', 'Index', 'IX_GoTermSynonym_TermId');
	        PERFORM core.fn_dropifexists('gotermsynonym', 'prot', 'Index', 'IX_GoTermSynonym_termSynonym');
	        PERFORM core.fn_dropifexists('gotermsynonym', 'prot', 'Index', 'UQ_GoTermSynonym_termId_termSynonym');
	    END;
	    $$ LANGUAGE plpgsql
2016-04-07 12:52:38 CEST [3782-1030] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:38 CEST [3782-1031] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:38.823', $2 = '0', $3 = '2016-04-07 12:52:38.823', $4 = '0', $5 = '2016-04-07 12:52:38.823', $6 = 'MS2', $7 = 'ms2-0.00-13.30.sql'
2016-04-07 12:52:38 CEST [3782-1032] postgres@labkey LOG:  execute <unnamed>: UPDATE prot.infosources SET url = 'http://amigo.geneontology.org/amigo/term/{}' WHERE Name = 'GO'
2016-04-07 12:52:38 CEST [3782-1033] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:38 CEST [3782-1034] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:38.853', $2 = '0', $3 = '2016-04-07 12:52:38.853', $4 = '0', $5 = '2016-04-07 12:52:38.853', $6 = 'MS2', $7 = 'ms2-14.10-14.20.sql'
2016-04-07 12:52:38 CEST [3782-1035] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE ms2.ExpressionData (
	  RowId SERIAL,
	  Value REAL,
	  SeqId INT NOT NULL,
	  SampleId INT NOT NULL,
	  DataId INT NOT NULL,
	
	  CONSTRAINT PK_ExpressionData PRIMARY KEY (RowId),
	  CONSTRAINT FK_ExpressionData_SeqId FOREIGN KEY (SeqId) REFERENCES prot.sequences (SeqId),
	  CONSTRAINT FK_ExpressionData_SampleId FOREIGN KEY (SampleId) REFERENCES exp.material (RowId),
	  CONSTRAINT FK_ExpressionData_DataId FOREIGN KEY (DataId) REFERENCES exp.data (RowId)
	)
2016-04-07 12:52:38 CEST [3782-1036] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_ExpressionData_SeqId ON ms2.ExpressionData(SeqId)
2016-04-07 12:52:39 CEST [3782-1037] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ExpressionData_SampleId ON ms2.ExpressionData(SampleId)
2016-04-07 12:52:39 CEST [3782-1038] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ExpressionData_DataId ON ms2.ExpressionData(DataId)
2016-04-07 12:52:39 CEST [3782-1039] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE ms2.ExpressionData ADD CONSTRAINT UQ_ExpressionData_DataId_SeqId_SampleId UNIQUE (DataId, SeqId, SampleId)
2016-04-07 12:52:39 CEST [3782-1040] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	DROP INDEX ms2.IX_ExpressionData_DataId
2016-04-07 12:52:39 CEST [3782-1041] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:39 CEST [3782-1042] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:39.251', $2 = '0', $3 = '2016-04-07 12:52:39.251', $4 = '0', $5 = '2016-04-07 12:52:39.251', $6 = 'MS2', $7 = 'ms2-15.10-15.20.sql'
2016-04-07 12:52:39 CEST [3782-1043] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE ms2.Runs ADD COLUMN MascotFile VARCHAR(300) NULL
2016-04-07 12:52:39 CEST [3782-1044] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.Runs ADD COLUMN DistillerRawFile VARCHAR(500) NULL
2016-04-07 12:52:39 CEST [3782-1045] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE ms2.PeptidesData ADD COLUMN QueryNumber int NULL
2016-04-07 12:52:39 CEST [3782-1046] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.PeptidesData ADD COLUMN HitRank int NOT NULL DEFAULT 1
2016-04-07 12:52:39 CEST [3782-1047] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE ms2.PeptidesData ADD COLUMN Decoy boolean NOT NULL DEFAULT FALSE
2016-04-07 12:52:40 CEST [3782-1048] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	ALTER TABLE ms2.PeptidesData ALTER COLUMN PeptideProphet DROP NOT NULL
2016-04-07 12:52:40 CEST [3782-1049] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE ms2.peptidesdata
	  ADD CONSTRAINT FK_ms2PeptidesData_ProtSequences FOREIGN KEY (seqid) REFERENCES prot.sequences (seqid)
2016-04-07 12:52:40 CEST [3782-1050] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_MS2PeptidesData_FractionScanCharge ON ms2.PeptidesData(Fraction, Scan, EndScan, Charge, HitRank, Decoy, QueryNumber)
2016-04-07 12:52:40 CEST [3782-1051] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	INSERT INTO prop.propertysets (category, objectid, userid) SELECT 'MascotConfig' AS Category, EntityId, -1 AS UserId FROM core.containers WHERE parent IS NULL
2016-04-07 12:52:40 CEST [3782-1052] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE prop.properties SET "set" = (SELECT MAX("set") FROM prop.propertysets)
	  WHERE name LIKE 'Mascot%' AND "set" = (SELECT "set" FROM prop.propertysets WHERE category = 'SiteConfig' AND userid = -1 AND objectid = (SELECT entityid FROM core.containers WHERE parent IS NULL))
2016-04-07 12:52:40 CEST [3782-1053] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE ms2.FastaRunMapping (
	  Run INT NOT NULL,
	  FastaId INT NOT NULL,
	
	  CONSTRAINT PK_FastaRunMapping PRIMARY KEY (Run, FastaId),
	  CONSTRAINT FK_FastaRunMapping_Run FOREIGN KEY (Run) REFERENCES ms2.Runs (Run),
	  CONSTRAINT FK_FastaRunMapping_FastaId FOREIGN KEY (FastaId) REFERENCES prot.FastaFiles (FastaId)
	)
2016-04-07 12:52:40 CEST [3782-1054] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO ms2.FastaRunMapping( Run, FastaId ) SELECT Run, FastaId FROM ms2.Runs WHERE FastaId IN (SELECT FastaId FROM prot.FastaFiles)
2016-04-07 12:52:40 CEST [3782-1055] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_FastaRunMapping_FastaId ON ms2.FastaRunMapping(FastaId)
2016-04-07 12:52:40 CEST [3782-1056] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE ms2.Runs DROP COLUMN FastaId
2016-04-07 12:52:40 CEST [3782-1057] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:40 CEST [3782-1058] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:40.212', $2 = '0', $3 = '2016-04-07 12:52:40.212', $4 = '0', $5 = '2016-04-07 12:52:40.212', $6 = 'MS2', $7 = 'ms2-15.30-16.10.sql'
2016-04-07 12:52:40 CEST [3782-1059] postgres@labkey LOG:  execute <unnamed>: CREATE VIEW ms2.Spectra AS
	    SELECT f.Run AS Run, sd.*
	    FROM ms2.SpectraData sd INNER JOIN
	        ms2.Fractions f ON sd.Fraction = f.Fraction
2016-04-07 12:52:40 CEST [3782-1060] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW prot.FastaAdmin AS
	    SELECT ff.FileName, ff.FastaId, ff.Loaded, runs.Runs
	    FROM prot.FastaFiles ff LEFT OUTER JOIN
	        (SELECT FastaId, COUNT(Run) AS Runs
	        FROM ms2.FastaRunMapping
	        GROUP BY FastaId) runs ON runs.FastaId = ff.FastaId
2016-04-07 12:52:40 CEST [3782-1061] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW ms2.ExperimentRuns AS
	    SELECT r.*, er.RowId AS ExperimentRunRowId, ep.Name AS ProtocolName
	    FROM ms2.Runs r
	        LEFT OUTER JOIN exp.ExperimentRun er ON er.LSID=r.ExperimentRunLSID
	        LEFT OUTER JOIN exp.Protocol ep ON ep.LSID=er.ProtocolLSID
2016-04-07 12:52:40 CEST [3782-1062] postgres@labkey LOG:  execute <unnamed>: 
	    
	CREATE VIEW ms2.ProteinGroupsWithQuantitation AS
	    SELECT * FROM ms2.ProteinGroups LEFT JOIN ms2.ProteinQuantitation ON ProteinGroupId = RowId
2016-04-07 12:52:40 CEST [3782-1063] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE VIEW ms2.SimplePeptides AS
	    SELECT frac.run, run.description AS rundescription, pep.fraction, CASE WHEN position('.' in frac.filename) >= 1 THEN substring(frac.filename, 1, position('.' in frac.filename)-1) ELSE frac.filename END AS fractionname, pep.scan, pep.endscan, pep.retentiontime, pep.charge,
	    pep.score1 AS rawscore, pep.score2 AS diffscore, pep.score3 AS zscore, pep.score1 AS spscore, pep.score2 AS deltacn, pep.score3 AS xcorr, pep.score4 AS sprank, pep.score1 AS hyper, pep.score2 AS "next", pep.score3 AS b, pep.score4 AS y, pep.score5 AS expect, pep.score1 AS ion, pep.score2 AS identity, pep.score3 AS homology, pep.score1 AS origscore,
	    pep.ionpercent, pep.mass, pep.deltamass, pep.mass + pep.deltamass AS precursormass, abs(pep.deltamass - round(pep.deltamass::double precision)) AS fractionaldeltamass,
	        CASE
	            WHEN pep.mass = 0::double precision THEN 0::double precision
	            ELSE abs(1000000::double precision * abs(pep.deltamass - round(pep.deltamass::double precision)) / (pep.mass + ((pep.charge - 1)::numeric * 1.007276)::double precision))
	        END AS fractionaldeltamassppm,
	        CASE
	            WHEN pep.mass = 0::double precision THEN 0::double precision
	            ELSE abs(1000000::double precision * pep.deltamass / (pep.mass + ((pep.charge - 1)::numeric * 1.007276)::double precision))
	        END AS deltamassppm,
	        CASE
	            WHEN pep.charge = 0 THEN 0::double precision
	            ELSE (pep.mass + pep.deltamass + ((pep.charge - 1)::numeric * 1.007276)::double precision) / pep.charge::double precision
	        END AS mz, pep.peptideprophet, pep.PeptideProphetErrorRate, pep.peptide, pep.proteinhits, pep.protein, pep.prevaa, pep.trimmedpeptide, pep.nextaa, ltrim(rtrim((pep.prevaa::text || pep.trimmedpeptide::text) || pep.nextaa::text)) AS strippedpeptide, pep.sequenceposition, pep.seqid, pep.rowid,
	        quant.DecimalRatio, quant.Heavy2LightRatio, quant.HeavyArea, quant.HeavyFirstScan, quant.HeavyLastScan, quant.HeavyMass, quant.LightArea, quant.LightFirstScan, quant.LightLastScan, quant.LightMass, quant.Ratio, quant.Invalidated,
	        proph.ProphetFVal, proph.ProphetDeltaMass, proph.ProphetNumTrypticTerm, proph.ProphetNumMissedCleav,  pep.QueryNumber, pep.HitRank, pep.Decoy
	    FROM ms2.PeptidesData pep
	    JOIN ms2.Fractions frac ON pep.Fraction = frac.Fraction
	    JOIN ms2.Runs run ON frac.Run = run.Run
	    LEFT JOIN ms2.Quantitation quant ON pep.rowid=quant.peptideid
	    LEFT JOIN ms2.PeptideProphetdata proph ON pep.rowid=proph.peptideid
2016-04-07 12:52:40 CEST [3782-1064] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW ms2.Peptides AS
	    SELECT pep.*, seq.Description, seq.BestGeneName AS GeneName
	    FROM ms2.SimplePeptides pep
	    LEFT JOIN prot.Sequences seq ON seq.SeqId = pep.SeqId
2016-04-07 12:52:40 CEST [3782-1065] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:40 CEST [3782-1066] postgres@labkey DETAIL:  parameters: $1 = 'MS2', $2 = 'org.labkey.ms2.MS2Module', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:40 CEST [3782-1067] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA ms1
2016-04-07 12:52:40 CEST [3782-1068] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.Files
	(
	    FileId SERIAL NOT NULL,
	    ExpDataFileId INT NOT NULL,
	    Type SMALLINT NOT NULL,
	    MzXmlUrl VARCHAR(800) NULL,
	    Imported BOOLEAN NOT NULL DEFAULT FALSE,
	    Deleted BOOLEAN NOT NULL DEFAULT FALSE,
	
	    CONSTRAINT PK_Files PRIMARY KEY (FileId)
	)
2016-04-07 12:52:40 CEST [3782-1069] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Files_ExpDataFileId ON ms1.Files(ExpDataFileId)
2016-04-07 12:52:40 CEST [3782-1070] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.Software
	(
	    SoftwareId SERIAL NOT NULL,
	    FileId INT NOT NULL,
	    Name VARCHAR(400) NOT NULL,
	    Version VARCHAR(16) NULL,
	    Author VARCHAR(800) NULL,
	
	    CONSTRAINT PK_Software PRIMARY KEY (SoftwareId),
	    CONSTRAINT FK_Software_FileId FOREIGN KEY (FileId) REFERENCES ms1.Files(FileId)
	)
2016-04-07 12:52:40 CEST [3782-1071] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Software_FileId ON ms1.Software(FileId)
2016-04-07 12:52:40 CEST [3782-1072] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.SoftwareParams
	(
	    SoftwareId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NULL,
	
	    CONSTRAINT PK_FileSoftwareParams PRIMARY KEY (SoftwareId,Name),
	    CONSTRAINT FK_FileSoftwareParams_SoftwareId FOREIGN KEY (SoftwareId) REFERENCES ms1.Software(SoftwareId)
	)
2016-04-07 12:52:40 CEST [3782-1073] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.Scans
	(
	    ScanId SERIAL NOT NULL,
	    FileId INT NOT NULL,
	    Scan INT NOT NULL,
	    RetentionTime DOUBLE PRECISION NULL,
	    ObservationDuration DOUBLE PRECISION NULL,
	
	    CONSTRAINT PK_Scans PRIMARY KEY (ScanId),
	    CONSTRAINT FK_Scans_FileId FOREIGN KEY (FileID) REFERENCES ms1.Files(FileId)
	)
2016-04-07 12:52:40 CEST [3782-1074] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Scans_FileId ON ms1.Scans(FileId)
2016-04-07 12:52:40 CEST [3782-1075] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Scans_Scan ON ms1.Scans(Scan)
2016-04-07 12:52:40 CEST [3782-1076] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.Calibrations
	(
	    ScanId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value DOUBLE PRECISION NOT NULL,
	
	    CONSTRAINT PK_Calibrations PRIMARY KEY (ScanId,Name),
	    CONSTRAINT FK_Calibrations_ScanId FOREIGN KEY (ScanId) REFERENCES ms1.Scans(ScanId)
	)
2016-04-07 12:52:40 CEST [3782-1077] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.Peaks
	(
	    PeakId SERIAL NOT NULL,
	    ScanId INT NOT NULL,
	    MZ DOUBLE PRECISION NULL,
	    Intensity DOUBLE PRECISION NULL,
	    Area DOUBLE PRECISION NULL,
	    Error DOUBLE PRECISION NULL,
	    Frequency DOUBLE PRECISION NULL,
	    Phase DOUBLE PRECISION NULL,
	    Decay DOUBLE PRECISION NULL,
	
	    CONSTRAINT PK_Peaks PRIMARY KEY (PeakId),
	    CONSTRAINT FK_Peaks_ScanId FOREIGN KEY (ScanId) REFERENCES ms1.Scans(ScanId)
	)
2016-04-07 12:52:40 CEST [3782-1078] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Peaks_ScanId ON ms1.Peaks(ScanId)
2016-04-07 12:52:40 CEST [3782-1079] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.PeakFamilies
	(
	    PeakFamilyId SERIAL NOT NULL,
	    ScanId INT NULL,
	    MzMono DOUBLE PRECISION NULL,
	    Charge SMALLINT NULL,
	
	    CONSTRAINT PK_PeakFamilies PRIMARY KEY (PeakFamilyId)
	)
2016-04-07 12:52:41 CEST [3782-1080] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_PeakFamilies_ScanId ON ms1.PeakFamilies(ScanId)
2016-04-07 12:52:41 CEST [3782-1081] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.PeaksToFamilies
	(
	    PeakFamilyId INT NOT NULL,
	    PeakId INT NOT NULL,
	
	    CONSTRAINT PK_PeaksToFamilies PRIMARY KEY (PeakFamilyId,PeakId),
	    CONSTRAINT FK_PeaksToFamilies_PeakId FOREIGN KEY (PeakId) REFERENCES ms1.Peaks(PeakId),
	    CONSTRAINT FK_PeaksToFamilies_PeakFamilyId FOREIGN KEY (PeakFamilyId) REFERENCES ms1.PeakFamilies(PeakFamilyId)
	)
2016-04-07 12:52:41 CEST [3782-1082] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_PeaksToFamilies_PeakId ON ms1.PeaksToFamilies(PeakId)
2016-04-07 12:52:41 CEST [3782-1083] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE ms1.Features
	(
	    FeatureId SERIAL NOT NULL,
	    FileId INT,
	    Scan INT NULL,
	    Time DOUBLE PRECISION NULL,
	    MZ DOUBLE PRECISION NULL,
	    AccurateMZ BOOLEAN NULL,
	    Mass DOUBLE PRECISION NULL,
	    Intensity DOUBLE PRECISION NULL,
	    Charge SMALLINT NULL,
	    ChargeStates SMALLINT NULL,
	    KL DOUBLE PRECISION NULL,
	    Background DOUBLE PRECISION NULL,
	    Median DOUBLE PRECISION NULL,
	    Peaks INT NULL,
	    ScanFirst INT NULL,
	    ScanLast INT NULL,
	    ScanCount INT NULL,
	    TotalIntensity DOUBLE PRECISION NULL,
	    Description VARCHAR(300) NULL,
	
	    
	    MS2Scan INT NULL,
	    MS2ConnectivityProbability DOUBLE PRECISION NULL,
	    MS2Charge SMALLINT NULL,
	
	    CONSTRAINT PK_Features PRIMARY KEY (FeatureId),
	    CONSTRAINT FK_Features_FileId FOREIGN KEY (FileID) REFERENCES ms1.Files(FileId)
	)
2016-04-07 12:52:41 CEST [3782-1084] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_Features_FileId ON ms1.Features(FileId)
2016-04-07 12:52:41 CEST [3782-1085] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:41 CEST [3782-1086] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:41.365', $2 = '0', $3 = '2016-04-07 12:52:41.365', $4 = '0', $5 = '2016-04-07 12:52:41.365', $6 = 'MS1', $7 = 'ms1-0.00-9.10.sql'
2016-04-07 12:52:41 CEST [3782-1087] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:41 CEST [3782-1088] postgres@labkey DETAIL:  parameters: $1 = 'MS1', $2 = 'org.labkey.ms1.MS1Module', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:41 CEST [3782-1089] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA survey
2016-04-07 12:52:41 CEST [3782-1090] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE survey.SurveyDesigns
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
		Label VARCHAR(200) NOT NULL,
	
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	   	
	    QueryName VARCHAR(200),
	    SchemaName VARCHAR(50),
	
	    
	    Metadata TEXT,
	
	    CONSTRAINT pk_surveyDesigns PRIMARY KEY (RowId)
	)
2016-04-07 12:52:41 CEST [3782-1091] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE survey.Surveys
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    EntityId ENTITYID NOT NULL,
		Label VARCHAR(200) NOT NULL,
	
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    SubmittedBy USERID,
	    Submitted TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	    Status VARCHAR(50),
	    SurveyDesignId Integer NOT NULL,
	
	    
		ResponsesPk VARCHAR(200),
	
	    CONSTRAINT pk_surveys PRIMARY KEY (RowId),
	    CONSTRAINT fk_surveys_surveyDesignId FOREIGN KEY (SurveyDesignId) REFERENCES survey.SurveyDesigns (RowId)
	)
2016-04-07 12:52:41 CEST [3782-1092] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE survey.SurveyDesigns ADD COLUMN Description TEXT
2016-04-07 12:52:41 CEST [3782-1093] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:41 CEST [3782-1094] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:41.801', $2 = '0', $3 = '2016-04-07 12:52:41.801', $4 = '0', $5 = '2016-04-07 12:52:41.801', $6 = 'Survey', $7 = 'survey-0.00-13.10.sql'
2016-04-07 12:52:41 CEST [3782-1095] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:41 CEST [3782-1096] postgres@labkey DETAIL:  parameters: $1 = 'Survey', $2 = 'org.labkey.survey.SurveyModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:41 CEST [3782-1097] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA dataintegration
2016-04-07 12:52:41 CEST [3782-1098] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	CREATE TABLE dataintegration.TransformRun
	(
	    RowId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    RecordCount INT,
	    JobId INT NOT NULL,
	    TransformId VARCHAR(50) NOT NULL,
	    TransformVersion INT NOT NULL,
	    Status VARCHAR(500),
	    StartTime TIMESTAMP NULL,
	    EndTime TIMESTAMP NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	
	    CONSTRAINT FK_TransformRun_JobId FOREIGN KEY (JobId) REFERENCES pipeline.StatusFiles (RowId),
	    CONSTRAINT FK_TransformRun_Container FOREIGN KEY (Container) REFERENCES core.Containers(EntityId)
	)
2016-04-07 12:52:42 CEST [3782-1099] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_TransformRun_JobId ON dataintegration.TransformRun(JobId)
2016-04-07 12:52:42 CEST [3782-1100] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_TransformRun_Container ON dataintegration.TransformRun(Container)
2016-04-07 12:52:42 CEST [3782-1101] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE dataintegration.TransformConfiguration
	(
	    RowId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    TransformId VARCHAR(50) NOT NULL,
	    Enabled BOOLEAN,
	    VerboseLogging BOOLEAN,
	    LastChecked TIMESTAMP NULL,
	    Created TIMESTAMP NULL,
	    CreatedBy INT NULL,
	    Modified TIMESTAMP NULL,
	    ModifiedBy INT NULL,
	
	    CONSTRAINT UQ_TransformConfiguration_TransformId UNIQUE (TransformId),
	    CONSTRAINT FK_TransformConfiguration_Container FOREIGN KEY (Container) REFERENCES core.Containers(EntityId)
	)
2016-04-07 12:52:42 CEST [3782-1102] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_TransformConfiguration_Container ON dataintegration.TransformRun(Container)
2016-04-07 12:52:42 CEST [3782-1103] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE dataintegration.TransformConfiguration
	   ADD CONSTRAINT PK_TransformConfiguration PRIMARY KEY (RowId)
2016-04-07 12:52:42 CEST [3782-1104] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE dataintegration.TransformRun ADD CONSTRAINT PK_TransformRun PRIMARY KEY (RowId)
2016-04-07 12:52:42 CEST [3782-1105] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP INDEX dataintegration.IDX_TransformConfiguration_Container
2016-04-07 12:52:42 CEST [3782-1106] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE dataintegration.TransformConfiguration DROP CONSTRAINT UQ_TransformConfiguration_TransformId
2016-04-07 12:52:42 CEST [3782-1107] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE dataintegration.TransformConfiguration ADD CONSTRAINT UQ_TransformConfiguration_TransformId UNIQUE (Container, TransformId)
2016-04-07 12:52:42 CEST [3782-1108] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE dataintegration.TransformRun
	  ADD COLUMN ExpRunId INT
2016-04-07 12:52:42 CEST [3782-1109] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE dataintegration.TransformRun
	  ADD CONSTRAINT FK_TransformRun_ExpRunId FOREIGN KEY (ExpRunId) REFERENCES exp.ExperimentRun (RowId)
2016-04-07 12:52:42 CEST [3782-1110] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE dataintegration.TransformRun RENAME RowId to TransformRunId
2016-04-07 12:52:42 CEST [3782-1111] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE dataintegration.TransformConfiguration ADD COLUMN TransformState TEXT
2016-04-07 12:52:42 CEST [3782-1112] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE dataintegration.TransformRun DROP COLUMN JobId
2016-04-07 12:52:42 CEST [3782-1113] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE dataintegration.TransformRun ADD COLUMN JobId INT NULL
2016-04-07 12:52:42 CEST [3782-1114] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE dataintegration.TransformRun ADD CONSTRAINT FK_TransformRun_JobId FOREIGN KEY (JobId) REFERENCES pipeline.StatusFiles (RowId)
2016-04-07 12:52:42 CEST [3782-1115] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_TransformRun_JobId ON dataintegration.TransformRun(JobId)
2016-04-07 12:52:42 CEST [3782-1116] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE dataintegration.TransformRun ADD COLUMN TransformRunLog TEXT
2016-04-07 12:52:42 CEST [3782-1117] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:42 CEST [3782-1118] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:42.467', $2 = '0', $3 = '2016-04-07 12:52:42.467', $4 = '0', $5 = '2016-04-07 12:52:42.467', $6 = 'DataIntegration', $7 = 'dataintegration-0.00-13.30.sql'
2016-04-07 12:52:42 CEST [3782-1119] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE dataintegration.TransformRun ALTER COLUMN TransformId TYPE varchar(100)
2016-04-07 12:52:42 CEST [3782-1120] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:42 CEST [3782-1121] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:42.487', $2 = '0', $3 = '2016-04-07 12:52:42.487', $4 = '0', $5 = '2016-04-07 12:52:42.487', $6 = 'DataIntegration', $7 = 'dataintegration-13.30-14.10.sql'
2016-04-07 12:52:42 CEST [3782-1122] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE dataintegration.TransformConfiguration DROP CONSTRAINT UQ_TransformConfiguration_TransformId
2016-04-07 12:52:42 CEST [3782-1123] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE dataintegration.TransformConfiguration ALTER COLUMN TransformId TYPE varchar(100)
2016-04-07 12:52:42 CEST [3782-1124] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE dataintegration.TransformConfiguration ADD CONSTRAINT UQ_TransformConfiguration_TransformId UNIQUE (Container, TransformId)
2016-04-07 12:52:42 CEST [3782-1125] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE dataintegration.TransformRun DROP CONSTRAINT FK_TransformRun_ExpRunId
2016-04-07 12:52:42 CEST [3782-1126] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE dataintegration.TransformRun DROP COLUMN ExpRunId
2016-04-07 12:52:42 CEST [3782-1127] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:42 CEST [3782-1128] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:42.566', $2 = '0', $3 = '2016-04-07 12:52:42.566', $4 = '0', $5 = '2016-04-07 12:52:42.566', $6 = 'DataIntegration', $7 = 'dataintegration-15.20-15.30.sql'
2016-04-07 12:52:42 CEST [3782-1129] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:42 CEST [3782-1130] postgres@labkey DETAIL:  parameters: $1 = 'DataIntegration', $2 = 'org.labkey.di.DataIntegrationModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:42 CEST [3782-1131] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA study
2016-04-07 12:52:42 CEST [3782-1132] postgres@labkey LOG:  execute <unnamed>: 
	CREATE SCHEMA studyDataset
2016-04-07 12:52:42 CEST [3782-1133] postgres@labkey LOG:  execute <unnamed>: 
	CREATE SCHEMA assayresult
2016-04-07 12:52:42 CEST [3782-1134] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.QCState
	(
	    RowId SERIAL,
	    Label VARCHAR(64) NULL,
	    Description VARCHAR(500) NULL,
	    Container ENTITYID NOT NULL,
	    PublicData BOOLEAN NOT NULL,
	    CONSTRAINT PK_QCState PRIMARY KEY (RowId),
	    CONSTRAINT UQ_QCState_Label UNIQUE(Label, Container)
	)
2016-04-07 12:52:42 CEST [3782-1135] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Study
	(
	    Label VARCHAR(200) NULL,
	    Container ENTITYID NOT NULL,
	    EntityId ENTITYID,
	    TimepointType VARCHAR(15) NOT NULL,
	    StartDate TIMESTAMP,
	    ParticipantCohortDataSetId INT NULL,
	    ParticipantCohortProperty VARCHAR(200) NULL,
	    SecurityType VARCHAR(32) NOT NULL,
	    LSID VARCHAR(200) NOT NULL,
	    manualCohortAssignment BOOLEAN NOT NULL DEFAULT FALSE,
	    DefaultPipelineQCState INT,
	    DefaultAssayQCState INT,
	    DefaultDirectEntryQCState INT,
	    ShowPrivateDataByDefault BOOLEAN NOT NULL DEFAULT FALSE,
	    AllowReload BOOLEAN NOT NULL DEFAULT FALSE,
	    ReloadInterval INT NULL,
	    LastReload TIMESTAMP NULL,
	    ReloadUser UserId,
	    AdvancedCohorts BOOLEAN NOT NULL DEFAULT FALSE,
	    ParticipantCommentDataSetId INT NULL,
	    ParticipantCommentProperty VARCHAR(200) NULL,
	    ParticipantVisitCommentDataSetId INT NULL,
	    ParticipantVisitCommentProperty VARCHAR(200) NULL,
	    SubjectNounSingular VARCHAR(50) NOT NULL DEFAULT 'Participant',
	    SubjectNounPlural VARCHAR(50) NOT NULL DEFAULT 'Participants',
	    SubjectColumnName VARCHAR(50) NOT NULL DEFAULT 'ParticipantId',
	
	    CONSTRAINT PK_Study PRIMARY KEY (Container),
	    CONSTRAINT FK_Study_DefaultPipelineQCState FOREIGN KEY (DefaultPipelineQCState) REFERENCES study.QCState (RowId),
	    CONSTRAINT FK_Study_DefaultAssayQCState FOREIGN KEY (DefaultAssayQCState) REFERENCES study.QCState (RowId),
	    CONSTRAINT FK_Study_DefaultDirectEntryQCState FOREIGN KEY (DefaultDirectEntryQCState) REFERENCES study.QCState (RowId)
	)
2016-04-07 12:52:42 CEST [3782-1136] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Site
	(
	    RowId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    Label VARCHAR(200) NULL,
	    Container ENTITYID NOT NULL,
	    ExternalId INT,
	    LdmsLabCode INT,
	    LabwareLabCode VARCHAR(20),
	    LabUploadCode VARCHAR(10),
	    Repository BOOLEAN,
	    Clinic BOOLEAN,
	    SAL BOOLEAN,
	    Endpoint BOOLEAN,
	
	    CONSTRAINT PK_Site PRIMARY KEY (RowId)
	)
2016-04-07 12:52:43 CEST [3782-1137] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Cohort
	(
	    RowId SERIAL,
	    Label VARCHAR(200) NULL,
	    Container ENTITYID NOT NULL,
	    LSID VARCHAR(200) NOT NULL,
	
	    CONSTRAINT PK_Cohort PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Cohort_Label UNIQUE(Label, Container)
	)
2016-04-07 12:52:43 CEST [3782-1138] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Visit
	(
	    RowId SERIAL,
	    SequenceNumMin NUMERIC(15,4) NOT NULL DEFAULT 0,
	    SequenceNumMax NUMERIC(15,4) NOT NULL DEFAULT 0,
	    Label VARCHAR(200) NULL,
	    TypeCode CHAR(1) NULL,
	    Container ENTITYID NOT NULL,
	    ShowByDefault BOOLEAN NOT NULL DEFAULT '1',
	    DisplayOrder INT NOT NULL DEFAULT 0,
	    VisitDateDatasetId INT,
	    CohortId INT NULL,
	    ChronologicalOrder INTEGER NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_Visit PRIMARY KEY (Container, RowId),
	    CONSTRAINT UQ_Visit_ContSeqNum UNIQUE(Container, SequenceNumMin),
	    CONSTRAINT FK_Visit_Cohort FOREIGN KEY (CohortId) REFERENCES study.Cohort (RowId)
	)
2016-04-07 12:52:43 CEST [3782-1139] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Visit_CohortId ON study.Visit(CohortId)
2016-04-07 12:52:43 CEST [3782-1140] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.VisitMap
	(
	    Container ENTITYID NOT NULL,
	    VisitRowId INT4 NOT NULL,   
	    DataSetId INT NOT NULL, 
	    Required BOOLEAN NOT NULL DEFAULT '1',
	
	    CONSTRAINT PK_VisitMap PRIMARY KEY (Container, VisitRowId, DataSetId)
	)
2016-04-07 12:52:43 CEST [3782-1141] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.DataSet 
	(
	    Container ENTITYID NOT NULL,
	    DataSetId INT NOT NULL,
	    TypeURI VARCHAR(200) NULL,
	    Label VARCHAR(200) NOT NULL,
	    Category VARCHAR(200) NULL,
	    ShowByDefault BOOLEAN NOT NULL DEFAULT '1',
	    DisplayOrder INT NOT NULL DEFAULT 0,
	    EntityId ENTITYID,
	    VisitDatePropertyName VARCHAR(200),
	    KeyPropertyName VARCHAR(50),             
	    Name VARCHAR(200) NOT NULL,
	    Description TEXT NULL,
	    DemographicData BOOLEAN DEFAULT FALSE,
	    CohortId INT NULL,
	    ProtocolId INT NULL,
	    KeyManagementType VARCHAR(10)NOT NULL,
	
	    CONSTRAINT PK_DataSet PRIMARY KEY (Container,DataSetId),
	    CONSTRAINT UQ_DatasetName UNIQUE (Container, Name),
	    CONSTRAINT UQ_DatasetLabel UNIQUE (Container, Label),
	    CONSTRAINT FK_Dataset_Cohort FOREIGN KEY (CohortId) REFERENCES study.Cohort (RowId)
	)
2016-04-07 12:52:43 CEST [3782-1142] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Dataset_CohortId ON study.Dataset(CohortId)
2016-04-07 12:52:43 CEST [3782-1143] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SampleRequestStatus
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    SortOrder INT NULL,
	    Label VARCHAR(100),
	    FinalState BOOLEAN NOT NULL DEFAULT '0',
	    SpecimensLocked BOOLEAN NOT NULL DEFAULT '1',
	
	    CONSTRAINT PK_SampleRequestStatus PRIMARY KEY (RowId)
	)
2016-04-07 12:52:43 CEST [3782-1144] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleRequestStatus_Container ON study.SampleRequestStatus(Container)
2016-04-07 12:52:43 CEST [3782-1145] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SampleRequestActor
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    SortOrder INT NULL,
	    Label VARCHAR(100),
	    PerSite BOOLEAN NOT NULL DEFAULT '0',
	
	    CONSTRAINT PK_SampleRequestActor PRIMARY KEY (RowId)
	)
2016-04-07 12:52:43 CEST [3782-1146] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleRequestActor_Container ON study.SampleRequestActor(Container)
2016-04-07 12:52:44 CEST [3782-1147] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SampleRequest
	(
	    
	    _ts TIMESTAMP,
	    RowId SERIAL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Container ENTITYID NOT NULL,
	
	    StatusId INT NOT NULL,
	    Comments TEXT,
	    DestinationSiteId INT NULL,
	    Hidden BOOLEAN NOT NULL DEFAULT '0',
	    EntityId ENTITYID NULL,
	
	    CONSTRAINT PK_SampleRequest PRIMARY KEY (RowId),
	    CONSTRAINT FK_SampleRequest_SampleRequestStatus FOREIGN KEY (StatusId) REFERENCES study.SampleRequestStatus(RowId),
	    CONSTRAINT FK_SampleRequest_Site FOREIGN KEY (DestinationSiteId) REFERENCES study.Site(RowId)
	)
2016-04-07 12:52:44 CEST [3782-1148] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleRequest_Container ON study.SampleRequest(Container)
2016-04-07 12:52:44 CEST [3782-1149] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequest_StatusId ON study.SampleRequest(StatusId)
2016-04-07 12:52:44 CEST [3782-1150] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequest_DestinationSiteId ON study.SampleRequest(DestinationSiteId)
2016-04-07 12:52:44 CEST [3782-1151] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequest_EntityId ON study.SampleRequest(EntityId)
2016-04-07 12:52:44 CEST [3782-1152] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SampleRequestRequirement
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    RequestId INT NOT NULL,
	    ActorId INT NOT NULL,
	    SiteId INT NULL,
	    Description VARCHAR(300),
	    Complete BOOLEAN NOT NULL DEFAULT '0',
	    OwnerEntityId ENTITYID NULL,
	
	    CONSTRAINT PK_SampleRequestRequirement PRIMARY KEY (RowId),
	    CONSTRAINT FK_SampleRequestRequirement_SampleRequestActor FOREIGN KEY (ActorId) REFERENCES study.SampleRequestActor(RowId),
	    CONSTRAINT FK_SampleRequestRequirement_Site FOREIGN KEY (SiteId) REFERENCES study.Site(RowId)
	)
2016-04-07 12:52:44 CEST [3782-1153] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleRequestRequirement_Container ON study.SampleRequestRequirement(Container)
2016-04-07 12:52:44 CEST [3782-1154] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequestRequirement_RequestId ON study.SampleRequestRequirement(RequestId)
2016-04-07 12:52:44 CEST [3782-1155] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequestRequirement_ActorId ON study.SampleRequestRequirement(ActorId)
2016-04-07 12:52:44 CEST [3782-1156] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequestRequirement_SiteId ON study.SampleRequestRequirement(SiteId)
2016-04-07 12:52:44 CEST [3782-1157] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequestRequirement_OwnerEntityId ON study.SampleRequestRequirement(OwnerEntityId)
2016-04-07 12:52:44 CEST [3782-1158] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SampleRequestEvent
	(
	    RowId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    Container ENTITYID NOT NULL,
	    RequestId INT NOT NULL,
	    Comments TEXT,
	    EntryType VARCHAR(64),
	    RequirementId INT NULL,
	    
	    CONSTRAINT PK_SampleRequestEvent PRIMARY KEY (RowId),
	    CONSTRAINT FK_SampleRequestEvent_SampleRequest FOREIGN KEY (RequestId) REFERENCES study.SampleRequest(RowId)
	)
2016-04-07 12:52:44 CEST [3782-1159] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleRequestEvent_Container ON study.SampleRequestEvent(Container)
2016-04-07 12:52:44 CEST [3787-1] postgres@labkey LOG:  execute S_43/C_44: INSERT INTO core.logins (Email, Crypt, LastChanged, Verification, PreviousCrypts) VALUES ($1, $2, $3, $4, $5)
2016-04-07 12:52:44 CEST [3787-2] postgres@labkey DETAIL:  parameters: $1 = 'andrej.studen@ijs.si', $2 = 'md5:6e9e1685baff115c528b2f21dc24a4a0', $3 = '2016-04-07 12:52:44.743', $4 = '8O5tGpIyQPr3mBlLNkLZ10qXV2LzRw3j', $5 = 'md5:6e9e1685baff115c528b2f21dc24a4a0'
2016-04-07 12:52:44 CEST [3782-1160] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequestEvent_RequestId ON study.SampleRequestEvent(RequestId)
2016-04-07 12:52:44 CEST [3787-3] postgres@labkey LOG:  execute S_45/C_46: INSERT INTO core.principals
		(name, type)
		VALUES ($1, $2)
	RETURNING userid
2016-04-07 12:52:44 CEST [3787-4] postgres@labkey DETAIL:  parameters: $1 = 'andrej.studen@ijs.si', $2 = 'u'
2016-04-07 12:52:44 CEST [3787-5] postgres@labkey LOG:  execute S_49/C_50: INSERT INTO core.usersdata
		(_ts, entityid, created, modified, userid, displayname)
		VALUES ($1, $2, $3, $4, $5, $6)
2016-04-07 12:52:44 CEST [3787-6] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:44.802', $2 = 'aeef676e-dedc-1033-b8fa-6788989ded56', $3 = '2016-04-07 12:52:44.802', $4 = '2016-04-07 12:52:44.802', $5 = '1003', $6 = 'andrej studen'
2016-04-07 12:52:44 CEST [3782-1161] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Participant
	(
	    Container ENTITYID NOT NULL,
	    ParticipantId VARCHAR(32) NOT NULL,
	    EnrollmentSiteId INT NULL,
	    CurrentSiteId INT NULL,
	    StartDate TIMESTAMP,
	    InitialCohortId INTEGER,
	    CurrentCohortId INT NULL,
	
	    CONSTRAINT PK_Participant PRIMARY KEY (Container, ParticipantId),
	    CONSTRAINT FK_EnrollmentSiteId_Site FOREIGN KEY (EnrollmentSiteId) REFERENCES study.Site (RowId),
	    CONSTRAINT FK_CurrentSiteId_Site FOREIGN KEY (CurrentSiteId) REFERENCES study.Site (RowId)
	)
2016-04-07 12:52:44 CEST [3782-1162] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Participant_ParticipantId ON study.Participant(ParticipantId)
2016-04-07 12:52:44 CEST [3782-1163] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Participant_InitialCohort ON study.Participant(InitialCohortId)
2016-04-07 12:52:44 CEST [3782-1164] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE INDEX IX_Participant_CohortId ON study.Participant(CurrentCohortId)
2016-04-07 12:52:44 CEST [3787-7] postgres@labkey LOG:  execute S_56/C_57: UPDATE core.logins SET Crypt=$1, LastChanged=$2, PreviousCrypts=$3 WHERE Email=$4
2016-04-07 12:52:44 CEST [3787-8] postgres@labkey DETAIL:  parameters: $1 = 'bc:$2a$11$YOYpUX0tafleRwhyrIIzF.12N91YHX9yf1wvG.G5644vkDj5JlMGS', $2 = '2016-04-07 12:52:44.977', $3 = 'md5:6e9e1685baff115c528b2f21dc24a4a0,bc:$2a$11$YOYpUX0tafleRwhyrIIzF.12N91YHX9yf1wvG.G5644vkDj5JlMGS', $4 = 'andrej.studen@ijs.si'
2016-04-07 12:52:45 CEST [3782-1165] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Participant_CurrentCohort ON study.Participant(CurrentCohortId)
2016-04-07 12:52:45 CEST [3782-1166] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Report
	(
	    ReportId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ContainerId ENTITYID NOT NULL,
	    Label VARCHAR(100) NOT NULL,
	    Params VARCHAR(512) NULL,
	    ReportType VARCHAR(100) NOT NULL,
	    Scope INT NOT NULL,
	    ShowWithDataset INT NULL,
	
	    CONSTRAINT PK_Report PRIMARY KEY (ContainerId, ReportId),
	    CONSTRAINT UQ_Report UNIQUE (ContainerId, Label)
	)
2016-04-07 12:52:45 CEST [3787-9] postgres@labkey LOG:  execute S_62/C_63: UPDATE core.usersdata SET LastLogin = $1 WHERE UserId = $2
2016-04-07 12:52:45 CEST [3787-10] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:45.132', $2 = '1003'
2016-04-07 12:52:45 CEST [3782-1167] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE study.SpecimenAdditive
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    ExternalId INT NOT NULL DEFAULT 0,
	    LdmsAdditiveCode VARCHAR(30),
	    LabwareAdditiveCode VARCHAR(20),
	    Additive VARCHAR(100),
	
	    CONSTRAINT PK_Additives PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Additive UNIQUE (ExternalId, Container)
	)
2016-04-07 12:52:45 CEST [3787-11] postgres@labkey LOG:  execute S_68/C_69: INSERT INTO core.members (UserId, GroupId) VALUES ($1, $2)
2016-04-07 12:52:45 CEST [3787-12] postgres@labkey DETAIL:  parameters: $1 = '1003', $2 = '-1'
2016-04-07 12:52:45 CEST [3787-13] postgres@labkey LOG:  execute S_75/C_76: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:52:45 CEST [3787-14] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'LookAndFeel', $3 = '-1', $4 = 'None'
2016-04-07 12:52:45 CEST [3782-1168] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SpecimenAdditive_Container ON study.SpecimenAdditive(Container)
2016-04-07 12:52:45 CEST [3782-1169] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenAdditive_ExternalId ON study.SpecimenAdditive(ExternalId)
2016-04-07 12:52:45 CEST [3782-1170] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenAdditive_Additive ON study.SpecimenAdditive(Additive)
2016-04-07 12:52:45 CEST [3782-1171] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SpecimenDerivative
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    ExternalId INT NOT NULL DEFAULT 0,
	    LdmsDerivativeCode VARCHAR(30),
	    LabwareDerivativeCode VARCHAR(20),
	    Derivative VARCHAR(100),
	
	    CONSTRAINT PK_Derivatives PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Derivative UNIQUE (ExternalId, Container)
	)
2016-04-07 12:52:45 CEST [3782-1172] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SpecimenDerivative_Container ON study.SpecimenDerivative(Container)
2016-04-07 12:52:45 CEST [3782-1173] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenDerivative_ExternalId ON study.SpecimenDerivative(ExternalId)
2016-04-07 12:52:45 CEST [3782-1174] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenDerivative_Derivative ON study.SpecimenDerivative(Derivative)
2016-04-07 12:52:45 CEST [3782-1175] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SpecimenPrimaryType
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    ExternalId INT NOT NULL DEFAULT 0,
	    PrimaryTypeLdmsCode VARCHAR(5),
	    PrimaryTypeLabwareCode VARCHAR(5),
	    PrimaryType VARCHAR(100),
	
	    CONSTRAINT PK_PrimaryTypes PRIMARY KEY (RowId),
	    CONSTRAINT UQ_PrimaryType UNIQUE (ExternalId, Container)
	)
2016-04-07 12:52:45 CEST [3782-1176] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SpecimenPrimaryType_Container ON study.SpecimenPrimaryType(Container)
2016-04-07 12:52:45 CEST [3782-1177] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenPrimaryType_ExternalId ON study.SpecimenPrimaryType(ExternalId)
2016-04-07 12:52:46 CEST [3782-1178] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenPrimaryType_PrimaryType ON study.SpecimenPrimaryType(PrimaryType)
2016-04-07 12:52:46 CEST [3782-1179] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE study.Specimen
	(
	    RowId SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    SpecimenHash VARCHAR(256),
	    Ptid VARCHAR(32),
	    VisitDescription VARCHAR(10),
	    VisitValue NUMERIC(15,4),
	    VolumeUnits VARCHAR(20),
	    PrimaryTypeId INTEGER,
	    AdditiveTypeId INTEGER,
	    DerivativeTypeId INTEGER,
	    DerivativeTypeId2 INTEGER,
	    SubAdditiveDerivative VARCHAR(50),
	    DrawTimestamp TIMESTAMP,
	    SalReceiptDate TIMESTAMP,
	    ClassId VARCHAR(20),
	    ProtocolNumber VARCHAR(20),
	    OriginatingLocationId INTEGER,
	    TotalVolume FLOAT,
	    AvailableVolume FLOAT,
	    VialCount INTEGER,
	    LockedInRequestCount INTEGER,
	    AtRepositoryCount INTEGER,
	    AvailableCount INTEGER,
	    ExpectedAvailableCount INTEGER,
	    ParticipantSequenceKey VARCHAR(200),
	    ProcessingLocation INT,
	    FirstProcessedByInitials VARCHAR(32),
	
	    CONSTRAINT PK_Specimen PRIMARY KEY (RowId)
	)
2016-04-07 12:52:46 CEST [3782-1180] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Specimen_AdditiveTypeId ON study.Specimen(AdditiveTypeId)
2016-04-07 12:52:46 CEST [3782-1181] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_Container ON study.Specimen(Container)
2016-04-07 12:52:46 CEST [3782-1182] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_DerivativeTypeId ON study.Specimen(DerivativeTypeId)
2016-04-07 12:52:46 CEST [3782-1183] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_OriginatingLocationId ON study.Specimen(OriginatingLocationId)
2016-04-07 12:52:46 CEST [3782-1184] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_PrimaryTypeId ON study.Specimen(PrimaryTypeId)
2016-04-07 12:52:46 CEST [3782-1185] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_Ptid ON study.Specimen(Ptid)
2016-04-07 12:52:46 CEST [3782-1186] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_Container_SpecimenHash ON study.Specimen(Container, SpecimenHash)
2016-04-07 12:52:46 CEST [3782-1187] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_VisitValue ON study.Specimen(VisitValue)
2016-04-07 12:52:46 CEST [3782-1188] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_DerivativeTypeId2 ON study.Specimen(DerivativeTypeId2)
2016-04-07 12:52:46 CEST [3782-1189] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Specimen_ParticipantSequenceKey ON study.Specimen(ParticipantSequenceKey, Container)
2016-04-07 12:52:46 CEST [3782-1190] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE study.Vial
	(
	    RowId INT NOT NULL, 
	    Container ENTITYID NOT NULL,
	    GlobalUniqueId VARCHAR(50) NOT NULL,
	    Volume FLOAT,
	    SpecimenHash VARCHAR(256),
	    Requestable BOOLEAN,
	    CurrentLocation INT,
	    AtRepository BOOLEAN NOT NULL DEFAULT FALSE,
	    LockedInRequest BOOLEAN NOT NULL DEFAULT FALSE,
	    Available BOOLEAN NOT NULL DEFAULT FALSE,
	    ProcessingLocation INT,
	    SpecimenId INTEGER NOT NULL,
	    PrimaryVolume FLOAT,
	    PrimaryVolumeUnits VARCHAR(20),
	    FirstProcessedByInitials VARCHAR(32),
	    AvailabilityReason VARCHAR(256),
	
	    CONSTRAINT PK_Specimens PRIMARY KEY (RowId),
	    CONSTRAINT UQ_Specimens_GlobalId UNIQUE (GlobalUniqueId, Container),
	    CONSTRAINT FK_CurrentLocation_Site FOREIGN KEY (CurrentLocation) REFERENCES study.Site(RowId),
	    CONSTRAINT FK_Vial_Specimen FOREIGN KEY (SpecimenId) REFERENCES study.Specimen(RowId)
	)
2016-04-07 12:52:46 CEST [3782-1191] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Vial_Container ON study.Vial(Container)
2016-04-07 12:52:46 CEST [3782-1192] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Vial_GlobalUniqueId ON study.Vial(GlobalUniqueId)
2016-04-07 12:52:46 CEST [3782-1193] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Vial_CurrentLocation ON study.Vial(CurrentLocation)
2016-04-07 12:52:46 CEST [3782-1194] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Vial_Container_SpecimenHash ON study.Vial(Container, SpecimenHash)
2016-04-07 12:52:47 CEST [3782-1195] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Vial_SpecimenId ON study.Vial(SpecimenId)
2016-04-07 12:52:47 CEST [3782-1196] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SpecimenEvent
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    VialId INT NOT NULL,
	    LabId INT,
	    UniqueSpecimenId VARCHAR(50),
	    ParentSpecimenId INT,
	    Stored INT,
	    StorageFlag INT,
	    StorageDate TIMESTAMP,
	    ShipFlag INT,
	    ShipBatchNumber INT,
	    ShipDate TIMESTAMP,
	    ImportedBatchNumber INT,
	    LabReceiptDate TIMESTAMP,
	    Comments VARCHAR(200),
	    SpecimenCondition VARCHAR(30),
	    SampleNumber INT,
	    XSampleOrigin VARCHAR(50),
	    ExternalLocation VARCHAR(50),
	    UpdateTimestamp TIMESTAMP,
	    OtherSpecimenId VARCHAR(50),
	    ExpectedTimeUnit VARCHAR(15),
	    ExpectedTimeValue FLOAT,
	    GroupProtocol INT,
	    RecordSource VARCHAR(20),
	    freezer VARCHAR(200),
	    fr_level1 VARCHAR(200),
	    fr_level2 VARCHAR(200),
	    fr_container VARCHAR(200),
	    fr_position VARCHAR(200),
	    SpecimenNumber VARCHAR(50),
	    ExternalId INT,
	    ShippedFromLab VARCHAR(32),
	    ShippedToLab VARCHAR(32),
	    Ptid VARCHAR(32),
	    DrawTimestamp TIMESTAMP,
	    SalReceiptDate TIMESTAMP,
	    ClassId VARCHAR(20),
	    VisitValue NUMERIC(15,4),
	    ProtocolNumber VARCHAR(20),
	    VisitDescription VARCHAR(10),
	    Volume double precision,
	    VolumeUnits VARCHAR(20),
	    SubAdditiveDerivative VARCHAR(50),
	    PrimaryTypeId INT,
	    DerivativeTypeId INT,
	    AdditiveTypeId INT,
	    DerivativeTypeId2 INT,
	    OriginatingLocationId INT,
	    FrozenTime TIMESTAMP,
	    ProcessingTime TIMESTAMP,
	    PrimaryVolume FLOAT,
	    PrimaryVolumeUnits VARCHAR(20),
	    ProcessedByInitials VARCHAR(32),
	    ProcessingDate TIMESTAMP,
	
	    CONSTRAINT PK_SpecimensEvents PRIMARY KEY (RowId),
	    CONSTRAINT FK_SpecimensEvents_Specimens FOREIGN KEY (VialId) REFERENCES study.Vial(RowId),
	    CONSTRAINT FK_Specimens_Site FOREIGN KEY (LabId) REFERENCES study.Site(RowId)
	)
2016-04-07 12:52:47 CEST [3782-1197] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE INDEX IX_SpecimenEvent_SpecimenId ON study.SpecimenEvent(VialId)
2016-04-07 12:52:47 CEST [3782-1198] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenEvent_Container ON study.SpecimenEvent(Container)
2016-04-07 12:52:47 CEST [3782-1199] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenEvent_LabId ON study.SpecimenEvent(LabId)
2016-04-07 12:52:47 CEST [3782-1200] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SampleRequestSpecimen
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    SampleRequestId INT NOT NULL,
	    SpecimenGlobalUniqueId VARCHAR(100),
	    Orphaned BOOLEAN NOT NULL DEFAULT FALSE,
	
	    CONSTRAINT PK_SampleRequestSpecimen PRIMARY KEY (RowId),
	    CONSTRAINT FK_SampleRequestSpecimen_SampleRequest FOREIGN KEY (SampleRequestId) REFERENCES study.SampleRequest(RowId)
	)
2016-04-07 12:52:47 CEST [3782-1201] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleRequestSpecimen_Container ON study.SampleRequestSpecimen(Container)
2016-04-07 12:52:47 CEST [3782-1202] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequestSpecimen_SampleRequestId ON study.SampleRequestSpecimen(SampleRequestId)
2016-04-07 12:52:47 CEST [3782-1203] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SampleRequestSpecimen_SpecimenGlobalUniqueId ON study.SampleRequestSpecimen(SpecimenGlobalUniqueId)
2016-04-07 12:52:47 CEST [3782-1204] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.UploadLog
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    Created TIMESTAMP NOT NULL,
	    CreatedBy USERID NOT NULL,
	    Description TEXT,
	    FilePath VARCHAR(400),   
	    DatasetId INT NOT NULL,
	    Status VARCHAR(20),
	
	    CONSTRAINT PK_UploadLog PRIMARY KEY (RowId),
	    CONSTRAINT UQ_UploadLog_FilePath UNIQUE (FilePath)
	)
2016-04-07 12:52:47 CEST [3782-1205] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Plate
	(
	    RowId SERIAL,
	    LSID VARCHAR(200) NOT NULL,
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(200) NULL,
	    CreatedBy USERID NOT NULL,
	    Created TIMESTAMP NOT NULL,
	    Template BOOLEAN NOT NULL,
	    DataFileId ENTITYID,
	    Rows INT NOT NULL,
	    Columns INT NOT NULL,
	    Type VARCHAR(200),
	
	    CONSTRAINT PK_Plate PRIMARY KEY (RowId)
	)
2016-04-07 12:52:47 CEST [3782-1206] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Plate_Container ON study.Plate(Container)
2016-04-07 12:52:47 CEST [3782-1207] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.WellGroup
	(
	    RowId SERIAL,
	    PlateId INT NOT NULL,
	    LSID VARCHAR(200) NOT NULL,
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(200) NULL,
	    Template BOOLEAN NOT NULL,
	    TypeName VARCHAR(50) NOT NULL,
	
	    CONSTRAINT PK_WellGroup PRIMARY KEY (RowId),
	    CONSTRAINT FK_WellGroup_Plate FOREIGN KEY (PlateId) REFERENCES study.Plate(RowId)
	)
2016-04-07 12:52:48 CEST [3782-1208] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_WellGroup_PlateId ON study.WellGroup(PlateId)
2016-04-07 12:52:48 CEST [3782-1209] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_WellGroup_Container ON study.WellGroup(Container)
2016-04-07 12:52:48 CEST [3782-1210] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Well
	(
	    RowId SERIAL,
	    LSID VARCHAR(200) NOT NULL,
	    Container ENTITYID NOT NULL,
	    Value FLOAT NULL,
	    Dilution FLOAT NULL,
	    PlateId INT NOT NULL,
	    Row INT NOT NULL,
	    Col INT NOT NULL,
	
	    CONSTRAINT PK_Well PRIMARY KEY (RowId),
	    CONSTRAINT FK_Well_Plate FOREIGN KEY (PlateId) REFERENCES study.Plate(RowId)
	)
2016-04-07 12:52:48 CEST [3782-1211] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Well_PlateId ON study.Well(PlateId)
2016-04-07 12:52:48 CEST [3782-1212] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Well_Container ON study.Well(Container)
2016-04-07 12:52:48 CEST [3782-1213] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.ParticipantVisit
	(
	    Container ENTITYID NOT NULL,
	    ParticipantId VARCHAR(32) NOT NULL,
	    VisitRowId INT NULL,
	    SequenceNum NUMERIC(15,4) NOT NULL,
	    VisitDate TIMESTAMP,
	    Day INT4,
	    CohortID INT NULL,
	    ParticipantSequenceKey VARCHAR(200),
	
	    CONSTRAINT PK_ParticipantVisit PRIMARY KEY (Container, SequenceNum, ParticipantId),
	    CONSTRAINT UQ_StudyData_ParticipantSequenceKey UNIQUE (ParticipantSequenceKey, Container),
	    CONSTRAINT FK_ParticipantVisit_Cohort FOREIGN KEY (CohortID) REFERENCES study.Cohort (RowId)
	)
2016-04-07 12:52:48 CEST [3782-1214] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_ParticipantVisit_Container ON study.ParticipantVisit(Container)
2016-04-07 12:52:48 CEST [3782-1215] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ParticipantVisit_ParticipantId ON study.ParticipantVisit(ParticipantId)
2016-04-07 12:52:48 CEST [3782-1216] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ParticipantVisit_SequenceNum ON study.ParticipantVisit(SequenceNum)
2016-04-07 12:52:48 CEST [3782-1217] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ParticipantVisit_ParticipantSequenceKey ON study.ParticipantVisit(ParticipantSequenceKey, Container)
2016-04-07 12:52:48 CEST [3782-1218] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesign
	(
	    
	    _ts TIMESTAMP,
	    StudyId SERIAL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Container ENTITYID NOT NULL,
	    PublicRevision INT NULL,
	    DraftRevision INT NULL,
	    Label VARCHAR(200) NOT NULL,
	    Active BOOLEAN NOT NULL DEFAULT FALSE,
	    SourceContainer ENTITYID,
	
	    CONSTRAINT PK_StudyDesign PRIMARY KEY (StudyId),
	    CONSTRAINT UQ_StudyDesign UNIQUE (Container,StudyId),
	    CONSTRAINT UQ_StudyDesignLabel UNIQUE (Container, Label)
	)
2016-04-07 12:52:48 CEST [3782-1219] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignVersion
	(
	    
	    _ts TIMESTAMP,
	    RowId SERIAL,
	    StudyId INT NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    Container ENTITYID NOT NULL,
	    Revision INT NOT NULL,
	    Draft BOOLEAN NOT NULL DEFAULT '1',
	    Label VARCHAR(200) NOT NULL,
	    Description TEXT,
	    XML TEXT,
	
	    CONSTRAINT PK_StudyDesignVersion PRIMARY KEY (StudyId,Revision),
	    CONSTRAINT FK_StudyDesignVersion_StudyDesign FOREIGN KEY (StudyId) REFERENCES study.StudyDesign(StudyId),
	    CONSTRAINT UQ_StudyDesignVersion UNIQUE (Container,Label,Revision)
	)
2016-04-07 12:52:48 CEST [3782-1220] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.ParticipantView
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Body TEXT,
	    Active BOOLEAN NOT NULL,
	
	    CONSTRAINT PK_ParticipantView PRIMARY KEY (RowId),
	    CONSTRAINT FK_ParticipantView_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
	)
2016-04-07 12:52:49 CEST [3782-1221] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.SpecimenComment
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    GlobalUniqueId VARCHAR(50) NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Comment TEXT,
	    SpecimenHash VARCHAR(256),
	    QualityControlFlag BOOLEAN NOT NULL DEFAULT FALSE,
	    QualityControlFlagForced BOOLEAN NOT NULL DEFAULT FALSE,
	    QualityControlComments VARCHAR(512),
	
	    CONSTRAINT PK_SpecimenComment PRIMARY KEY (RowId)
	)
2016-04-07 12:52:49 CEST [3782-1222] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SpecimenComment_GlobalUniqueId ON study.SpecimenComment(GlobalUniqueId)
2016-04-07 12:52:49 CEST [3782-1223] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpecimenComment_SpecimenHash ON study.SpecimenComment(Container, SpecimenHash)
2016-04-07 12:52:49 CEST [3782-1224] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE study.SampleAvailabilityRule
	(
	    RowId SERIAL NOT NULL,
	    Container EntityId NOT NULL,
	    SortOrder INTEGER NOT NULL,
	    RuleType VARCHAR(50),
	    RuleData VARCHAR(250),
	    MarkType VARCHAR(30),
	
	    CONSTRAINT PL_SampleAvailabilityRule PRIMARY KEY (RowId)
	)
2016-04-07 12:52:49 CEST [3782-1225] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE exp.objectproperty DROP CONSTRAINT pk_objectproperty
2016-04-07 12:52:49 CEST [3782-1226] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.objectproperty DROP CONSTRAINT fk_objectproperty_object
2016-04-07 12:52:49 CEST [3782-1227] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE exp.objectproperty DROP CONSTRAINT fk_objectproperty_propertydescriptor
2016-04-07 12:52:49 CEST [3782-1228] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX exp.idx_objectproperty_propertyid
2016-04-07 12:52:49 CEST [3782-1229] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM exp.ObjectProperty
	WHERE propertyid IN (SELECT DP.propertyid FROM exp.propertydomain DP JOIN exp.domaindescriptor D on DP.domainid = D.domainid JOIN study.dataset DS ON D.domainuri = DS.typeuri)
2016-04-07 12:52:49 CEST [3782-1230] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE exp.objectproperty
	  ADD CONSTRAINT pk_objectproperty PRIMARY KEY (objectid, propertyid),
	  ADD CONSTRAINT fk_objectproperty_object FOREIGN KEY (objectid)
	      REFERENCES exp."object" (objectid) MATCH SIMPLE
	      ON UPDATE NO ACTION ON DELETE NO ACTION,
	  ADD CONSTRAINT fk_objectproperty_propertydescriptor FOREIGN KEY (propertyid)
	      REFERENCES exp.propertydescriptor (propertyid) MATCH SIMPLE
	      ON UPDATE NO ACTION ON DELETE NO ACTION
2016-04-07 12:52:49 CEST [3782-1231] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX idx_objectproperty_propertyid
	  ON exp.objectproperty
	  USING btree
	  (propertyid)
2016-04-07 12:52:49 CEST [3782-1232] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Study
	    ADD COLUMN BlankQCStatePublic BOOLEAN NOT NULL DEFAULT FALSE
2016-04-07 12:52:49 CEST [3782-1233] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.SpecimenEvent ADD TotalCellCount FLOAT
2016-04-07 12:52:49 CEST [3782-1234] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD TotalCellCount FLOAT
2016-04-07 12:52:49 CEST [3782-1235] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE study.VisitAliases
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	    Name VARCHAR(200) NOT NULL,
	    SequenceNum NUMERIC(15, 4) NOT NULL,
	
	    CONSTRAINT PK_VisitNames PRIMARY KEY (RowId)
	)
2016-04-07 12:52:49 CEST [3782-1236] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_VisitAliases_Name ON study.VisitAliases (Container, LOWER(Name))
2016-04-07 12:52:49 CEST [3782-1237] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.dataset DROP CONSTRAINT UQ_DatasetName
2016-04-07 12:52:49 CEST [3782-1238] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.dataset DROP CONSTRAINT UQ_DatasetLabel
2016-04-07 12:52:49 CEST [3782-1239] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_DatasetName ON study.Dataset (Container, LOWER(Name))
2016-04-07 12:52:50 CEST [3782-1240] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_DatasetLabel ON study.Dataset (Container, LOWER(Label))
2016-04-07 12:52:50 CEST [3782-1241] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE study.ParticipantClassifications
	(
	    RowId SERIAL,
	    EntityId ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    Container ENTITYID NOT NULL,
	
		  Label VARCHAR(200) NOT NULL,
		  Type VARCHAR(60) NOT NULL,
	    Shared boolean,
	    AutoUpdate boolean,
	
		
	    QueryName VARCHAR(200),
	    ViewName VARCHAR(200),
	    SchemaName VARCHAR(50),
	
	    
	    DatasetId Integer,
	    GroupProperty VARCHAR(200),
	
	    CONSTRAINT pk_participantClassifications PRIMARY KEY (RowId)
	)
2016-04-07 12:52:50 CEST [3782-1242] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE study.ParticipantGroup
	(
	    RowId SERIAL,
	    Container ENTITYID NOT NULL,
	
		Label VARCHAR(200) NOT NULL,
	    ClassificationId Integer NOT NULL,
	
	    CONSTRAINT pk_participantGroup PRIMARY KEY (RowId),
	    CONSTRAINT fk_participantClassifications_classificationId FOREIGN KEY (ClassificationId) REFERENCES study.ParticipantClassifications (RowId)
	)
2016-04-07 12:52:50 CEST [3782-1243] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE study.ParticipantGroupMap
	(
	    GroupId Integer NOT NULL,
	    ParticipantId VARCHAR(32) NOT NULL,
	    Container ENTITYID NOT NULL,
	
	    CONSTRAINT pk_participantGroupMap PRIMARY KEY (GroupId, ParticipantId, Container),
	    CONSTRAINT fk_participantGroup_groupId FOREIGN KEY (GroupId) REFERENCES study.ParticipantGroup (RowId),
	    CONSTRAINT fk_participant_participantId_container FOREIGN KEY (Container, ParticipantId) REFERENCES study.Participant (Container, ParticipantId)
	)
2016-04-07 12:52:50 CEST [3782-1244] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.ParticipantGroupMap DROP CONSTRAINT fk_participant_participantId_container
2016-04-07 12:52:50 CEST [3782-1245] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.ParticipantGroupMap ADD CONSTRAINT
		fk_participant_participantId_container FOREIGN KEY (Container, ParticipantId) REFERENCES study.Participant(Container, ParticipantId)
		ON DELETE CASCADE
2016-04-07 12:52:50 CEST [3782-1246] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.SpecimenEvent ADD TubeType VARCHAR(32)
2016-04-07 12:52:50 CEST [3782-1247] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD TubeType VARCHAR(32)
2016-04-07 12:52:50 CEST [3782-1248] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.participantclassifications
	RENAME TO participantcategory
2016-04-07 12:52:50 CEST [3782-1249] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.participantgroup
	DROP CONSTRAINT fk_participantclassifications_classificationid
2016-04-07 12:52:50 CEST [3782-1250] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.participantcategory
	DROP CONSTRAINT pk_participantclassifications
2016-04-07 12:52:50 CEST [3782-1251] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.participantcategory
	ADD CONSTRAINT pk_participantcategory PRIMARY KEY (rowid)
2016-04-07 12:52:50 CEST [3782-1252] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.participantgroup RENAME COLUMN classificationid TO categoryid
2016-04-07 12:52:50 CEST [3782-1253] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.participantgroup
	ADD CONSTRAINT fk_participantcategory_categoryid FOREIGN KEY (categoryid)
	REFERENCES study.participantcategory (rowid)
2016-04-07 12:52:50 CEST [3782-1254] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.participantcategory
	ADD CONSTRAINT uq_label_container UNIQUE (label, container)
2016-04-07 12:52:50 CEST [3782-1255] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.ParticipantCategory ADD ModifiedBy USERID
2016-04-07 12:52:50 CEST [3782-1256] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantCategory ADD Modified TIMESTAMP
2016-04-07 12:52:50 CEST [3782-1257] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.ParticipantCategory SET ModifiedBy = CreatedBy
2016-04-07 12:52:50 CEST [3782-1258] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE study.ParticipantCategory SET Modified = Created
2016-04-07 12:52:50 CEST [3782-1259] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.Study ADD Description text
2016-04-07 12:52:50 CEST [3782-1260] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Study ADD ProtocolDocumentEntityId entityid
2016-04-07 12:52:50 CEST [3782-1261] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Study ALTER COLUMN ProtocolDocumentEntityId SET NOT NULL
2016-04-07 12:52:50 CEST [3782-1262] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO core.ViewCategory (Container, Label, CreatedBy, ModifiedBy)
	  SELECT Container, Category, 0, 0 FROM study.Dataset WHERE LENGTH(Category) > 0 GROUP BY Container, Category
2016-04-07 12:52:50 CEST [3782-1263] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Dataset ADD COLUMN CategoryId Integer
2016-04-07 12:52:50 CEST [3782-1264] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.Dataset ds
	    SET CategoryId = (SELECT rowId FROM core.ViewCategory vc WHERE ds.container = vc.container AND ds.category = vc.label)
2016-04-07 12:52:50 CEST [3782-1265] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Dataset DROP COLUMN Category
2016-04-07 12:52:50 CEST [3782-1266] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Study ADD SourceStudyContainerId entityid
2016-04-07 12:52:50 CEST [3782-1267] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD DescriptionRendererType VARCHAR(50) NOT NULL DEFAULT 'TEXT_WITH_LINKS'
2016-04-07 12:52:50 CEST [3782-1268] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD Investigator VARCHAR(200)
2016-04-07 12:52:50 CEST [3782-1269] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD StudyGrant VARCHAR(200)
2016-04-07 12:52:50 CEST [3782-1270] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Study RENAME COLUMN studyGrant TO "Grant"
2016-04-07 12:52:50 CEST [3782-1271] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.Dataset ADD COLUMN Modified TIMESTAMP
2016-04-07 12:52:50 CEST [3782-1272] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Dataset ADD COLUMN Type VARCHAR(50) NOT NULL DEFAULT 'Standard'
2016-04-07 12:52:50 CEST [3782-1273] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE study.ParticipantVisit
	  RENAME ParticipantSequenceKey TO ParticipantSequenceNum
2016-04-07 12:52:50 CEST [3782-1274] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantVisit
	  ADD CONSTRAINT UQ_ParticipantVisit_ParticipantSequenceNum UNIQUE (ParticipantSequenceNum, Container)
2016-04-07 12:52:50 CEST [3782-1275] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantVisit
	  DROP CONSTRAINT UQ_StudyData_ParticipantSequenceKey
2016-04-07 12:52:50 CEST [3782-1276] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER INDEX study.IX_ParticipantVisit_ParticipantSequenceKey RENAME TO IX_ParticipantVisit_ParticipantSequenceNum
2016-04-07 12:52:50 CEST [3782-1277] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Specimen
	  RENAME ParticipantSequenceKey TO ParticipantSequenceNum
2016-04-07 12:52:50 CEST [3782-1278] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER INDEX study.IX_Specimen_ParticipantSequenceKey RENAME TO IX_Specimen_ParticipantSequenceNum
2016-04-07 12:52:50 CEST [3782-1279] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.participantgroup
	  ADD COLUMN filters text,
	  ADD COLUMN description varchar(250)
2016-04-07 12:52:50 CEST [3782-1280] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.study ADD COLUMN DefaultTimepointDuration INT NOT NULL DEFAULT 1
2016-04-07 12:52:50 CEST [3782-1281] postgres@labkey LOG:  execute <unnamed>: 
	
	DELETE FROM study.study WHERE Container NOT IN (SELECT EntityId FROM core.Containers)
2016-04-07 12:52:50 CEST [3782-1282] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Study
	    ADD CONSTRAINT FK_Study_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityId)
2016-04-07 12:52:50 CEST [3782-1283] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.StudyDesign SET sourceContainer=Container WHERE sourceContainer NOT IN (SELECT entityid FROM core.containers)
2016-04-07 12:52:50 CEST [3782-1284] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.ParticipantGroup ADD COLUMN CreatedBy USERID
2016-04-07 12:52:50 CEST [3782-1285] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantGroup ADD COLUMN Created TIMESTAMP
2016-04-07 12:52:50 CEST [3782-1286] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantGroup ADD COLUMN ModifiedBy USERID
2016-04-07 12:52:50 CEST [3782-1287] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantGroup ADD COLUMN Modified TIMESTAMP
2016-04-07 12:52:50 CEST [3782-1288] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.ParticipantGroup SET CreatedBy = ParticipantCategory.CreatedBy FROM study.ParticipantCategory WHERE CategoryId = ParticipantCategory.RowId
2016-04-07 12:52:50 CEST [3782-1289] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE study.ParticipantGroup SET Created = ParticipantCategory.Created FROM study.ParticipantCategory WHERE CategoryId = ParticipantCategory.RowId
2016-04-07 12:52:50 CEST [3782-1290] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.ParticipantGroup SET ModifiedBy = CreatedBy
2016-04-07 12:52:50 CEST [3782-1291] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE study.ParticipantGroup SET Modified = Created
2016-04-07 12:52:50 CEST [3782-1292] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE study.Participant ADD COLUMN DateOffset INT NOT NULL DEFAULT CAST((RANDOM() * 364 + 1) AS INT)
2016-04-07 12:52:51 CEST [3782-1293] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Participant ADD COLUMN AlternateId VARCHAR(32) NULL
2016-04-07 12:52:51 CEST [3782-1294] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Cohort ADD COLUMN Enrolled BOOLEAN NOT NULL DEFAULT TRUE
2016-04-07 12:52:51 CEST [3782-1295] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Study ADD AlternateIdPrefix VARCHAR(20) NULL
2016-04-07 12:52:51 CEST [3782-1296] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD AlternateIdDigits INT NOT NULL DEFAULT 6
2016-04-07 12:52:51 CEST [3782-1297] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.specimenevent ALTER COLUMN rowid TYPE bigint
2016-04-07 12:52:51 CEST [3782-1298] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.specimenevent ALTER COLUMN vialid TYPE bigint
2016-04-07 12:52:51 CEST [3782-1299] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.vial ALTER COLUMN rowid TYPE bigint
2016-04-07 12:52:52 CEST [3782-1300] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.vial ALTER COLUMN specimenid TYPE bigint
2016-04-07 12:52:52 CEST [3782-1301] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.specimen ALTER COLUMN rowid TYPE bigint
2016-04-07 12:52:53 CEST [3782-1302] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE study.StudySnapshot
	(
	    RowId SERIAL,
	    Source ENTITYID NULL,       
	    Destination ENTITYID NULL,  
	    CreatedBy USERID,
	    Created TIMESTAMP,
	
	    Refresh BOOLEAN NOT NULL,   
	    Settings TEXT,
	
	    CONSTRAINT PK_StudySnapshot PRIMARY KEY (RowId)
	)
2016-04-07 12:52:53 CEST [3782-1303] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_StudySnapshot_Source ON study.StudySnapshot(Source)
2016-04-07 12:52:53 CEST [3782-1304] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_StudySnapshot_Destination ON study.StudySnapshot(Destination, RowId)
2016-04-07 12:52:53 CEST [3782-1305] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Study
	    ADD StudySnapshot INT NULL,
	    ADD LastSpecimenLoad TIMESTAMP NULL
2016-04-07 12:52:53 CEST [3782-1306] postgres@labkey LOG:  execute <unnamed>:   
	
	CREATE INDEX IX_Study_StudySnapshot ON study.Study(StudySnapshot)
2016-04-07 12:52:53 CEST [3782-1307] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Vial ADD LatestComments VARCHAR(500)
2016-04-07 12:52:53 CEST [3782-1308] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestQualityComments VARCHAR(500)
2016-04-07 12:52:53 CEST [3782-1309] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestDeviationCode1 VARCHAR(50)
2016-04-07 12:52:53 CEST [3782-1310] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestDeviationCode2 VARCHAR(50)
2016-04-07 12:52:53 CEST [3782-1311] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestDeviationCode3 VARCHAR(50)
2016-04-07 12:52:53 CEST [3782-1312] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestConcentration REAL
2016-04-07 12:52:53 CEST [3782-1313] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestIntegrity REAL
2016-04-07 12:52:53 CEST [3782-1314] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestRatio REAL
2016-04-07 12:52:53 CEST [3782-1315] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD LatestYield REAL
2016-04-07 12:52:53 CEST [3782-1316] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.SpecimenEvent ALTER COLUMN Comments TYPE VARCHAR(500)
2016-04-07 12:52:53 CEST [3782-1317] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD QualityComments VARCHAR(500)
2016-04-07 12:52:53 CEST [3782-1318] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD DeviationCode1 VARCHAR(50)
2016-04-07 12:52:53 CEST [3782-1319] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD DeviationCode2 VARCHAR(50)
2016-04-07 12:52:53 CEST [3782-1320] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD DeviationCode3 VARCHAR(50)
2016-04-07 12:52:53 CEST [3782-1321] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD Concentration REAL
2016-04-07 12:52:53 CEST [3782-1322] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD Integrity REAL
2016-04-07 12:52:53 CEST [3782-1323] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD Ratio REAL
2016-04-07 12:52:53 CEST [3782-1324] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.SpecimenEvent ADD Yield REAL
2016-04-07 12:52:53 CEST [3782-1325] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Visit ADD SequenceNumHandling VARCHAR(32) NULL
2016-04-07 12:52:53 CEST [3782-1326] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.SpecimenEvent ALTER COLUMN TubeType TYPE VARCHAR(64)
2016-04-07 12:52:53 CEST [3782-1327] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ALTER COLUMN TubeType TYPE VARCHAR(64)
2016-04-07 12:52:53 CEST [3782-1328] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.Vial ADD freezer VARCHAR(200)
2016-04-07 12:52:53 CEST [3782-1329] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD fr_container VARCHAR(200)
2016-04-07 12:52:53 CEST [3782-1330] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD fr_position VARCHAR(200)
2016-04-07 12:52:53 CEST [3782-1331] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD fr_level1 VARCHAR(200)
2016-04-07 12:52:53 CEST [3782-1332] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Vial ADD fr_level2 VARCHAR(200)
2016-04-07 12:52:53 CEST [3782-1333] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.Study ADD AllowReqLocRepository BOOLEAN NOT NULL DEFAULT true
2016-04-07 12:52:53 CEST [3782-1334] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD AllowReqLocClinic BOOLEAN NOT NULL DEFAULT true
2016-04-07 12:52:53 CEST [3782-1335] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD AllowReqLocSAL BOOLEAN NOT NULL DEFAULT true
2016-04-07 12:52:53 CEST [3782-1336] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD AllowReqLocEndpoint BOOLEAN NOT NULL DEFAULT true
2016-04-07 12:52:54 CEST [3782-1337] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.specimenevent ALTER COLUMN externalid TYPE bigint
2016-04-07 12:52:54 CEST [3782-1338] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.study ADD ParticipantAliasDatasetName VARCHAR(200)
2016-04-07 12:52:54 CEST [3782-1339] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.study ADD ParticipantAliasSourceColumnName VARCHAR(200)
2016-04-07 12:52:54 CEST [3782-1340] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.study ADD ParticipantAliasColumnName VARCHAR(200)
2016-04-07 12:52:54 CEST [3782-1341] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.study DROP ParticipantAliasDatasetName
2016-04-07 12:52:54 CEST [3782-1342] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.study ADD ParticipantAliasDatasetId INT
2016-04-07 12:52:54 CEST [3782-1343] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.study RENAME ParticipantAliasSourceColumnName TO ParticipantAliasSourceProperty
2016-04-07 12:52:54 CEST [3782-1344] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.study RENAME ParticipantAliasColumnName TO ParticipantAliasProperty
2016-04-07 12:52:54 CEST [3782-1345] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Participant ADD LastIndexed TIMESTAMP NULL
2016-04-07 12:52:54 CEST [3782-1346] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.SpecimenDerivative ALTER COLUMN LdmsDerivativeCode TYPE VARCHAR(30)
2016-04-07 12:52:54 CEST [3782-1347] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.SpecimenEvent ADD COLUMN InputHash BYTEA NULL
2016-04-07 12:52:54 CEST [3782-1348] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	ALTER TABLE study.ParticipantVisit DROP CONSTRAINT UQ_ParticipantVisit_ParticipantSequenceNum
2016-04-07 12:52:54 CEST [3782-1349] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX study.IX_ParticipantVisit_Container
2016-04-07 12:52:54 CEST [3782-1350] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX study.IX_ParticipantVisit_ParticipantId
2016-04-07 12:52:54 CEST [3782-1351] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX study.IX_ParticipantVisit_ParticipantSequenceNum
2016-04-07 12:52:54 CEST [3782-1352] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX study.IX_ParticipantVisit_SequenceNum
2016-04-07 12:52:54 CEST [3782-1353] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.ParticipantVisit DROP CONSTRAINT PK_ParticipantVisit
2016-04-07 12:52:54 CEST [3782-1354] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.ParticipantVisit ADD CONSTRAINT PK_ParticipantVisit PRIMARY KEY
	  (Container, ParticipantId, SequenceNum)
2016-04-07 12:52:54 CEST [3782-1355] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.ParticipantVisit ADD CONSTRAINT UQ_ParticipantVisit_ParticipantSequenceNum UNIQUE
	  (ParticipantSequenceNum, Container)
2016-04-07 12:52:54 CEST [3782-1356] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_ParticipantVisit_ParticipantId ON study.ParticipantVisit (ParticipantId)
2016-04-07 12:52:54 CEST [3782-1357] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ParticipantVisit_SequenceNum ON study.ParticipantVisit (SequenceNum)
2016-04-07 12:52:54 CEST [3782-1358] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.specimenevent ADD COLUMN obsolete BOOLEAN NOT NULL DEFAULT false
2016-04-07 12:52:54 CEST [3782-1359] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE study.StudyDesignImmunogenTypes
	(
	  Name VARCHAR(200) NOT NULL,
	  Label VARCHAR(200) NOT NULL,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesignimmunogentypes PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:54 CEST [3782-1360] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignGenes
	(
	  Name VARCHAR(200) NOT NULL,
	  Label VARCHAR(200) NOT NULL,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesigngenes PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:54 CEST [3782-1361] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignRoutes
	(
	  Name VARCHAR(200) NOT NULL,
	  Label VARCHAR(200) NOT NULL,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesignroutes PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:54 CEST [3782-1362] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignSubTypes
	(
	  Name VARCHAR(200) NOT NULL,
	  Label VARCHAR(200) NOT NULL,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesignsubtypes PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:54 CEST [3782-1363] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignSampleTypes
	(
	  Name VARCHAR(200) NOT NULL,
	  PrimaryType VARCHAR(200) NOT NULL,
	  ShortSampleCode VARCHAR(2) NOT NULL,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesignsampletypes PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:54 CEST [3782-1364] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignUnits
	(
	  Name VARCHAR(3) NOT NULL, 
	  Label VARCHAR(200) NOT NULL,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesignunits PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:55 CEST [3782-1365] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignAssays
	(
	  Name VARCHAR(200) NOT NULL,
	  Label VARCHAR(200) NOT NULL,
	  Description TEXT,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesignassays PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:55 CEST [3782-1366] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.StudyDesignLabs
	(
	  Name VARCHAR(200) NOT NULL,
	  Label VARCHAR(200) NOT NULL,
	  Inactive BOOLEAN NOT NULL DEFAULT FALSE,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_studydesignlabs PRIMARY KEY (Container, Name)
	)
2016-04-07 12:52:55 CEST [3782-1367] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.ParticipantCategory ADD COLUMN OwnerId USERID NOT NULL DEFAULT -1
2016-04-07 12:52:55 CEST [3782-1368] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE study.ParticipantCategory SET OwnerId = CreatedBy WHERE NOT shared
2016-04-07 12:52:55 CEST [3782-1369] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.ParticipantCategory DROP CONSTRAINT uq_label_container
2016-04-07 12:52:55 CEST [3782-1370] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantCategory DROP COLUMN shared
2016-04-07 12:52:55 CEST [3782-1371] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.ParticipantCategory ADD CONSTRAINT uq_label_container_owner UNIQUE(Label, Container, OwnerId)
2016-04-07 12:52:55 CEST [3782-1372] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE study.Plate SET Type = 'NAb' WHERE Type IS NULL
2016-04-07 12:52:55 CEST [3782-1373] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:55 CEST [3782-1374] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:55.593', $2 = '0', $3 = '2016-04-07 12:52:55.593', $4 = '0', $5 = '2016-04-07 12:52:55.593', $6 = 'Study', $7 = 'study-0.00-13.30.sql'
2016-04-07 12:52:55 CEST [3782-1375] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE study.Visit ADD COLUMN Description TEXT
2016-04-07 12:52:55 CEST [3782-1376] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE SCHEMA specimenTables
2016-04-07 12:52:55 CEST [3782-1377] postgres@labkey LOG:  execute <unnamed>: DROP TABLE study.specimenevent
2016-04-07 12:52:55 CEST [3782-1378] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE study.vial
2016-04-07 12:52:55 CEST [3782-1379] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE study.specimen
2016-04-07 12:52:55 CEST [3782-1380] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE SCHEMA studydesign
2016-04-07 12:52:55 CEST [3782-1381] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.TreatmentVisitMap
	(
	  CohortId INT NOT NULL,
	  TreatmentId INT NOT NULL,
	  VisitId INT NOT NULL,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT PK_CohortId_TreatmentId_VisitId PRIMARY KEY (CohortId, TreatmentId, VisitId, Container)
	)
2016-04-07 12:52:55 CEST [3782-1382] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.Objective
	(
	  RowId SERIAL,
	  Label VARCHAR(200) NOT NULL,
	  Type VARCHAR(200),
	  Description TEXT,
	  DescriptionRendererType VARCHAR(50) NOT NULL DEFAULT 'TEXT_WITH_LINKS',
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT PK_Objective PRIMARY KEY (RowId)
	)
2016-04-07 12:52:55 CEST [3782-1383] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.VisitTag
	(
	  VisitRowId INT,
	
	  Tag VARCHAR(200) NOT NULL,
	  Description VARCHAR(200),
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT PK_VisitRowId_Tag_Container PRIMARY KEY (VisitRowId, Tag, Container)
	  
	)
2016-04-07 12:52:56 CEST [3782-1384] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Cohort ADD COLUMN SubjectCount INT
2016-04-07 12:52:56 CEST [3782-1385] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Cohort ADD COLUMN Description TEXT
2016-04-07 12:52:56 CEST [3782-1386] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Study ADD COLUMN Species VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1387] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD COLUMN EndDate TIMESTAMP
2016-04-07 12:52:56 CEST [3782-1388] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Study ADD COLUMN AssayPlan TEXT
2016-04-07 12:52:56 CEST [3782-1389] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE study.Visit ADD COLUMN SequenceNumTarget NUMERIC(15,4) NOT NULL DEFAULT 0
2016-04-07 12:52:56 CEST [3782-1390] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.Site ADD COLUMN Description VARCHAR(500)
2016-04-07 12:52:56 CEST [3782-1391] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ADD COLUMN StreetAddress VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1392] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ADD COLUMN City VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1393] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ADD COLUMN GoverningDistrict VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1394] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ADD COLUMN Country VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1395] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ADD COLUMN PostalArea VARCHAR(50)
2016-04-07 12:52:56 CEST [3782-1396] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE study.AssaySpecimen
	(
	  RowId SERIAL NOT NULL,
	
	  Container ENTITYID NOT NULL,
	  Created TIMESTAMP,
	  CreatedBy USERID,
	  Modified TIMESTAMP,
	  ModifiedBy USERID,
	
	  AssayName VARCHAR(200),
	  Description VARCHAR(200),
	  LocationId INTEGER,
	  Source VARCHAR(20),
	  TubeType VARCHAR(64),
	  PrimaryTypeId INTEGER,
	  DerivativeTypeId INTEGER,
	
	  CONSTRAINT PK_AssaySpecimen PRIMARY KEY (Container, RowId)
	)
2016-04-07 12:52:56 CEST [3782-1397] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE study.AssaySpecimenVisit
	(
	  RowId SERIAL NOT NULL,
	
	  Container ENTITYID NOT NULL,
	  Created TIMESTAMP,
	  CreatedBy USERID,
	  Modified TIMESTAMP,
	  ModifiedBy USERID,
	
	  VisitId INTEGER,
	  AssaySpecimenId INTEGER,
	
	  CONSTRAINT PK_AssaySpecimenVisit PRIMARY KEY (Container, RowId)
	)
2016-04-07 12:52:56 CEST [3782-1398] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_VisitAssaySpecimen ON study.AssaySpecimenVisit(Container, VisitId, AssaySpecimenId)
2016-04-07 12:52:56 CEST [3782-1399] postgres@labkey LOG:  execute <unnamed>: 
	CREATE UNIQUE INDEX UQ_AssaySpecimenVisit ON study.AssaySpecimenVisit(Container, AssaySpecimenId, VisitId)
2016-04-07 12:52:56 CEST [3782-1400] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE study.Study ADD COLUMN ShareDatasetDefinitions BOOLEAN NOT NULL DEFAULT false
2016-04-07 12:52:56 CEST [3782-1401] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.AssaySpecimen ADD COLUMN Lab VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1402] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.AssaySpecimen ADD COLUMN SampleType VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1403] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE study.StudyDesignUnits ALTER COLUMN Name TYPE VARCHAR(5)
2016-04-07 12:52:56 CEST [3782-1404] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.visit RENAME COLUMN SequenceNumTarget TO ProtocolDay
2016-04-07 12:52:56 CEST [3782-1405] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE study.visit SV SET ProtocolDay = Round((SV.SequenceNumMax + SV.SequenceNumMin)/2)
	FROM study.study SS
	WHERE SS.Container = SV.Container AND SS.TimePointType = 'DATE'
2016-04-07 12:52:56 CEST [3782-1406] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:56 CEST [3782-1407] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:56.913', $2 = '0', $3 = '2016-04-07 12:52:56.913', $4 = '0', $5 = '2016-04-07 12:52:56.913', $6 = 'Study', $7 = 'study-13.30-14.10.sql'
2016-04-07 12:52:56 CEST [3782-1408] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE study.StudyDesignAssays ADD Target VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1409] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD Methodology VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1410] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD Category VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1411] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD TargetFunction VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1412] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD LeadContributor VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1413] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD Contact VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1414] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD Summary TEXT
2016-04-07 12:52:56 CEST [3782-1415] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD Keywords TEXT
2016-04-07 12:52:56 CEST [3782-1416] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.StudyDesignLabs ADD PI VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1417] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignLabs ADD Description TEXT
2016-04-07 12:52:56 CEST [3782-1418] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignLabs ADD Summary TEXT
2016-04-07 12:52:56 CEST [3782-1419] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignLabs ADD Institution VARCHAR(200)
2016-04-07 12:52:56 CEST [3782-1420] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.visit ALTER COLUMN protocolday DROP NOT NULL
2016-04-07 12:52:56 CEST [3782-1421] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.visit ALTER COLUMN protocolday SET DEFAULT NULL
2016-04-07 12:52:56 CEST [3782-1422] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	DROP TABLE study.VisitTag
2016-04-07 12:52:56 CEST [3782-1423] postgres@labkey LOG:  execute <unnamed>: 
	CREATE TABLE study.VisitTag
	(
	  Name VARCHAR(200) NOT NULL,
	  Caption VARCHAR(200) NOT NULL,
	  Description TEXT,
	  SingleUse BOOLEAN NOT NULL DEFAULT false,
	
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT PK_Name_Container PRIMARY KEY (Name, Container)
	)
2016-04-07 12:52:57 CEST [3782-1424] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.StudySnapshot ADD ModifiedBy USERID
2016-04-07 12:52:57 CEST [3782-1425] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudySnapshot ADD Modified TIMESTAMP
2016-04-07 12:52:57 CEST [3782-1426] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.StudySnapshot SET ModifiedBy = CreatedBy
2016-04-07 12:52:57 CEST [3782-1427] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE study.StudySnapshot SET Modified = Created
2016-04-07 12:52:57 CEST [3782-1428] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE study.VisitTagMap
	(
	  RowId     SERIAL NOT NULL,
	  VisitTag  CHARACTER VARYING(200) NOT NULL,
	  VisitId   INTEGER NOT NULL,
	  CohortId  INTEGER,
	  Container ENTITYID NOT NULL,
	  CONSTRAINT PK_VisitTagMap PRIMARY KEY (Container, RowId),
	  CONSTRAINT VisitTagMap_Container_VisitTag_Key UNIQUE (Container, VisitTag, VisitId, CohortId)
	)
2016-04-07 12:52:57 CEST [3782-1429] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE UNIQUE INDEX VisitTagMap_container_tag_visit_idx ON study.VisitTagMap (Container, VisitTag, VisitId) WHERE CohortId IS NULL
2016-04-07 12:52:57 CEST [3782-1430] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.StudyDesignAssays ADD TargetType VARCHAR(200)
2016-04-07 12:52:57 CEST [3782-1431] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD TargetSubtype VARCHAR(200)
2016-04-07 12:52:57 CEST [3782-1432] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD Editorial TEXT
2016-04-07 12:52:57 CEST [3782-1433] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.StudyDesignAssays RENAME COLUMN Target TO Type
2016-04-07 12:52:57 CEST [3782-1434] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays RENAME COLUMN Methodology TO Platform
2016-04-07 12:52:57 CEST [3782-1435] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE study.StudyDesignAssays ADD AlternateName VARCHAR(200)
2016-04-07 12:52:57 CEST [3782-1436] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD Lab VARCHAR(200)
2016-04-07 12:52:57 CEST [3782-1437] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.StudyDesignAssays ADD LabPI VARCHAR(200)
2016-04-07 12:52:57 CEST [3782-1438] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:57 CEST [3782-1439] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:57.246', $2 = '0', $3 = '2016-04-07 12:52:57.246', $4 = '0', $5 = '2016-04-07 12:52:57.246', $6 = 'Study', $7 = 'study-14.10-14.20.sql'
2016-04-07 12:52:57 CEST [3782-1440] postgres@labkey LOG:  execute <unnamed>: DELETE FROM Study.ParticipantVisit WHERE ParticipantSequenceNum = 'NULL'
2016-04-07 12:52:57 CEST [3782-1441] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	UPDATE study.Site SET Repository = FALSE WHERE Repository IS NULL
2016-04-07 12:52:57 CEST [3782-1442] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN Repository SET NOT NULL
2016-04-07 12:52:57 CEST [3782-1443] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN Repository SET DEFAULT FALSE
2016-04-07 12:52:57 CEST [3782-1444] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.Site SET Clinic = FALSE WHERE Clinic IS NULL
2016-04-07 12:52:57 CEST [3782-1445] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN Clinic SET NOT NULL
2016-04-07 12:52:57 CEST [3782-1446] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN Clinic SET DEFAULT FALSE
2016-04-07 12:52:57 CEST [3782-1447] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.Site SET SAL = FALSE WHERE SAL IS NULL
2016-04-07 12:52:57 CEST [3782-1448] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN SAL SET NOT NULL
2016-04-07 12:52:57 CEST [3782-1449] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN SAL SET DEFAULT FALSE
2016-04-07 12:52:57 CEST [3782-1450] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE study.Site SET EndPoint = FALSE WHERE EndPoint IS NULL
2016-04-07 12:52:57 CEST [3782-1451] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN EndPoint SET NOT NULL
2016-04-07 12:52:57 CEST [3782-1452] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.Site ALTER COLUMN EndPoint SET DEFAULT FALSE
2016-04-07 12:52:57 CEST [3782-1453] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:57 CEST [3782-1454] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:57.271', $2 = '0', $3 = '2016-04-07 12:52:57.271', $4 = '0', $5 = '2016-04-07 12:52:57.271', $6 = 'Study', $7 = 'study-14.20-14.30.sql'
2016-04-07 12:52:57 CEST [3782-1455] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE study.dataset ADD COLUMN Tag VARCHAR(1000)
2016-04-07 12:52:57 CEST [3782-1456] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE study.Study ADD COLUMN ValidateQueriesAfterImport BOOLEAN NOT NULL DEFAULT FALSE
2016-04-07 12:52:57 CEST [3782-1457] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE study.Study SET ValidateQueriesAfterImport = TRUE WHERE AllowReload = TRUE
2016-04-07 12:52:57 CEST [3782-1458] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE study.Study ADD COLUMN ShareVisitDefinitions BOOLEAN NOT NULL DEFAULT false
2016-04-07 12:52:57 CEST [3782-1459] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE study.StudySnapshot ADD COLUMN Type VARCHAR(10)
2016-04-07 12:52:57 CEST [3782-1460] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:57 CEST [3782-1461] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:57.626', $2 = '0', $3 = '2016-04-07 12:52:57.626', $4 = '0', $5 = '2016-04-07 12:52:57.626', $6 = 'Study', $7 = 'study-14.30-15.10.sql'
2016-04-07 12:52:57 CEST [3782-1462] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE study.dataset ADD COLUMN dataSharing VARCHAR(20) NOT NULL DEFAULT 'NONE'
2016-04-07 12:52:57 CEST [3782-1463] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE study.participantvisit SET visitrowid=-1 WHERE visitrowid IS NULL
2016-04-07 12:52:57 CEST [3782-1464] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.participantvisit ALTER COLUMN visitrowid SET DEFAULT -1
2016-04-07 12:52:57 CEST [3782-1465] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE study.participantvisit ALTER COLUMN visitrowid SET NOT NULL
2016-04-07 12:52:57 CEST [3782-1466] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:52:57 CEST [3782-1467] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:52:57.807', $2 = '0', $3 = '2016-04-07 12:52:57.807', $4 = '0', $5 = '2016-04-07 12:52:57.807', $6 = 'Study', $7 = 'study-15.10-15.20.sql'
2016-04-07 12:52:57 CEST [3782-1468] postgres@labkey LOG:  execute <unnamed>: CREATE VIEW study.LockedSpecimens AS
	    SELECT map.SpecimenGlobalUniqueId AS GlobalUniqueId, map.Container FROM study.SampleRequest AS request
	        JOIN study.SampleRequestStatus AS status ON request.StatusId = status.RowId AND status.SpecimensLocked = True
	        JOIN study.SampleRequestSpecimen AS map ON request.rowid = map.SampleRequestId AND map.Orphaned = False
2016-04-07 12:52:57 CEST [3782-1469] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE VIEW study.ParticipantGroupCohortUnion AS
	    SELECT Container,
	        ParticipantId,
	        GroupId,
	        null AS CohortId,
	        GroupId || '-participantGroup' as UniqueId
	    FROM study.ParticipantGroupMap
	    UNION
	    SELECT Container,
	        ParticipantId,
	        null AS GroupId,
	        Currentcohortid AS CohortId,
	        CurrentCohortId || '-cohort' as UniqueId
	    FROM study.Participant
2016-04-07 12:52:57 CEST [3782-1470] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:52:57 CEST [3782-1471] postgres@labkey DETAIL:  parameters: $1 = 'Study', $2 = 'org.labkey.study.StudyModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:52:57 CEST [3782-1472] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA luminex
2016-04-07 12:52:57 CEST [3782-1473] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.Analyte
	(
	    RowId SERIAL NOT NULL,
	    LSID LSIDType NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    DataId INT NOT NULL,
	    FitProb REAL,
	    ResVar REAL,
	    RegressionType VARCHAR(100),
	    StdCurve VARCHAR(255),
	    MinStandardRecovery INT NOT NULL,
	    MaxStandardRecovery INT NOT NULL,
	
	    CONSTRAINT PK_Luminex_Analyte PRIMARY KEY (RowId),
	    CONSTRAINT FK_LuminexAnalyte_DataId FOREIGN KEY (DataId) REFERENCES exp.Data(RowId)
	)
2016-04-07 12:52:58 CEST [3782-1474] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_LuminexAnalyte_DataId ON luminex.Analyte (DataId)
2016-04-07 12:52:58 CEST [3782-1475] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.DataRow
	(
	    RowId SERIAL NOT NULL,
	    DataId INT NOT NULL,
	    AnalyteId INT NOT NULL,
	    Type VARCHAR(10),
	    Well VARCHAR(50),
	    Outlier INT,
	    Description VARCHAR(50),
	    FIString VARCHAR(20),
	    FI REAL,
	    FIOORIndicator VARCHAR(10),
	    FIBackgroundString VARCHAR(20),
	    FIBackground REAL,
	    FIBackgroundOORIndicator VARCHAR(10),
	    StdDevString VARCHAR(20),
	    StdDev REAL,
	    StdDevOORIndicator VARCHAR(10),
	    ObsConcString VARCHAR(20),
	    ObsConc REAL,
	    ObsConcOORIndicator VARCHAR(10),
	    ExpConc REAL,
	    ObsOverExp REAL,
	    ConcInRangeString VARCHAR(20),
	    ConcInRange REAL,
	    ConcInRangeOORIndicator VARCHAR(10),
	
	    Dilution REAL,
	    DataRowGroup VARCHAR(25),
	    Ratio VARCHAR(25),
	    SamplingErrors VARCHAR(25),
	    PTID VARCHAR(32),
	    VisitID FLOAT,
	    Date TIMESTAMP,
	    ExtraSpecimenInfo VARCHAR(50),
	    SpecimenID VARCHAR(50),
	    Container UniqueIdentifier NOT NULL,
	    ProtocolID INT NOT NULL,
	    BeadCount INT,
	
	    CONSTRAINT PK_Luminex_DataRow PRIMARY KEY (RowId),
	    CONSTRAINT FK_LuminexDataRow_DataId FOREIGN KEY (DataId) REFERENCES exp.Data(RowId),
	    CONSTRAINT FK_LuminexDataRow_AnalyteId FOREIGN KEY (AnalyteId) REFERENCES luminex.analyte(RowId),
	    CONSTRAINT FK_DataRow_Container FOREIGN KEY (Container) REFERENCES core.Containers (EntityID),
	    CONSTRAINT FK_DataRow_ProtocolID FOREIGN KEY (ProtocolID) REFERENCES exp.Protocol (RowID)
	)
2016-04-07 12:52:58 CEST [3782-1476] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_LuminexDataRow_DataId ON luminex.DataRow (DataId)
2016-04-07 12:52:58 CEST [3782-1477] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_LuminexDataRow_AnalyteId ON luminex.DataRow (AnalyteId)
2016-04-07 12:52:58 CEST [3782-1478] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_DataRow_Container_ProtocolID ON luminex.datarow(Container, ProtocolID)
2016-04-07 12:52:58 CEST [3782-1479] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.DataRow
	  ALTER COLUMN fistring TYPE VARCHAR(64),
	  ALTER COLUMN fibackgroundstring TYPE VARCHAR(64),
	  ALTER COLUMN stddevstring TYPE VARCHAR(64),
	  ALTER COLUMN obsconcstring TYPE VARCHAR(64),
	  ALTER COLUMN concinrangestring TYPE VARCHAR(64)
2016-04-07 12:52:58 CEST [3782-1480] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.datarow ADD COLUMN LSID LSIDtype
2016-04-07 12:52:58 CEST [3782-1481] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE luminex.datarow SET LSID = 'urn:lsid:' || COALESCE ((SELECT p.value
	FROM prop.properties p, prop.propertysets ps, core.containers c
	WHERE
		p.name = 'defaultLsidAuthority' AND
		ps.set = p.set AND
		ps.category = 'SiteConfig' AND
		ps.objectid = c.entityid AND
		c.name IS NULL AND c.parent IS NULL), 'localhost') || ':LuminexDataRow:' || RowId
2016-04-07 12:52:58 CEST [3782-1482] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.datarow ALTER COLUMN LSID SET NOT NULL
2016-04-07 12:52:58 CEST [3782-1483] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_LuminexDataRow_LSID ON luminex.Analyte (LSID)
2016-04-07 12:52:58 CEST [3782-1484] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.Titration
	(
	    RowId SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Standard BOOLEAN NOT NULL,
	    QCControl BOOLEAN NOT NULL,
	
	    CONSTRAINT PK_Luminex_Titration PRIMARY KEY (RowId),
	    CONSTRAINT FK_Luminex_Titration_RunId FOREIGN KEY (RunId) REFERENCES exp.ExperimentRun(RowId),
	    CONSTRAINT UQ_Titration UNIQUE (Name, RunId)
	)
2016-04-07 12:52:58 CEST [3782-1485] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.AnalyteTitration
	(
	    AnalyteId INT NOT NULL,
	    TitrationId INT NOT NULL,
	
	    CONSTRAINT PK_Luminex_AnalyteTitration PRIMARY KEY (AnalyteId, TitrationId)
	)
2016-04-07 12:52:58 CEST [3782-1486] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_LuminexTitration_RunId ON luminex.Titration (RunId)
2016-04-07 12:52:58 CEST [3782-1487] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO luminex.Titration
	    (RunId, Name, Standard, QCControl)
	    SELECT RowId, 'Standard', true, false FROM exp.experimentrun WHERE protocollsid LIKE '%:LuminexAssayProtocol.%'
2016-04-07 12:52:58 CEST [3782-1488] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO luminex.AnalyteTitration
	    (AnalyteId, TitrationId)
	    SELECT a.RowId, t.RowId
	        FROM luminex.analyte a, exp.data d, luminex.titration t, exp.protocolapplication pa
	        WHERE a.dataid = d.rowid AND t.runid = pa.runid AND d.sourceapplicationid = pa.rowid
2016-04-07 12:52:58 CEST [3782-1489] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.datarow ADD COLUMN TitrationId INT
2016-04-07 12:52:58 CEST [3782-1490] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.datarow ADD CONSTRAINT FK_Luminex_DataRow_TitrationId FOREIGN KEY (TitrationId) REFERENCES luminex.Titration(RowId)
2016-04-07 12:52:58 CEST [3782-1491] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_LuminexDataRow_TitrationId ON luminex.DataRow (TitrationId)
2016-04-07 12:52:58 CEST [3782-1492] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE luminex.datarow SET titrationid =
	    (SELECT t.rowid FROM luminex.titration t, exp.data d, exp.protocolapplication pa
	        WHERE pa.runid = t.runid AND d.sourceapplicationid = pa.rowid AND dataid = d.rowid)
	    WHERE expconc IS NOT NULL
2016-04-07 12:52:58 CEST [3782-1493] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE luminex.titration SET name = (SELECT COALESCE(MIN(description), 'Standard') FROM luminex.datarow WHERE luminex.titration.rowid = titrationid)
2016-04-07 12:52:58 CEST [3782-1494] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE luminex.Titration ADD COLUMN "unknown" BOOLEAN
2016-04-07 12:52:58 CEST [3782-1495] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE luminex.Titration SET "unknown" = FALSE
2016-04-07 12:52:58 CEST [3782-1496] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.Titration ALTER COLUMN "unknown" SET NOT NULL
2016-04-07 12:52:58 CEST [3782-1497] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO exp.Object (ObjectURI, Container)
		SELECT d.LSID, d.Container
		FROM exp.Data d, exp.ExperimentRun r, exp.ProtocolApplication pa
		WHERE d.SourceApplicationId = pa.RowId and r.RowId = pa.RunId AND r.ProtocolLSID LIKE '%:LuminexAssayProtocol.Folder-%' AND d.LSID NOT IN (SELECT ObjectURI FROM exp.Object)
2016-04-07 12:52:58 CEST [3782-1498] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ObjectProperty WHERE ObjectId IN (SELECT o.ObjectId FROM exp.Object o LEFT OUTER JOIN exp.ExperimentRun r ON o.ObjectURI = r.LSID WHERE o.ObjectURI like '%:LuminexAssayRun.Folder-%' AND r.LSID IS NULL)
2016-04-07 12:52:58 CEST [3782-1499] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE exp.ObjectProperty SET ObjectId =
		(SELECT MIN(dataO.ObjectId) FROM exp.Object dataO, exp.Object runO, exp.Data d, exp.ExperimentRun r, exp.ProtocolApplication pa
		WHERE dataO.ObjectURI = d.LSID AND runO.ObjectURI = r.LSID AND runO.ObjectId = exp.ObjectProperty.ObjectId AND d.SourceApplicationId = pa.RowId AND pa.RunId = r.RowId AND r.ProtocolLSID LIKE '%:LuminexAssayProtocol.Folder-%')
	WHERE PropertyId IN (SELECT pd.PropertyId FROM exp.PropertyDescriptor p, exp.DomainDescriptor d, exp.PropertyDomain pd WHERE p.PropertyId = pd.PropertyId AND d.domainuri LIKE '%:AssayDomain-ExcelRun.Folder-%' AND pd.DomainId = d.DomainId)
2016-04-07 12:52:58 CEST [3782-1500] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE luminex.DataRow ADD COLUMN WellRole VARCHAR(50)
2016-04-07 12:52:58 CEST [3782-1501] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE luminex.DataRow SET WellRole = 'Standard' WHERE Type ILIKE 'S%' OR Type ILIKE 'ES%'
2016-04-07 12:52:58 CEST [3782-1502] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.DataRow SET WellRole = 'Control' WHERE Type ILIKE 'C%'
2016-04-07 12:52:58 CEST [3782-1503] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.DataRow SET WellRole = 'Background' WHERE Type ILIKE 'B%'
2016-04-07 12:52:58 CEST [3782-1504] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.DataRow SET WellRole = 'Unknown' WHERE Type ILIKE 'U%'
2016-04-07 12:52:58 CEST [3782-1505] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.WellExclusion
	(
	    RowId SERIAL NOT NULL,
	    Description VARCHAR(50),
	    Dilution REAL,
	    DataId INT NOT NULL,
	    Comment VARCHAR(2000),
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	    CONSTRAINT PK_Luminex_WellExclusion PRIMARY KEY (RowId),
	    CONSTRAINT FK_LuminexWellExclusion_DataId FOREIGN KEY (DataId) REFERENCES exp.Data(RowId)
	)
2016-04-07 12:52:58 CEST [3782-1506] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_WellExclusion ON luminex.WellExclusion(Description, Dilution, DataId)
2016-04-07 12:52:58 CEST [3782-1507] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.WellExclusionAnalyte
	(
	    AnalyteId INT,
	    WellExclusionId INT NOT NULL,
	
	    CONSTRAINT FK_LuminexWellExclusionAnalyte_AnalyteId FOREIGN KEY (AnalyteId) REFERENCES luminex.Analyte(RowId),
	    CONSTRAINT FK_LuminexWellExclusionAnalyte_WellExclusionId FOREIGN KEY (WellExclusionId) REFERENCES luminex.WellExclusion(RowId)
	)
2016-04-07 12:52:58 CEST [3782-1508] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_WellExclusionAnalyte ON luminex.WellExclusionAnalyte(AnalyteId, WellExclusionId)
2016-04-07 12:52:58 CEST [3782-1509] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.RunExclusion
	(
	    RunId INT NOT NULL,
	    Comment VARCHAR(2000),
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	    CONSTRAINT PK_Luminex_RunExclusion PRIMARY KEY (RunId),
	    CONSTRAINT FK_LuminexRunExclusion_RunId FOREIGN KEY (RunId) REFERENCES exp.ExperimentRun(RowId)
	)
2016-04-07 12:52:58 CEST [3782-1510] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.RunExclusionAnalyte
	(
	    AnalyteId INT,
	    RunId INT NOT NULL,
	
	    CONSTRAINT FK_LuminexRunExclusionAnalyte_AnalyteId FOREIGN KEY (AnalyteId) REFERENCES luminex.Analyte(RowId),
	    CONSTRAINT FK_LuminexRunExclusionAnalyte_RunId FOREIGN KEY (RunId) REFERENCES luminex.RunExclusion(RunId)
	)
2016-04-07 12:52:58 CEST [3782-1511] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_RunExclusionAnalyte ON luminex.RunExclusionAnalyte(AnalyteId, RunId)
2016-04-07 12:52:58 CEST [3782-1512] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.WellExclusionAnalyte ALTER COLUMN AnalyteId SET NOT NULL
2016-04-07 12:52:58 CEST [3782-1513] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP INDEX luminex.UQ_WellExclusionAnalyte
2016-04-07 12:52:58 CEST [3782-1514] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.WellExclusionAnalyte ADD CONSTRAINT PK_LuminexWellExclusionAnalyte PRIMARY KEY (AnalyteId, WellExclusionId)
2016-04-07 12:52:58 CEST [3782-1515] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_LuminexWellExclusionAnalyte_WellExclusionID ON luminex.WellExclusionAnalyte(WellExclusionId)
2016-04-07 12:52:59 CEST [3782-1516] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.RunExclusionAnalyte ALTER COLUMN AnalyteId SET NOT NULL
2016-04-07 12:52:59 CEST [3782-1517] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP INDEX luminex.UQ_RunExclusionAnalyte
2016-04-07 12:52:59 CEST [3782-1518] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.RunExclusionAnalyte ADD CONSTRAINT PK_LuminexRunExclusionAnalyte PRIMARY KEY (AnalyteId, RunId)
2016-04-07 12:52:59 CEST [3782-1519] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_LuminexRunExclusionAnalyte_RunID ON luminex.RunExclusionAnalyte(RunId)
2016-04-07 12:52:59 CEST [3782-1520] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE luminex.CurveFit
	(
		RowId serial NOT NULL,
		TitrationId INT NOT NULL,
		AnalyteId INT NOT NULL,
		CurveType VARCHAR(20) NOT NULL,
		MaxFI REAL NOT NULL,
		EC50 REAL NOT NULL,
		AUC REAL NOT NULL,
	
		CONSTRAINT PK_luminex_CurveFit PRIMARY KEY (rowid),
		CONSTRAINT FK_CurveFit_AnalyteIdTitrationId FOREIGN KEY (AnalyteId, TitrationId) REFERENCES luminex.AnalyteTitration (AnalyteId, TitrationId),
		CONSTRAINT UQ_CurveFit UNIQUE (AnalyteId, TitrationId, CurveType)
	)
2016-04-07 12:52:59 CEST [3782-1521] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.CurveFit ALTER COLUMN CurveType TYPE VARCHAR(30)
2016-04-07 12:52:59 CEST [3782-1522] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.CurveFit ALTER COLUMN MaxFI DROP NOT NULL
2016-04-07 12:52:59 CEST [3782-1523] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.CurveFit ALTER COLUMN AUC DROP NOT NULL
2016-04-07 12:52:59 CEST [3782-1524] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.CurveFit ALTER COLUMN EC50 DROP NOT NULL
2016-04-07 12:52:59 CEST [3782-1525] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE luminex.CurveFit ADD COLUMN MinAsymptote REAL
2016-04-07 12:52:59 CEST [3782-1526] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.CurveFit ADD COLUMN MaxAsymptote REAL
2016-04-07 12:52:59 CEST [3782-1527] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.CurveFit ADD COLUMN Asymmetry REAL
2016-04-07 12:52:59 CEST [3782-1528] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.CurveFit ADD COLUMN Inflection REAL
2016-04-07 12:52:59 CEST [3782-1529] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.CurveFit ADD COLUMN Slope REAL
2016-04-07 12:52:59 CEST [3782-1530] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.CurveFit DROP COLUMN MaxFI
2016-04-07 12:52:59 CEST [3782-1531] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.AnalyteTitration ADD COLUMN MaxFI REAL
2016-04-07 12:52:59 CEST [3782-1532] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.GuideSet
	(
		RowId SERIAL NOT NULL,
	    ProtocolId INT NOT NULL,
	    AnalyteName VARCHAR(50) NOT NULL,
	    CurrentGuideSet BOOLEAN NOT NULL,
	    Conjugate VARCHAR(50),
	    Isotype VARCHAR(50),
	    MaxFIAverage REAL,
	    MaxFIStdDev REAL,
	
		CONSTRAINT PK_luminex_GuideSet PRIMARY KEY (RowId),
		CONSTRAINT FK_luminex_GuideSet_ProtocolId FOREIGN KEY (ProtocolId) REFERENCES exp.Protocol(RowId)
	)
2016-04-07 12:52:59 CEST [3782-1533] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_GuideSet_ProtocolId ON luminex.GuideSet(ProtocolId)
2016-04-07 12:52:59 CEST [3782-1534] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.GuideSetCurveFit
	(
		GuideSetId INT NOT NULL,
		CurveType VARCHAR(30) NOT NULL,
	    AUCAverage REAL,
	    AUCStdDev REAL,
	    EC50Average REAL,
	    EC50StdDev REAL,
	
		CONSTRAINT PK_luminex_GuideSetCurveFit PRIMARY KEY (GuideSetId, CurveType)
	)
2016-04-07 12:52:59 CEST [3782-1535] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.Analyte ADD COLUMN GuideSetId INT
2016-04-07 12:52:59 CEST [3782-1536] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.Analyte ADD CONSTRAINT FK_Analyte_GuideSetId FOREIGN KEY (GuideSetId) REFERENCES luminex.GuideSet(RowId)
2016-04-07 12:52:59 CEST [3782-1537] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_Analyte_GuideSetId ON luminex.Analyte(GuideSetId)
2016-04-07 12:52:59 CEST [3782-1538] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.Analyte ADD COLUMN IncludeInGuideSetCalculation BOOLEAN
2016-04-07 12:52:59 CEST [3782-1539] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE luminex.analyte SET IncludeInGuideSetCalculation = FALSE
2016-04-07 12:52:59 CEST [3782-1540] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.analyte ALTER COLUMN IncludeInGuideSetCalculation SET NOT NULL
2016-04-07 12:52:59 CEST [3782-1541] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP TABLE luminex.GuideSetCurveFit
2016-04-07 12:52:59 CEST [3782-1542] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.GuideSet ADD COLUMN TitrationName VARCHAR(255)
2016-04-07 12:52:59 CEST [3782-1543] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN Comment TEXT
2016-04-07 12:52:59 CEST [3782-1544] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN CreatedBy USERID
2016-04-07 12:52:59 CEST [3782-1545] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN Created TIMESTAMP
2016-04-07 12:52:59 CEST [3782-1546] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN ModifiedBy USERID
2016-04-07 12:52:59 CEST [3782-1547] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN Modified TIMESTAMP
2016-04-07 12:52:59 CEST [3782-1548] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.AnalyteTitration ADD COLUMN GuideSetId INT
2016-04-07 12:52:59 CEST [3782-1549] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.AnalyteTitration ADD CONSTRAINT FK_AnalytTitration_GuideSetId FOREIGN KEY (GuideSetId) REFERENCES luminex.GuideSet(RowId)
2016-04-07 12:52:59 CEST [3782-1550] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_AnalyteTitration_GuideSetId ON luminex.AnalyteTitration(GuideSetId)
2016-04-07 12:52:59 CEST [3782-1551] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.AnalyteTitration ADD COLUMN IncludeInGuideSetCalculation BOOLEAN
2016-04-07 12:52:59 CEST [3782-1552] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.AnalyteTitration SET IncludeInGuideSetCalculation = FALSE
2016-04-07 12:52:59 CEST [3782-1553] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.AnalyteTitration ALTER COLUMN IncludeInGuideSetCalculation SET NOT NULL
2016-04-07 12:52:59 CEST [3782-1554] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.Analyte DROP COLUMN GuideSetId
2016-04-07 12:52:59 CEST [3782-1555] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.Analyte DROP COLUMN IncludeInGuideSetCalculation
2016-04-07 12:52:59 CEST [3782-1556] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.GuideSet DROP COLUMN MaxFIAverage
2016-04-07 12:52:59 CEST [3782-1557] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet DROP COLUMN MaxFIStdDev
2016-04-07 12:52:59 CEST [3782-1558] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.DataRow ADD COLUMN Summary Boolean
2016-04-07 12:52:59 CEST [3782-1559] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.DataRow ADD COLUMN CV REAL
2016-04-07 12:52:59 CEST [3782-1560] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE luminex.DataRow SET Summary = TRUE WHERE POSITION(',' IN Well) > 0
2016-04-07 12:52:59 CEST [3782-1561] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.DataRow SET Summary = FALSE WHERE Summary IS NULL
2016-04-07 12:52:59 CEST [3782-1562] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.DataRow ALTER COLUMN Summary SET NOT NULL
2016-04-07 12:52:59 CEST [3782-1563] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE luminex.DataRow dr1 SET StdDev =
		(SELECT STDDEV(FI) FROM luminex.DataRow dr2 WHERE
			dr2.description = dr1.description AND
			((dr2.dilution IS NULL AND dr1.dilution IS NULL) OR dr1.dilution = dr2.dilution) AND
			dr1.dataid = dr2.dataid AND
			dr1.analyteid = dr2.analyteid AND
			((dr2.expConc IS NULL AND dr1.expConc IS NULL) OR dr1.expConc = dr2.expConc))
		WHERE StdDev IS NULL
2016-04-07 12:52:59 CEST [3782-1564] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE luminex.DataRow dr1 SET CV =
		StdDev / (SELECT AVG(FI) FROM luminex.DataRow dr2 WHERE
			dr2.description = dr1.description AND
			((dr2.dilution IS NULL AND dr1.dilution IS NULL) OR dr1.dilution = dr2.dilution) AND
			dr1.dataid = dr2.dataid AND
			dr1.analyteid = dr2.analyteid AND
			((dr2.expConc IS NULL AND dr1.expConc IS NULL) OR dr1.expConc = dr2.expConc))
		WHERE StdDev IS NOT NULL AND
		(SELECT AVG(FI) FROM luminex.DataRow dr2 WHERE
			dr2.description = dr1.description AND
			((dr2.dilution IS NULL AND dr1.dilution IS NULL) OR dr1.dilution = dr2.dilution) AND
			dr1.dataid = dr2.dataid AND
			dr1.analyteid = dr2.analyteid AND
			((dr2.expConc IS NULL AND dr1.expConc IS NULL) OR dr1.expConc = dr2.expConc)) != 0
2016-04-07 12:52:59 CEST [3782-1565] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.WellExclusion ADD COLUMN "type" VARCHAR(10)
2016-04-07 12:52:59 CEST [3782-1566] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE luminex.wellexclusion we SET "type" =
		(SELECT types."type" FROM (SELECT dr.dataid, dr.dilution, dr.description, min(dr."type") AS "type"
				FROM luminex.datarow AS dr
				GROUP BY dr.dataid, dr.dilution, dr.description) AS types
			WHERE we.dataid = types.dataid
			AND ((we.dilution IS NULL AND types.dilution IS NULL) OR we.dilution = types.dilution)
			AND ((we.description IS NULL AND types.description IS NULL) OR we.description = types.description))
		WHERE "type" IS NULL
2016-04-07 12:52:59 CEST [3782-1567] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP INDEX luminex.UQ_WellExclusion
2016-04-07 12:52:59 CEST [3782-1568] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_WellExclusion ON luminex.WellExclusion(Description, Type, DataId)
2016-04-07 12:53:00 CEST [3782-1569] postgres@labkey LOG:  execute <unnamed>: 	
	
	ALTER TABLE luminex.wellexclusion DROP COLUMN dilution
2016-04-07 12:53:00 CEST [3782-1570] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP INDEX luminex.ix_luminexdatarow_lsid
2016-04-07 12:53:00 CEST [3782-1571] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE UNIQUE INDEX UQ_Analyte_LSID ON luminex.Analyte(LSID)
2016-04-07 12:53:00 CEST [3782-1572] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE INDEX IX_LuminexDataRow_LSID ON luminex.DataRow (LSID)
2016-04-07 12:53:00 CEST [3782-1573] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.Analyte ADD COLUMN PositivityThreshold INT
2016-04-07 12:53:00 CEST [3782-1574] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.CurveFit ADD COLUMN FailureFlag BOOLEAN
2016-04-07 12:53:00 CEST [3782-1575] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE luminex.SinglePointControl
	(
	    RowId SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_Luminex_SinglePointControl PRIMARY KEY (RowId),
	    CONSTRAINT FK_Luminex_SinglePointControl_RunId FOREIGN KEY (RunId) REFERENCES exp.ExperimentRun(RowId),
	    CONSTRAINT UQ_SinglePointControl UNIQUE (Name, RunId)
	)
2016-04-07 12:53:00 CEST [3782-1576] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.GuideSet RENAME COLUMN TitrationName TO ControlName
2016-04-07 12:53:00 CEST [3782-1577] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.GuideSet ADD COLUMN Titration BOOLEAN
2016-04-07 12:53:00 CEST [3782-1578] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE luminex.GuideSet SET Titration = TRUE
2016-04-07 12:53:00 CEST [3782-1579] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.GuideSet ALTER COLUMN Titration SET NOT NULL
2016-04-07 12:53:00 CEST [3782-1580] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE luminex.AnalyteSinglePointControl
	(
	    SinglePointControlId INT NOT NULL,
	    AnalyteId INT NOT NULL,
	    GuideSetId INT,
	    IncludeInGuideSetCalculation BOOLEAN NOT NULL,
	
	    CONSTRAINT PK_AnalyteSinglePointControl PRIMARY KEY (AnalyteId, SinglePointControlId),
	    CONSTRAINT FK_AnalyteSinglePointControl_AnalyteId FOREIGN KEY (AnalyteId) REFERENCES luminex.Analyte (RowId),
	    CONSTRAINT FK_AnalyteSinglePointControl_SinglePointControlId FOREIGN KEY (SinglePointControlId) REFERENCES luminex.SinglePointControl (RowId),
	    CONSTRAINT FK_AnalyteSinglePointControl_GuideSetId FOREIGN KEY (GuideSetId) REFERENCES luminex.GuideSet (RowId)
	)
2016-04-07 12:53:00 CEST [3782-1581] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_AnalyteSinglePointControl_GuideSetId ON luminex.AnalyteSinglePointControl(GuideSetId)
2016-04-07 12:53:00 CEST [3782-1582] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_AnalyteSinglePointControl_SinglePointControlId ON luminex.AnalyteSinglePointControl(SinglePointControlId)
2016-04-07 12:53:00 CEST [3782-1583] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.GuideSet DROP COLUMN Titration
2016-04-07 12:53:00 CEST [3782-1584] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:00 CEST [3782-1585] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:00.445', $2 = '0', $3 = '2016-04-07 12:53:00.445', $4 = '0', $5 = '2016-04-07 12:53:00.445', $6 = 'Luminex', $7 = 'luminex-0.00-13.30.sql'
2016-04-07 12:53:00 CEST [3782-1586] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE luminex.GuideSet ADD COLUMN ValueBased BOOLEAN
2016-04-07 12:53:00 CEST [3782-1587] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.GuideSet SET ValueBased = FALSE
2016-04-07 12:53:00 CEST [3782-1588] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN ValueBased SET NOT NULL
2016-04-07 12:53:00 CEST [3782-1589] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE luminex.GuideSet ADD COLUMN EC504PLAverage REAL
2016-04-07 12:53:00 CEST [3782-1590] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN EC504PLStdDev REAL
2016-04-07 12:53:00 CEST [3782-1591] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN EC505PLAverage REAL
2016-04-07 12:53:00 CEST [3782-1592] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN EC505PLStdDev REAL
2016-04-07 12:53:00 CEST [3782-1593] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN AUCAverage REAL
2016-04-07 12:53:00 CEST [3782-1594] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN AUCStdDev REAL
2016-04-07 12:53:00 CEST [3782-1595] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN MaxFIAverage REAL
2016-04-07 12:53:00 CEST [3782-1596] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD COLUMN MaxFIStdDev REAL
2016-04-07 12:53:00 CEST [3782-1597] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC504PLAverage TYPE DOUBLE PRECISION
2016-04-07 12:53:00 CEST [3782-1598] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC504PLStdDev TYPE DOUBLE PRECISION
2016-04-07 12:53:00 CEST [3782-1599] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC505PLAverage TYPE DOUBLE PRECISION
2016-04-07 12:53:00 CEST [3782-1600] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC505PLStdDev TYPE DOUBLE PRECISION
2016-04-07 12:53:01 CEST [3782-1601] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN AUCAverage TYPE DOUBLE PRECISION
2016-04-07 12:53:01 CEST [3782-1602] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN AUCStdDev TYPE DOUBLE PRECISION
2016-04-07 12:53:01 CEST [3782-1603] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN MaxFIAverage TYPE DOUBLE PRECISION
2016-04-07 12:53:01 CEST [3782-1604] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN MaxFIStdDev TYPE DOUBLE PRECISION
2016-04-07 12:53:01 CEST [3782-1605] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	DELETE FROM exp.objectproperty
	WHERE
	  PropertyId IN (
	    SELECT
	      PropertyId
	    FROM
	      exp.propertydescriptor
	    WHERE
	      PropertyURI LIKE '%:AssayDomain-ExcelRun.%' AND
	      RangeURI = 'http://www.w3.org/2001/XMLSchema#string'
	  ) AND
	  StringValue = '' AND
	  MVIndicator IS NULL
2016-04-07 12:53:01 CEST [3782-1606] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:01 CEST [3782-1607] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:01.94', $2 = '0', $3 = '2016-04-07 12:53:01.94', $4 = '0', $5 = '2016-04-07 12:53:01.94', $6 = 'Luminex', $7 = 'luminex-14.10-14.20.sql'
2016-04-07 12:53:01 CEST [3782-1608] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE luminex.Titration ADD COLUMN OtherControl BOOLEAN
2016-04-07 12:53:01 CEST [3782-1609] postgres@labkey LOG:  execute <unnamed>: 
	 UPDATE luminex.Titration SET OtherControl=FALSE
2016-04-07 12:53:01 CEST [3782-1610] postgres@labkey LOG:  execute <unnamed>: 
	 ALTER TABLE luminex.Titration ALTER COLUMN OtherControl SET NOT NULL
2016-04-07 12:53:01 CEST [3782-1611] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.Analyte ADD COLUMN NegativeBead VARCHAR(50)
2016-04-07 12:53:01 CEST [3782-1612] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE luminex.analyte SET NegativeBead = (
		SELECT x.Name FROM luminex.analyte AS a
		JOIN (SELECT DISTINCT DataId, Name FROM luminex.analyte WHERE Name LIKE 'Blank %') AS x ON a.DataId = x.DataId
		WHERE a.DataId IN (SELECT DataId FROM luminex.analyte WHERE Name LIKE 'Blank %') AND a.Name NOT LIKE 'Blank %'
		AND luminex.analyte.RowId = a.RowId)
	WHERE NegativeBead IS NULL
2016-04-07 12:53:01 CEST [3782-1613] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.datarow ADD COLUMN SinglePointControlId INT
2016-04-07 12:53:01 CEST [3782-1614] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.datarow ADD CONSTRAINT FK_Luminex_DataRow_SinglePointControlId FOREIGN KEY (SinglePointControlId) REFERENCES luminex.SinglePointControl(RowId)
2016-04-07 12:53:01 CEST [3782-1615] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_LuminexDataRow_SinglePointControlId ON luminex.DataRow (SinglePointControlId)
2016-04-07 12:53:02 CEST [3782-1616] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE luminex.datarow SET SinglePointControlId =
	  (SELECT s.rowid FROM luminex.singlepointcontrol s, exp.data d, exp.protocolapplication pa
	    WHERE pa.runid = s.runid AND d.sourceapplicationid = pa.rowid AND dataid = d.rowid AND description = s.name)
	WHERE SinglePointControlId IS NULL
2016-04-07 12:53:02 CEST [3782-1617] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:02 CEST [3782-1618] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:02.082', $2 = '0', $3 = '2016-04-07 12:53:02.082', $4 = '0', $5 = '2016-04-07 12:53:02.082', $6 = 'Luminex', $7 = 'luminex-14.20-14.30.sql'
2016-04-07 12:53:02 CEST [3782-1619] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE luminex.GuideSet ADD EC504PLEnabled BOOLEAN
2016-04-07 12:53:02 CEST [3782-1620] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD EC505PLEnabled BOOLEAN
2016-04-07 12:53:02 CEST [3782-1621] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD AUCEnabled BOOLEAN
2016-04-07 12:53:02 CEST [3782-1622] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ADD MaxFIEnabled BOOLEAN
2016-04-07 12:53:02 CEST [3782-1623] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.GuideSet SET EC504PLEnabled=TRUE, EC505PLEnabled=TRUE, AUCEnabled=TRUE, MaxFIEnabled=TRUE
2016-04-07 12:53:02 CEST [3782-1624] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC504PLEnabled SET NOT NULL
2016-04-07 12:53:02 CEST [3782-1625] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC505PLEnabled SET NOT NULL
2016-04-07 12:53:02 CEST [3782-1626] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN AUCEnabled SET NOT NULL
2016-04-07 12:53:02 CEST [3782-1627] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN MaxFIEnabled SET NOT NULL
2016-04-07 12:53:02 CEST [3782-1628] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC504PLEnabled SET DEFAULT TRUE
2016-04-07 12:53:02 CEST [3782-1629] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN EC505PLEnabled SET DEFAULT TRUE
2016-04-07 12:53:02 CEST [3782-1630] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN AUCEnabled SET DEFAULT TRUE
2016-04-07 12:53:02 CEST [3782-1631] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN MaxFIEnabled SET DEFAULT TRUE
2016-04-07 12:53:02 CEST [3782-1632] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE INDEX IX_LuminexSinglePointControl_RunId ON luminex.SinglePointControl (RunId)
2016-04-07 12:53:02 CEST [3782-1633] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_AnalyteSinglePointControl_AnalyteId ON luminex.AnalyteSinglePointControl(AnalyteId)
2016-04-07 12:53:02 CEST [3782-1634] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE luminex.GuideSet ADD IsTitration BOOLEAN
2016-04-07 12:53:02 CEST [3782-1635] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE luminex.GuideSet SET IsTitration =
	  (
	  
	    CASE WHEN RowId IN (SELECT DISTINCT GuideSetId FROM luminex.AnalyteSinglePointControl WHERE GuideSetId IS NOT NULL) THEN FALSE ELSE TRUE END
	  )
	
2016-04-07 12:53:02 CEST [3782-1636] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE luminex.GuideSet ALTER COLUMN IsTitration SET NOT NULL
2016-04-07 12:53:02 CEST [3782-1637] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:02 CEST [3782-1638] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:02.328', $2 = '0', $3 = '2016-04-07 12:53:02.328', $4 = '0', $5 = '2016-04-07 12:53:02.328', $6 = 'Luminex', $7 = 'luminex-14.30-15.10.sql'
2016-04-07 12:53:02 CEST [3782-1639] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:53:02 CEST [3782-1640] postgres@labkey DETAIL:  parameters: $1 = 'Luminex', $2 = 'org.labkey.luminex.LuminexModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:53:02 CEST [3782-1641] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:53:02 CEST [3782-1642] postgres@labkey DETAIL:  parameters: $1 = 'Visualization', $2 = 'org.labkey.visualization.VisualizationModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:53:02 CEST [3782-1643] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.propertydescriptor SET showninupdateview = false WHERE propertyid IN
	(
		SELECT pd.propertyid
		FROM exp.propertydescriptor pd, exp.propertydomain propdomain, exp.domaindescriptor dd
		WHERE
			(LOWER(pd.name) LIKE 'cutoff%' OR lower(pd.name) LIKE 'curvefitmethod' ) AND
			pd.propertyid = propdomain.propertyid AND
			dd.domainid = propdomain.domainid AND
			domainuri IN
			(
				
				SELECT dd.domainuri
				FROM exp.object o, exp.objectproperty op, exp.protocol p, exp.domaindescriptor dd
				WHERE o.objecturi = p.lsid AND op.objectid = o.objectid AND op.stringvalue = dd.domainuri AND p.lsid LIKE '%:NabAssayProtocol.%' AND dd.domainuri LIKE '%:AssayDomain-Run.%'
			)
	)
2016-04-07 12:53:02 CEST [3782-1644] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE SCHEMA nab
2016-04-07 12:53:02 CEST [3782-1645] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE nab.cutoffvalue
	(
	    rowid SERIAL NOT NULL,
	    nabspecimenid INT NOT NULL,
	    cutoff REAL,
	    point REAL,
	    pointoorindicator VARCHAR(20),
	    
	    ic_poly REAL,
	    ic_polyoorindicator VARCHAR(20),
	    ic_4pl REAL,
	    ic_4ploorindicator VARCHAR(20),
	    ic_5pl REAL,
	    ic_5ploorindicator VARCHAR(20),
	
	    CONSTRAINT pk_nab_cutoffvalue PRIMARY KEY (rowid)
	)
2016-04-07 12:53:02 CEST [3782-1646] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE nab.nabspecimen
	(
	    rowid SERIAL NOT NULL,
	    dataid INT,
	    runid INT NOT NULL,
	    specimenlsid lsidtype NOT NULL,
	    FitError REAL,
	    WellgroupName VARCHAR(100),
	    
	    auc_poly REAL,
	    positiveauc_poly REAL,
	    auc_4pl REAL,
	    positiveauc_4pl REAL,
	    auc_5pl REAL,
	    positiveauc_5pl REAL,
	
	    
	    objecturi VARCHAR(300),
	    objectid INT NOT NULL,
	    protocolid INT,
	
	    CONSTRAINT pk_nab_specimen PRIMARY KEY (rowid),
	    CONSTRAINT fk_nabspecimen_experimentrun FOREIGN KEY (runid)
	      REFERENCES exp.experimentrun (rowid) MATCH SIMPLE
	      ON UPDATE NO ACTION ON DELETE NO ACTION,
	    CONSTRAINT fk_nabspecimen_specimenlsid FOREIGN KEY (specimenlsid)
	      REFERENCES exp.material (lsid)
	      ON UPDATE NO ACTION ON DELETE NO ACTION
	)
2016-04-07 12:53:02 CEST [3782-1647] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX idx_nabspecimen_runid ON nab.nabspecimen(runid)
2016-04-07 12:53:02 CEST [3782-1648] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX idx_nabspecimen_objectid ON nab.nabspecimen(objectid)
2016-04-07 12:53:02 CEST [3782-1649] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX idx_nabspecimen_dataid ON nab.nabspecimen(dataid)
2016-04-07 12:53:02 CEST [3782-1650] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE nab.cutoffvalue ADD CONSTRAINT fk_cutoffvalue_nabspecimen FOREIGN KEY (nabspecimenid)
	        REFERENCES nab.nabspecimen (rowid) MATCH SIMPLE
	        ON UPDATE NO ACTION ON DELETE NO ACTION
2016-04-07 12:53:02 CEST [3782-1651] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.nabspecimen ADD CONSTRAINT fk_nabspecimen_protocolid FOREIGN KEY (protocolid)
	        REFERENCES exp.protocol (rowid) MATCH SIMPLE
	        ON UPDATE NO ACTION ON DELETE NO ACTION
2016-04-07 12:53:02 CEST [3782-1652] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	delete from nab.cutoffvalue
2016-04-07 12:53:02 CEST [3782-1653] postgres@labkey LOG:  execute <unnamed>: 
	delete from nab.nabspecimen
2016-04-07 12:53:02 CEST [3782-1654] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO nab.NAbSpecimen (DataId, RunID, ProtocolID, SpecimenLSID, FitError, WellGroupName, AUC_Poly, AUC_5PL, AUC_4PL, PositiveAUC_Poly, PositiveAUC_5PL, PositiveAUC_4PL, ObjectURI, ObjectId)
	SELECT * FROM (
		SELECT
			(SELECT RowId FROM exp.Data d, exp.Object parent WHERE d.LSID = parent.ObjectURI and parent.ObjectId = o.OwnerObjectId) AS DataId,
			(SELECT RunId FROM exp.Data d, exp.Object parent WHERE d.LSID = parent.ObjectURI and parent.ObjectId = o.OwnerObjectId) AS RunId,
			(SELECT p.RowId FROM exp.ExperimentRun er, exp.Protocol p, exp.Data d, exp.Object parent WHERE d.LSID = parent.ObjectURI and parent.ObjectId = o.OwnerObjectId AND er.RowId = d.RunId AND p.LSID = er.ProtocolLSID) AS ProtocolId,
	
			(SELECT StringValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:SpecimenLsid' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS SpecimenLSID,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:Fit+Error' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS FitError,
			(SELECT StringValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:WellgroupName' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS WellGroupName,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:AUC_poly' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS AUC_Poly,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:AUC_5pl' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS AUC_5PL,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:AUC_4pl' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS AUC_4PL,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:PositiveAUC_poly' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS PositiveAUC_Poly,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:PositiveAUC_5pl' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS PositiveAUC_5PL,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:PositiveAUC_4pl' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS PositiveAUC_4PL,
			ObjectURI,
			ObjectId
		FROM exp.Object o WHERE ObjectURI LIKE '%AssayRunNabDataRow%') x
		WHERE specimenlsid IS NOT NULL AND DataId IS NOT NULL AND RunID IS NOT NULL AND ProtocolID IS NOT NULL
2016-04-07 12:53:02 CEST [3782-1655] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO nab.CutoffValue (NAbSpecimenId, Cutoff, Point)
		SELECT s.RowId, CAST (substr(pd.PropertyURI, POSITION(':Point+IC' IN pd.PropertyURI) + 9, 2) AS INT), op.FloatValue
		FROM nab.NAbSpecimen s, exp.PropertyDescriptor pd, exp.ObjectProperty op, exp.Object o
		WHERE pd.PropertyId = op.PropertyId AND op.ObjectId = o.ObjectId AND o.ObjectURI = s.ObjectURI AND pd.PropertyURI LIKE '%:NabProperty.%:Point+IC%' AND pd.PropertyURI NOT LIKE '%OORIndicator'
2016-04-07 12:53:02 CEST [3782-1656] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE nab.CutoffValue SET
		PointOORIndicator = (SELECT op.StringValue FROM
			exp.ObjectProperty op,
			exp.PropertyDescriptor pd,
			nab.NAbSpecimen ns
			WHERE op.PropertyId = pd.PropertyId AND ns.ObjectId = op.ObjectId AND ns.RowId = NAbSpecimenID AND pd.PropertyURI LIKE '%:Point+IC' || CAST(Cutoff AS INT) || 'OORIndicator'),
		IC_4PL = (SELECT op.FloatValue FROM
			exp.ObjectProperty op,
			exp.PropertyDescriptor pd,
			nab.NAbSpecimen ns
			WHERE op.PropertyId = pd.PropertyId AND ns.ObjectId = op.ObjectId AND ns.RowId = NAbSpecimenID AND pd.PropertyURI LIKE '%:Curve+IC' || CAST(Cutoff AS INT) || '_4pl'),
		IC_4PLOORIndicator = (SELECT op.StringValue FROM
			exp.ObjectProperty op,
			exp.PropertyDescriptor pd,
			nab.NAbSpecimen ns
			WHERE op.PropertyId = pd.PropertyId AND ns.ObjectId = op.ObjectId AND ns.RowId = NAbSpecimenID AND pd.PropertyURI LIKE '%:Curve+IC' || CAST(Cutoff AS INT) || '_4plOORIndicator'),
		IC_5PL = (SELECT op.FloatValue FROM
			exp.ObjectProperty op,
			exp.PropertyDescriptor pd,
			nab.NAbSpecimen ns
			WHERE op.PropertyId = pd.PropertyId AND ns.ObjectId = op.ObjectId AND ns.RowId = NAbSpecimenID AND pd.PropertyURI LIKE '%:Curve+IC' || CAST(Cutoff AS INT) || '_5pl'),
		IC_5PLOORIndicator = (SELECT op.StringValue FROM
			exp.ObjectProperty op,
			exp.PropertyDescriptor pd,
			nab.NAbSpecimen ns
			WHERE op.PropertyId = pd.PropertyId AND ns.ObjectId = op.ObjectId AND ns.RowId = NAbSpecimenID AND pd.PropertyURI LIKE '%:Curve+IC' || CAST(Cutoff AS INT) || '_5plOORIndicator'),
		IC_Poly = (SELECT op.FloatValue FROM
			exp.ObjectProperty op,
			exp.PropertyDescriptor pd,
			nab.NAbSpecimen ns
			WHERE op.PropertyId = pd.PropertyId AND ns.ObjectId = op.ObjectId AND ns.RowId = NAbSpecimenID AND pd.PropertyURI LIKE '%:Curve+IC' || CAST(Cutoff AS INT) || '_poly'),
		IC_PolyOORIndicator = (SELECT op.StringValue FROM
			exp.ObjectProperty op,
			exp.PropertyDescriptor pd,
			nab.NAbSpecimen ns
			WHERE op.PropertyId = pd.PropertyId AND ns.ObjectId = op.ObjectId AND ns.RowId = NAbSpecimenID AND pd.PropertyURI LIKE '%:Curve+IC' || CAST(Cutoff AS INT) || '_polyOORIndicator')
2016-04-07 12:53:02 CEST [3782-1657] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE study.DataSet SET KeyPropertyName = 'RowId' WHERE ProtocolId IN (SELECT ProtocolId FROM nab.NAbSpecimen)
2016-04-07 12:53:02 CEST [3782-1658] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ObjectProperty
	    WHERE ObjectId IN (SELECT ObjectID FROM nab.NabSpecimen) AND
	      (PropertyId IN
	        (SELECT PropertyId FROM exp.PropertyDescriptor pd
				WHERE
	            (pd.PropertyURI LIKE '%:SpecimenLsid' OR
	             pd.PropertyURI LIKE '%:Fit+Error' OR
	             pd.PropertyURI LIKE '%:WellgroupName' OR
	             pd.PropertyURI LIKE '%:AUC_poly' OR
	             pd.PropertyURI LIKE '%:AUC_5pl' OR
	             pd.PropertyURI LIKE '%:AUC_4pl' OR
	             pd.PropertyURI LIKE '%:PositiveAUC_poly' OR
	             pd.PropertyURI LIKE '%:PositiveAUC_5pl' OR
	             pd.PropertyURI LIKE '%:PositiveAUC_4pl' OR
	             pd.PropertyURI LIKE '%:Point+IC' OR
	             pd.PropertyURI LIKE '%:Point+ICOORIndicator' OR
	             pd.PropertyURI LIKE '%:Curve+IC%_4pl%' OR
	             pd.PropertyURI LIKE '%:Curve+IC%_4plOORIndicator'OR
	             pd.PropertyURI LIKE '%:Curve+IC%_5pl%'OR
	             pd.PropertyURI LIKE '%:Curve+IC%_5plOORIndicator'OR
	             pd.PropertyURI LIKE '%:Curve+IC%_poly' OR
	             pd.PropertyURI LIKE '%:Curve+IC%_polyOORIndicator')))
2016-04-07 12:53:02 CEST [3782-1659] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.ObjectProperty
	    WHERE ObjectId IN (SELECT ObjectId FROM exp.Object WHERE ObjectURI LIKE 'urn:lsid:%AssayRunNabDataRow.%') AND
	      (PropertyId IN (SELECT PropertyId FROM exp.PropertyDescriptor WHERE
	        (PropertyURI LIKE '%:NabProperty%:SpecimenLsid' OR
	         PropertyURI LIKE '%:NabProperty%:Fit+Error' OR
	         PropertyURI LIKE '%:NabProperty%:WellgroupName' OR
	         PropertyURI LIKE '%:NabProperty%:AUC%' OR
	         PropertyURI LIKE '%:NabProperty%:PositiveAUC%' OR
	         PropertyURI LIKE '%:NabProperty%:Point+IC%' OR
	         PropertyURI LIKE '%:NabProperty%:Curve+IC%')))
2016-04-07 12:53:02 CEST [3782-1660] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DELETE FROM exp.PropertyDescriptor
	    WHERE Container IN (SELECT Container FROM exp.ExperimentRun er, nab.NabSpecimen ns WHERE ns.RunId = er.RowId) AND
		  (PropertyURI LIKE '%:NabProperty%:SpecimenLsid' OR
		   PropertyURI LIKE '%:NabProperty%:Fit+Error' OR
		   PropertyURI LIKE '%:NabProperty%:WellgroupName' OR
		   PropertyURI LIKE '%:NabProperty%:AUC%' OR
		   PropertyURI LIKE '%:NabProperty%:PositiveAUC%' OR
		   PropertyURI LIKE '%:NabProperty%:Point+IC%' OR
		   PropertyURI LIKE '%:NabProperty%:Curve+IC%')
2016-04-07 12:53:02 CEST [3782-1661] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_NAbSpecimen_ProtocolId ON nab.NAbSpecimen(ProtocolId)
2016-04-07 12:53:02 CEST [3782-1662] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_CutoffValue_NabSpecimenId ON nab.cutoffvalue USING btree (NabSpecimenId)
2016-04-07 12:53:03 CEST [3782-1663] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:03 CEST [3782-1664] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:03.144', $2 = '0', $3 = '2016-04-07 12:53:03.144', $4 = '0', $5 = '2016-04-07 12:53:03.144', $6 = 'Nab', $7 = 'nab-0.00-13.20.sql'
2016-04-07 12:53:03 CEST [3782-1665] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE nab.NabSpecimen ADD COLUMN viruslsid lsidtype
2016-04-07 12:53:03 CEST [3782-1666] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE SCHEMA nabvirus
2016-04-07 12:53:03 CEST [3782-1667] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:03 CEST [3782-1668] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:03.239', $2 = '0', $3 = '2016-04-07 12:53:03.239', $4 = '0', $5 = '2016-04-07 12:53:03.239', $6 = 'Nab', $7 = 'nab-14.20-14.30.sql'
2016-04-07 12:53:03 CEST [3782-1669] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IDX_NAbSpecimen_SpecimenLSID ON nab.NAbSpecimen(SpecimenLSID)
2016-04-07 12:53:03 CEST [3782-1670] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:03 CEST [3782-1671] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:03.396', $2 = '0', $3 = '2016-04-07 12:53:03.396', $4 = '0', $5 = '2016-04-07 12:53:03.396', $6 = 'Nab', $7 = 'nab-15.10-15.20.sql'
2016-04-07 12:53:03 CEST [3782-1672] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE nab.dilutiondata
	(
	  RowId SERIAL NOT NULL,
	  Dilution REAL,
	  DilutionOrder INT,
	  PercentNeutralization REAL,
	  NeutralizationPlusMinus REAL,
	  Min REAL,
	  Max REAL,
	  Mean REAL,
	  StdDev REAL,
	
	  CONSTRAINT pk_dilutiondata PRIMARY KEY (RowId)
	
	)
2016-04-07 12:53:03 CEST [3782-1673] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE nab.welldata
	(
	  RowId SERIAL NOT NULL,
	  RunId INT NOT NULL,
	  SpecimenLsid lsidtype NOT NULL,
	  RunDataId INT NOT NULL,
	  DilutionDataId INT,
	  ProtocolId INT,
	  "Row" INT,
	  "Column" INT,
	  Value REAL,
	  ControlWellgroup VARCHAR(100),
	  VirusWellgroup VARCHAR(100),
	  SpecimenWellgroup VARCHAR(100),
	  ReplicateWellgroup VARCHAR(100),
	  ReplicateNumber INT,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT pk_welldata PRIMARY KEY (RowId),
	  CONSTRAINT fk_welldata_experimentrun FOREIGN KEY (RunId)
	    REFERENCES exp.experimentrun (RowId) MATCH SIMPLE
	    ON UPDATE NO ACTION ON DELETE NO ACTION,
	  CONSTRAINT fk_welldata_specimenlsid FOREIGN KEY (SpecimenLsid)
	    REFERENCES exp.material (Lsid)
	    ON UPDATE NO ACTION ON DELETE NO ACTION,
	  CONSTRAINT fk_welldata_rundataid FOREIGN KEY (RunDataId)
	    REFERENCES nab.nabspecimen (RowId)
	    ON UPDATE NO ACTION ON DELETE NO ACTION,
	  CONSTRAINT fk_welldata_dilutiondataid FOREIGN KEY (DilutionDataId)
	    REFERENCES nab.dilutiondata (RowId)
	    ON UPDATE NO ACTION ON DELETE NO ACTION
	
	)
2016-04-07 12:53:03 CEST [3782-1674] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX idx_welldata_runid ON nab.welldata(RunId)
2016-04-07 12:53:03 CEST [3782-1675] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE nab.welldata ALTER COLUMN SpecimenLsid DROP NOT NULL
2016-04-07 12:53:03 CEST [3782-1676] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.welldata ALTER COLUMN RunDataId DROP NOT NULL
2016-04-07 12:53:03 CEST [3782-1677] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.welldata ADD COLUMN PlateNumber INT
2016-04-07 12:53:03 CEST [3782-1678] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.welldata ADD COLUMN PlateVirusName VARCHAR(100)
2016-04-07 12:53:03 CEST [3782-1679] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE nab.dilutiondata ALTER COLUMN Dilution TYPE DOUBLE PRECISION
2016-04-07 12:53:03 CEST [3782-1680] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ALTER COLUMN PercentNeutralization TYPE DOUBLE PRECISION
2016-04-07 12:53:03 CEST [3782-1681] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ALTER COLUMN NeutralizationPlusMinus TYPE DOUBLE PRECISION
2016-04-07 12:53:03 CEST [3782-1682] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ALTER COLUMN Min TYPE DOUBLE PRECISION
2016-04-07 12:53:04 CEST [3782-1683] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ALTER COLUMN Max TYPE DOUBLE PRECISION
2016-04-07 12:53:04 CEST [3782-1684] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ALTER COLUMN Mean TYPE DOUBLE PRECISION
2016-04-07 12:53:04 CEST [3782-1685] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ALTER COLUMN StdDev TYPE DOUBLE PRECISION
2016-04-07 12:53:04 CEST [3782-1686] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE nab.dilutiondata ADD COLUMN WellgroupName VARCHAR(100)
2016-04-07 12:53:04 CEST [3782-1687] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN ReplicateName VARCHAR(100)
2016-04-07 12:53:04 CEST [3782-1688] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN RunDataId INT
2016-04-07 12:53:04 CEST [3782-1689] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN MinDilution DOUBLE PRECISION
2016-04-07 12:53:04 CEST [3782-1690] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN MaxDilution DOUBLE PRECISION
2016-04-07 12:53:04 CEST [3782-1691] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN PlateNumber INT
2016-04-07 12:53:04 CEST [3782-1692] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN RunId INT
2016-04-07 12:53:04 CEST [3782-1693] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN ProtocolId INT
2016-04-07 12:53:04 CEST [3782-1694] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD COLUMN Container ENTITYID NOT NULL
2016-04-07 12:53:04 CEST [3782-1695] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE nab.dilutiondata ADD CONSTRAINT fk_dilutiondata_experimentrun FOREIGN KEY (RunId)
	  REFERENCES exp.experimentrun (RowId) MATCH SIMPLE
	  ON UPDATE NO ACTION ON DELETE NO ACTION
2016-04-07 12:53:04 CEST [3782-1696] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.dilutiondata ADD CONSTRAINT fk_dilutiondata_rundataid FOREIGN KEY (RunDataId)
	  REFERENCES nab.nabspecimen (RowId)
	  ON UPDATE NO ACTION ON DELETE NO ACTION
2016-04-07 12:53:04 CEST [3782-1697] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_DilutionData_RunId ON nab.DilutionData(RunId)
2016-04-07 12:53:04 CEST [3782-1698] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE nab.NabSpecimen ALTER COLUMN FitError TYPE DOUBLE PRECISION
2016-04-07 12:53:04 CEST [3782-1699] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.NabSpecimen ALTER COLUMN AUC_poly TYPE DOUBLE PRECISION
2016-04-07 12:53:05 CEST [3782-1700] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.NabSpecimen ALTER COLUMN PositiveAUC_Poly TYPE DOUBLE PRECISION
2016-04-07 12:53:05 CEST [3782-1701] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.NabSpecimen ALTER COLUMN AUC_4pl TYPE DOUBLE PRECISION
2016-04-07 12:53:05 CEST [3782-1702] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.NabSpecimen ALTER COLUMN PositiveAUC_4pl TYPE DOUBLE PRECISION
2016-04-07 12:53:06 CEST [3782-1703] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.NabSpecimen ALTER COLUMN AUC_5pl TYPE DOUBLE PRECISION
2016-04-07 12:53:06 CEST [3782-1704] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.NabSpecimen ALTER COLUMN PositiveAUC_5pl TYPE DOUBLE PRECISION
2016-04-07 12:53:07 CEST [3782-1705] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE nab.CutoffValue ALTER COLUMN Cutoff TYPE DOUBLE PRECISION
2016-04-07 12:53:07 CEST [3782-1706] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.CutoffValue ALTER COLUMN Point TYPE DOUBLE PRECISION
2016-04-07 12:53:07 CEST [3782-1707] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.CutoffValue ALTER COLUMN IC_Poly TYPE DOUBLE PRECISION
2016-04-07 12:53:07 CEST [3782-1708] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.CutoffValue ALTER COLUMN IC_4pl TYPE DOUBLE PRECISION
2016-04-07 12:53:07 CEST [3782-1709] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE nab.CutoffValue ALTER COLUMN IC_5pl TYPE DOUBLE PRECISION
2016-04-07 12:53:07 CEST [3782-1710] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:07 CEST [3782-1711] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:07.794', $2 = '0', $3 = '2016-04-07 12:53:07.794', $4 = '0', $5 = '2016-04-07 12:53:07.794', $6 = 'Nab', $7 = 'nab-15.20-15.30.sql'
2016-04-07 12:53:07 CEST [3782-1712] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:53:07 CEST [3782-1713] postgres@labkey DETAIL:  parameters: $1 = 'Nab', $2 = 'org.labkey.nab.NabModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:53:07 CEST [3782-1714] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:53:07 CEST [3782-1715] postgres@labkey DETAIL:  parameters: $1 = 'Elisa', $2 = 'org.labkey.elisa.ElisaModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:53:07 CEST [3782-1716] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA targetedms
2016-04-07 12:53:07 CEST [3782-1717] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.Runs
	(
	    _ts TIMESTAMP DEFAULT now(),
	    Id SERIAL NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Owner USERID NULL,
	
	    Container ENTITYID NOT NULL,
	    EntityId ENTITYID NOT NULL,
	    Description VARCHAR(300),
	    Path VARCHAR(500),
	    FileName VARCHAR(300),
	    Status VARCHAR(200),
	    StatusId INT NOT NULL DEFAULT 0,
	    Deleted BOOLEAN NOT NULL DEFAULT '0',
	    ExperimentRunLSID LSIDType NULL,
	
	    PeptideGroupCount INT NOT NULL DEFAULT 0,
	    PeptideCount INT NOT NULL DEFAULT 0,
	    PrecursorCount INT NOT NULL DEFAULT 0,
	    TransitionCount INT NOT NULL DEFAULT 0,
	
	    CONSTRAINT PK_Runs PRIMARY KEY (Id)
	)
2016-04-07 12:53:08 CEST [3782-1718] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.Predictor
	(
	    Id SERIAL NOT NULL,
	    Name VARCHAR(100),
	    StepSize INT,
	    StepCount INT,
	    Charge INT,
	    Slope REAL,
	    Intercept REAL,
	
	    CONSTRAINT PK_Predictor PRIMARY KEY (Id)
	)
2016-04-07 12:53:08 CEST [3782-1719] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionPredictionSettings
	(
	    RunId INT NOT NULL,
	    PrecursorMassType VARCHAR(5),
	    ProductMassType VARCHAR(5),
	    OptimizeBy VARCHAR(10) NOT NULL,
	    CePredictorId INT,
	    DpPredictorId INT,
	
	    CONSTRAINT PK_TransitionPredictionSettings PRIMARY KEY (RunId),
	    CONSTRAINT FK_TransitionPredictionSettings_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:08 CEST [3782-1720] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionInstrumentSettings
	(
	    RunId INT NOT NULL,
	    DynamicMin BOOLEAN,
	    MinMz INT NOT NULL,
	    MaxMz INT NOT NULL,
	    MzMatchTolerance REAL NOT NULL,
	    MinTime INT,
	    MaxTime INT,
	    MaxTransitions INT,
	
	    CONSTRAINT PK_TransitionInstrumentSettings PRIMARY KEY (RunId),
	    CONSTRAINT FK_TransitionInstrumentSettings_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:08 CEST [3782-1721] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionFullScanSettings
	(
	    RunId INT NOT NULL,
	    PrecursorFilter REAL,
	    PrecursorLeftFilter REAL,
	    PrecursorRightFilter REAL,
	    ProductMassAnalyzer VARCHAR(20),
	    ProductRes REAL,
	    ProductResMz REAL,
	    PrecursorIsotopes VARCHAR(10),
	    PrecursorIsotopeFilter REAL,
	    PrecursorMassAnalyzer VARCHAR(20),
	    PrecursorRes REAL,
	    PrecursorResMz REAL,
	    ScheduleFilter BOOLEAN,
	
	    CONSTRAINT PK_TransitionFullScanSettings PRIMARY KEY (RunId),
	    CONSTRAINT FK_TransitionFullScanSettings_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:08 CEST [3782-1722] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.IsotopeEnrichment
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Symbol VARCHAR(10),
	    PercentEnrichment REAL,
	
	    CONSTRAINT PK_IsotopeEnrichment PRIMARY KEY (Id),
	    CONSTRAINT FK_IsotopeEnrichment_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:08 CEST [3782-1723] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_IsotopeEnrichment_RunId ON targetedms.IsotopeEnrichment (RunId)
2016-04-07 12:53:08 CEST [3782-1724] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.RetentionTimePredictionSettings
	(
	    RunId INT NOT NULL,
	    CalculatorName VARCHAR(100),
	    IsIrt BOOLEAN,
	    RegressionSlope REAL,
	    RegressionIntercept REAL,
	
	    CONSTRAINT PK_RetentionTimePredictionSettings PRIMARY KEY (RunId),
	    CONSTRAINT FK_RetentionTimePredictionSettings_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:08 CEST [3782-1725] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.Instrument
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Model VARCHAR(300),
	    IonizationType VARCHAR(300),
	    Analyzer VARCHAR(300),
	    Detector VARCHAR(300),
	
	    CONSTRAINT PK_Instrument PRIMARY KEY (Id),
	    CONSTRAINT FK_Instrument_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:08 CEST [3782-1726] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Instrument_RunId ON targetedms.Instrument (RunId)
2016-04-07 12:53:08 CEST [3782-1727] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.Replicate
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(100) NOT NULL,
	    CePredictorId INT,
	    DpPredictorId INT,
	
	    CONSTRAINT PK_Replicate PRIMARY KEY (Id),
	    CONSTRAINT FK_Replicate_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id),
	    CONSTRAINT FK_Replicate_PredictorCe FOREIGN KEY (CePredictorId) REFERENCES targetedms.Predictor(Id),
	    CONSTRAINT FK_Replicate_PredictorDp FOREIGN KEY (DpPredictorId) REFERENCES targetedms.Predictor(Id)
	)
2016-04-07 12:53:08 CEST [3782-1728] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Replicate_RunId ON targetedms.Replicate(RunId)
2016-04-07 12:53:08 CEST [3782-1729] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Replicate_CePredictorId ON targetedms.Replicate(CePredictorId)
2016-04-07 12:53:08 CEST [3782-1730] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Replicate_DpPredictorId ON targetedms.Replicate(DpPredictorId)
2016-04-07 12:53:08 CEST [3782-1731] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.SampleFile
	(
	    Id SERIAL NOT NULL,
	    ReplicateId INT NOT NULL,
	    FilePath VARCHAR(500) NOT NULL,
	    SampleName VARCHAR(300) NOT NULL,
	    SkylineId VARCHAR(300) NOT NULL,
	    AcquiredTime TIMESTAMP,
	    ModifiedTime TIMESTAMP,
	    InstrumentId INT,
	
	    CONSTRAINT PK_SampleFile PRIMARY KEY (Id),
	    CONSTRAINT FK_SampleFile_Replicate FOREIGN KEY (ReplicateId) REFERENCES targetedms.Replicate(Id),
	    CONSTRAINT FK_SampleFile_Instrument FOREIGN KEY (InstrumentId) REFERENCES targetedms.Instrument(Id)
	)
2016-04-07 12:53:08 CEST [3782-1732] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleFile_ReplicateId ON targetedms.SampleFile(ReplicateId)
2016-04-07 12:53:08 CEST [3782-1733] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.Annotation
	(
	    Id SERIAL NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_Annotation PRIMARY KEY (Id)
	)
2016-04-07 12:53:08 CEST [3782-1734] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.PeptideGroup
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Label CHAR(10) NOT NULL,
	    Description TEXT,
	    SequenceId INTEGER,
	    Decoy BOOLEAN,
	    Note VARCHAR(255),
	
	    CONSTRAINT PK_PeptideGroup PRIMARY KEY (Id),
	    CONSTRAINT FK_PeptideGroup_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:09 CEST [3782-1735] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideGroup_RunId ON targetedms.PeptideGroup(RunId)
2016-04-07 12:53:09 CEST [3782-1736] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE targetedms.Protein
	(
	    Id SERIAL NOT NULL,
	    PeptideGroupId INT NOT NULL,
	    LabkeySequenceId INT NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    Description TEXT NULL ,
	
	    CONSTRAINT PK_Protein PRIMARY KEY (Id),
	    CONSTRAINT FK_Protein_PeptideGroup FOREIGN KEY (PeptideGroupId) REFERENCES targetedms.PeptideGroup(Id)
	)
2016-04-07 12:53:09 CEST [3782-1737] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Protein_PeptideGroupId ON targetedms.Protein(PeptideGroupId)
2016-04-07 12:53:09 CEST [3782-1738] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PeptideGroupAnnotation
	(
	    AnnotationId INT NOT NULL,
	    PeptideGroupId INT NOT NULL,
	
	    CONSTRAINT PK_PeptideGroupAnnotation PRIMARY KEY (AnnotationId,PeptideGroupId),
	    CONSTRAINT FK_PeptideGroupAnnotation_Annotation FOREIGN KEY (AnnotationId) REFERENCES targetedms.Annotation(Id),
	    CONSTRAINT FK_PeptideGroupAnnotation_PeptideGroup FOREIGN KEY (PeptideGroupId) REFERENCES targetedms.PeptideGroup(Id)
	)
2016-04-07 12:53:09 CEST [3782-1739] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.Peptide
	(
	    Id SERIAL NOT NULL,
	    PeptideGroupId INT NOT NULL,
	    Sequence VARCHAR(100) NOT NULL,
	    StartIndex INT,
	    EndIndex INT,
	    PreviousAa CHAR(1),
	    NextAa CHAR(1),
	    CalcNeutralMass REAL NOT NULL,
	    NumMissedCleavages INT NOT NULL,
	    Rank INTEGER,
	    RtCalculatorScore REAL,
	    PredictedRetentionTime REAL,
	    AvgMeasuredRetentionTime REAL,
	    Decoy BOOLEAN,
	    Note VARCHAR(255),
	
	    CONSTRAINT PK_Peptide PRIMARY KEY (Id),
	    CONSTRAINT FK_Peptide_PeptideGroup FOREIGN KEY (PeptideGroupId) REFERENCES targetedms.PeptideGroup(Id)
	)
2016-04-07 12:53:09 CEST [3782-1740] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Peptide_Sequence ON targetedms.Peptide (Sequence)
2016-04-07 12:53:09 CEST [3782-1741] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Peptide_PeptideGroupId ON targetedms.Peptide(PeptideGroupId)
2016-04-07 12:53:09 CEST [3782-1742] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PeptideAnnotation
	(
	    AnnotationId INT NOT NULL,
	    PeptideId INT NOT NULL,
	
	    CONSTRAINT PK_PeptideAnnotation PRIMARY KEY (AnnotationId,PeptideId),
	    CONSTRAINT FK_PeptideAnnotation_Annotation FOREIGN KEY (AnnotationId) REFERENCES targetedms.Annotation(Id),
	    CONSTRAINT FK_PeptideAnnotation_Peptide FOREIGN KEY (PeptideId) REFERENCES targetedms.Peptide(Id)
	)
2016-04-07 12:53:09 CEST [3782-1743] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PeptideChromInfo
	(
	    Id SERIAL NOT NULL,
	    PeptideId INT  NOT NULL,
	    SampleFileId INT NOT NULL,
	    PeakCountRatio REAL NOT NULL,
	    RetentionTime REAL,
	    PredictedRetentionTime REAL,
	    RatioToStandard REAL,
	
	    CONSTRAINT PK_PeptideChromInfo PRIMARY KEY (Id),
	    CONSTRAINT FK_PeptideChromInfo_Peptide FOREIGN KEY (PeptideId) REFERENCES targetedms.Peptide(Id),
	    CONSTRAINT FK_PeptideChromInfo_SampleFile FOREIGN KEY (SampleFileId) REFERENCES targetedms.SampleFile(Id)
	)
2016-04-07 12:53:09 CEST [3782-1744] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideChromInfo_PeptideId ON targetedms.PeptideChromInfo(PeptideId)
2016-04-07 12:53:09 CEST [3782-1745] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideChromInfo_SampleFileId ON targetedms.PeptideChromInfo(SampleFileId)
2016-04-07 12:53:09 CEST [3782-1746] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.Precursor (
	    Id SERIAL NOT NULL,
	    PeptideId INT  NOT NULL,
	    IsotopeLabelId INT,
	    Mz REAL NOT NULL,
	    Charge INT NOT NULL,
	    NeutralMass REAL NOT NULL,
	    ModifiedSequence VARCHAR(100) NOT NULL,
	    CollisionEnergy REAL,
	    DeclusteringPotential REAL,
	    Decoy BOOLEAN,
	    DecoyMassShift REAL,
	    Note VARCHAR(255),
	
	    CONSTRAINT PK_Precursor PRIMARY KEY (Id),
		CONSTRAINT FK_Precursor_Peptide FOREIGN KEY (PeptideId) REFERENCES targetedms.Peptide(Id)
	)
2016-04-07 12:53:09 CEST [3782-1747] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Precursor_PeptideId ON targetedms.Precursor(PeptideId)
2016-04-07 12:53:09 CEST [3782-1748] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PrecursorAnnotation
	(
	    AnnotationId INT NOT NULL,
	    PrecursorId INT NOT NULL,
	
	    CONSTRAINT PK_PrecursorAnnotation PRIMARY KEY (AnnotationId,PrecursorId),
	    CONSTRAINT FK_PrecursorAnnotation_Annotation FOREIGN KEY (AnnotationId) REFERENCES targetedms.Annotation(Id),
	    CONSTRAINT FK_PrecursorAnnotation_Precursor FOREIGN KEY (PrecursorId) REFERENCES targetedms.Precursor(Id)
	)
2016-04-07 12:53:10 CEST [3782-1749] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PrecursorChromInfo
	(
	    Id SERIAL NOT NULL,
	    PrecursorId INT  NOT NULL,
	    SampleFileId INT NOT NULL,
	    PeptideChromInfoId INT NOT NULL,
	    BestRetentionTime REAL,
	    MinStartTime REAL,
	    MaxEndTime REAL,
	    TotalArea REAL,
	    TotalAreaNormalized REAL,
	    TotalBackground REAL,
	    MaxFwhm REAL,
	    PeakCountRatio REAL,
	    NumTruncated INT,
	    Identified BOOLEAN,
	    LibraryDtop REAL,
	    OptimizationStep INT,
	    UserSet BOOLEAN,
	    NOTE VARCHAR(500),
	
	    CONSTRAINT PK_PrecursorChromInfo PRIMARY KEY (Id),
	    CONSTRAINT FK_PrecursorChromInfo_Precursor FOREIGN KEY (PrecursorId) REFERENCES targetedms.Precursor(Id),
	    CONSTRAINT FK_PrecursorChromInfo_SampleFile FOREIGN KEY (SampleFileId) REFERENCES targetedms.SampleFile(Id),
	    CONSTRAINT FK_PrecursorChromInfo_PeptideChromInfo FOREIGN KEY (PeptideChromInfoId) REFERENCES targetedms.PeptideChromInfo(Id)
	)
2016-04-07 12:53:10 CEST [3782-1750] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorChromInfo_PrecursorId ON targetedms.PrecursorChromInfo(PrecursorId)
2016-04-07 12:53:10 CEST [3782-1751] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorChromInfo_SampleFileId ON targetedms.PrecursorChromInfo(SampleFileId)
2016-04-07 12:53:10 CEST [3782-1752] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorChromInfo_PeptideChromInfoId ON targetedms.PrecursorChromInfo(PeptideChromInfoId)
2016-04-07 12:53:10 CEST [3782-1753] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PrecursorChromInfoAnnotation
	(
	    AnnotationId INT NOT NULL,
	    PrecursorChromInfoId INT NOT NULL,
	
	    CONSTRAINT PK_PrecursorChromInfoAnnotation PRIMARY KEY (AnnotationId,PrecursorChromInfoId),
	    CONSTRAINT FK_PrecursorChromInfoAnnotation_Annotation FOREIGN KEY (AnnotationId) REFERENCES targetedms.Annotation(Id),
	    CONSTRAINT FK_PrecursorChromInfoAnnotation_Precursor FOREIGN KEY (PrecursorChromInfoId) REFERENCES targetedms.PrecursorChromInfo(Id)
	)
2016-04-07 12:53:10 CEST [3782-1754] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.Transition (
	    Id SERIAL NOT NULL,
	    PrecursorId INT NOT NULL,
	    Mz REAL,
	    Charge INT,
	    NeutralMass REAL,
	    NeutralLossMass REAL,
	    FragmentType VARCHAR(10) NOT NULL,
	    FragmentOrdinal INT,
	    CleavageAa CHAR(1),
	    LibraryRank INT,
	    LibraryIntensity REAL,
	    IsotopeDistIndex INT,
	    IsotopeDistRank INT,
	    IsotopeDistProportion REAL,
	    Decoy BOOLEAN,
	    DecoyMassShift REAL,
	    Note VARCHAR(255),
	
	    CONSTRAINT PK_Transition PRIMARY KEY (Id),
		CONSTRAINT FK_Transition_Precursor FOREIGN KEY (PrecursorId) REFERENCES targetedms.Precursor(Id)
	)
2016-04-07 12:53:10 CEST [3782-1755] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Transition_PrecursorId ON targetedms.Transition(PrecursorId)
2016-04-07 12:53:10 CEST [3782-1756] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionAnnotation
	(
	    AnnotationId INT NOT NULL,
	    PrecursorId INT NOT NULL,
	
	    CONSTRAINT PK_TransitionAnnotation PRIMARY KEY (AnnotationId,PrecursorId),
	    CONSTRAINT FK_TransitionAnnotation_Annotation FOREIGN KEY (AnnotationId) REFERENCES targetedms.Annotation(Id),
	    CONSTRAINT FK_TransitionAnnotation_Precursor FOREIGN KEY (PrecursorId) REFERENCES targetedms.Precursor(Id)
	)
2016-04-07 12:53:10 CEST [3782-1757] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionChromInfo
	(
	    Id SERIAL NOT NULL,
	    TransitionId INT  NOT NULL,
	    SampleFileId INT NOT NULL,
	    PrecursorChromInfoId INT NOT NULL,
	    RetentionTime REAL,
	    StartTime REAL,
	    EndTime REAL,
	    Height REAL,
	    Area REAL,
	    AreaNormalized REAL,
	    Background REAL,
	    Fwhm REAL,
	    FwhmDegenerate BOOLEAN,
	    Truncated BOOLEAN,
	    PeakRank INT,
	    Identified BOOLEAN,
	    OptimizationStep INT,
	    UserSet BOOLEAN,
	    NOTE VARCHAR(500),
	
	    CONSTRAINT PK_TransitionChromInfo PRIMARY KEY (Id),
	    CONSTRAINT FK_TransitionChromInfo_Transition FOREIGN KEY (TransitionId) REFERENCES targetedms.Transition(Id),
	    CONSTRAINT FK_TransitionChromInfo_SampleFile FOREIGN KEY (SampleFileId) REFERENCES targetedms.SampleFile(Id),
	    CONSTRAINT FK_TransitionChromInfo_PrecursorChromInfo FOREIGN KEY (PrecursorChromInfoId) REFERENCES targetedms.PrecursorChromInfo(Id)
	)
2016-04-07 12:53:10 CEST [3782-1758] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionChromInfo_TransitionId ON targetedms.TransitionChromInfo(TransitionId)
2016-04-07 12:53:10 CEST [3782-1759] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionChromInfo_SampleFileId ON targetedms.TransitionChromInfo(SampleFileId)
2016-04-07 12:53:10 CEST [3782-1760] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE targetedms.TransitionChromInfoAnnotation
	(
	    AnnotationId INT NOT NULL,
	    TransitionChromInfoId INT NOT NULL,
	
	    CONSTRAINT PK_TransitionChromInfoAnnotation PRIMARY KEY (AnnotationId,TransitionChromInfoId),
	    CONSTRAINT FK_TransitionChromInfoAnnotation_Annotation FOREIGN KEY (AnnotationId) REFERENCES targetedms.Annotation(Id),
	    CONSTRAINT FK_TransitionChromInfoAnnotation_Transition FOREIGN KEY (TransitionChromInfoId) REFERENCES targetedms.TransitionChromInfo(Id)
	)
2016-04-07 12:53:10 CEST [3782-1761] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	CREATE TABLE targetedms.Chromatogram
	(
	    Id SERIAL,
	    RunId Int NOT NULL,
	    Chromatogram BYTEA NOT NULL,
	    NumPoints INT NOT NULL,
	    NumTransitions INT NOT NULL,
	
	    CONSTRAINT PK_Chromatogram PRIMARY KEY (Id),
	    CONSTRAINT FK_Chromatogram_RunId FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:10 CEST [3782-1762] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.TransitionAnnotation DROP COLUMN PrecursorId
2016-04-07 12:53:10 CEST [3782-1763] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.TransitionAnnotation ADD COLUMN TransitionId INT NOT NULL
2016-04-07 12:53:10 CEST [3782-1764] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionAnnotation ADD CONSTRAINT FK_TransitionAnnotation_Transition FOREIGN KEY (TransitionId) REFERENCES targetedms.Transition(Id)
2016-04-07 12:53:10 CEST [3782-1765] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IDX_transitionannotation_transitionid ON targetedms.TransitionAnnotation(TransitionId)
2016-04-07 12:53:11 CEST [3782-1766] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.PrecursorChromInfo ADD COLUMN Chromatogram BYTEA
2016-04-07 12:53:11 CEST [3782-1767] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo ADD COLUMN NumTransitions INT
2016-04-07 12:53:11 CEST [3782-1768] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo ADD COLUMN NumPoints INT
2016-04-07 12:53:11 CEST [3782-1769] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.TransitionChromInfo ADD COLUMN chromatogramindex INT
2016-04-07 12:53:11 CEST [3782-1770] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP TABLE targetedms.Chromatogram
2016-04-07 12:53:11 CEST [3782-1771] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE TABLE targetedms.Enzyme
	(
	    Id SERIAL NOT NULL,
	    Name VARCHAR(10) NOT NULL,
	    Cut VARCHAR(10) NOT NULL,
	    NoCut VARCHAR(10),
	    Sense CHAR(1) NOT NULL,
	
	    CONSTRAINT PK_Enzyme PRIMARY KEY (Id)
	)
2016-04-07 12:53:11 CEST [3782-1772] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.RunEnzyme
	(
	    EnzymeId INT NOT NULL,
	    RunId INT NOT NULL,
	    MaxMissedCleavages INT,
	    ExcludeRaggedEnds BOOLEAN,
	
	    CONSTRAINT PK_RunEnzyme PRIMARY KEY (EnzymeId, RunId),
	    CONSTRAINT FK_RunEnzyme_Enzyme FOREIGN KEY (EnzymeId) REFERENCES targetedms.Enzyme(Id),
	    CONSTRAINT FK_RunEnzyme_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:11 CEST [3782-1773] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE TABLE targetedms.ModificationSettings
	(
	    RunId INT NOT NULL,
	    MaxVariableMods INT NOT NULL,
	    MaxNeutralLosses INT NOT NULL,
	
	    CONSTRAINT PK_ModificationSettings PRIMARY KEY (RunId),
	    CONSTRAINT FK_ModificationSettings_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:11 CEST [3782-1774] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.IsotopeLabel
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(50) NOT NULL,
	    Standard BOOLEAN NOT NULL,
	
	    CONSTRAINT PK_IsotopeLabel PRIMARY KEY (Id),
	    CONSTRAINT FK_IsotopeLabel_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:11 CEST [3782-1775] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_IsotopeLabel_RunId ON targetedms.IsotopeLabel (RunId)
2016-04-07 12:53:11 CEST [3782-1776] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.StructuralModification
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(100) NOT NULL,
	    AminoAcid CHAR(1),
	    Terminus CHAR(1),
	    Formula VARCHAR(50) NOT NULL,
	    MassDiffMono REAL,
	    MassDiffAvg REAL,
	    UnimodId INTEGER,
	
	    CONSTRAINT PK_StructuralModification PRIMARY KEY (Id),
	    CONSTRAINT FK_StructuralModification_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:11 CEST [3782-1777] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.StructuralModLoss
	(
	    Id SERIAL NOT NULL,
	    StructuralModId INT NOT NULL,
	    Formula VARCHAR(50),
	    MassDiffMono REAL,
	    MassDiffAvg REAL,
	
	    CONSTRAINT PK_StructuralModLoss PRIMARY KEY (Id),
	    CONSTRAINT FK_StructuralModLoss_StructuralModification FOREIGN KEY (StructuralModId) REFERENCES targetedms.StructuralModification(Id)
	)
2016-04-07 12:53:11 CEST [3782-1778] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_StructuralModification_StructuralModId ON targetedms.StructuralModLoss (StructuralModId)
2016-04-07 12:53:11 CEST [3782-1779] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.RunStructuralModification
	(
	    StructuralModId INT NOT NULL,
	    RunId INT NOT NULL,
	    ExplicitMod BOOLEAN,
	
	    CONSTRAINT PK_RunStructuralModification PRIMARY KEY (StructuralModId),
	    CONSTRAINT FK_RunStructuralModification_StructuralModification FOREIGN KEY (StructuralModId) REFERENCES targetedms.StructuralModification(Id),
	    CONSTRAINT FK_RunStructuralModification_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:11 CEST [3782-1780] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_RunStructuralModification_RunId ON targetedms.RunStructuralModification (RunId)
2016-04-07 12:53:11 CEST [3782-1781] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.IsotopeModification
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(100) NOT NULL,
	    AminoAcid CHAR(1),
	    Terminus CHAR(1),
	    Formula VARCHAR(50) NOT NULL,
	    MassDiffMono REAL,
	    MassDiffAvg REAL,
	    Label13C BOOLEAN,
	    Label15N BOOLEAN,
	    Label18O BOOLEAN,
	    Label2H BOOLEAN,
	    RelativeRt REAL,
	    ExplicitMod BOOLEAN,
	    UnimodId INTEGER,
	
	    CONSTRAINT PK_IsotopeModification PRIMARY KEY (Id),
	    CONSTRAINT FK_IsotopeModification_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:11 CEST [3782-1782] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_IsotopeModification_RunId ON targetedms.IsotopeModification (RunId)
2016-04-07 12:53:11 CEST [3782-1783] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.RunIsotopeModification
	(
	    IsotopeModId INT NOT NULL,
	    RunId INT NOT NULL,
	    IsotopeLabelId INT NOT NULL,
	    ExplicitMod BOOLEAN,
	
	    CONSTRAINT PK_RunIsotopeModification PRIMARY KEY (IsotopeModId),
	    CONSTRAINT FK_RunIsotopeModification_IsotopeModification FOREIGN KEY (IsotopeModId) REFERENCES targetedms.IsotopeModification(Id),
	    CONSTRAINT FK_RunIsotopeModification_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id),
	    CONSTRAINT FK_RunIsotopeModification_IsotopeLabel FOREIGN KEY (IsotopeLabelId) REFERENCES targetedms.IsotopeLabel(Id)
	)
2016-04-07 12:53:11 CEST [3782-1784] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_RunIsotopeModification_RunId ON targetedms.RunIsotopeModification (RunId)
2016-04-07 12:53:11 CEST [3782-1785] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_RunIsotopeModification_IsotopeLabelId ON targetedms.RunIsotopeModification (IsotopeLabelId)
2016-04-07 12:53:11 CEST [3782-1786] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.PeptideStructuralModification
	(
	    Id SERIAL NOT NULL,
	    PeptideId INT NOT NULL,
	    StructuralModId INT NOT NULL,
	    IndexAa INT NOT NULL,
	    MassDiff REAL,
	
	    CONSTRAINT PK_PeptideStructuralModification PRIMARY KEY (Id),
	    CONSTRAINT FK_PeptideStructuralModification_Peptide FOREIGN KEY (PeptideId) REFERENCES targetedms.Peptide(Id),
	    CONSTRAINT FK_PeptideStructuralModification_StructuralModification FOREIGN KEY (StructuralModId) REFERENCES targetedms.StructuralModification(Id)
	)
2016-04-07 12:53:11 CEST [3782-1787] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideStructuralModification_PeptideId ON targetedms.PeptideStructuralModification (PeptideId)
2016-04-07 12:53:11 CEST [3782-1788] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideStructuralModification_StructuralModId ON targetedms.PeptideStructuralModification (StructuralModId)
2016-04-07 12:53:11 CEST [3782-1789] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PeptideIsotopeModification
	(
	    Id SERIAL NOT NULL,
	    PeptideId INT NOT NULL,
	    IsotopeModId INT NOT NULL,
	    IndexAa INT NOT NULL,
	    MassDiff REAL,
	
	    CONSTRAINT PK_PeptideIsotopeModification PRIMARY KEY (Id),
	    CONSTRAINT FK_PeptideIsotopeModification_Peptide FOREIGN KEY (PeptideId) REFERENCES targetedms.Peptide(Id),
	    CONSTRAINT FK_PeptideIsotopeModification_IsotopeModification FOREIGN KEY (IsotopeModId) REFERENCES targetedms.IsotopeModification(Id)
	)
2016-04-07 12:53:11 CEST [3782-1790] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideIsotopeModification_PeptideId ON targetedms.PeptideIsotopeModification (PeptideId)
2016-04-07 12:53:12 CEST [3782-1791] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideIsotopeModification_IsotopeModId ON targetedms.PeptideIsotopeModification (IsotopeModId)
2016-04-07 12:53:12 CEST [3782-1792] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.TransitionAreaRatio
	(
	    Id SERIAL NOT NULL,
	    TransitionChromInfoId INT NOT NULL,
	    TransitionChromInfoStdId INT NOT NULL,
	    IsotopeLabelId INT NOT NULL,
	    IsotopeLabelStdId INT NOT NULL,
	    AreaRatio REAL NOT NULL,
	
	    CONSTRAINT PK_TransitionAreaRatio PRIMARY KEY (Id),
	    CONSTRAINT FK_TransitionAreaRatio_TransitionChromInfoId FOREIGN KEY (TransitionChromInfoId) REFERENCES targetedms.TransitionChromInfo(Id),
	    CONSTRAINT FK_TransitionAreaRatio_TransitionChromInfoStdId FOREIGN KEY (TransitionChromInfoStdId) REFERENCES targetedms.TransitionChromInfo(Id),
	    CONSTRAINT FK_TransitionAreaRatio_IsotopeLabelId FOREIGN KEY (IsotopeLabelId) REFERENCES targetedms.IsotopeLabel(Id),
	    CONSTRAINT FK_TransitionAreaRatio_IsotopeLabelStdId FOREIGN KEY (IsotopeLabelStdId) REFERENCES targetedms.IsotopeLabel(Id)
	)
2016-04-07 12:53:12 CEST [3782-1793] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionAreaRatio_TransitionChromInfoId ON targetedms.TransitionAreaRatio (TransitionChromInfoId)
2016-04-07 12:53:12 CEST [3782-1794] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionAreaRatio_TransitionChromInfoStdId ON targetedms.TransitionAreaRatio (TransitionChromInfoStdId)
2016-04-07 12:53:12 CEST [3782-1795] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionAreaRatio_IsotopeLabelId ON targetedms.TransitionAreaRatio (IsotopeLabelId)
2016-04-07 12:53:12 CEST [3782-1796] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionAreaRatio_IsotopeLabelStdId ON targetedms.TransitionAreaRatio (IsotopeLabelStdId)
2016-04-07 12:53:12 CEST [3782-1797] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PrecursorAreaRatio
	(
	    Id SERIAL NOT NULL,
	    PrecursorChromInfoId INT NOT NULL,
	    PrecursorChromInfoStdId INT NOT NULL,
	    IsotopeLabelId INT NOT NULL,
	    IsotopeLabelStdId INT NOT NULL,
	    AreaRatio REAL NOT NULL,
	
	    CONSTRAINT PK_PrecursorAreaRatio PRIMARY KEY (Id),
	    CONSTRAINT FK_PrecursorAreaRatio_PrecursorChromInfoId FOREIGN KEY (PrecursorChromInfoId) REFERENCES targetedms.PrecursorChromInfo(Id),
	    CONSTRAINT FK_PrecursorAreaRatio_PrecursorChromInfoStdId FOREIGN KEY (PrecursorChromInfoStdId) REFERENCES targetedms.PrecursorChromInfo(Id),
	    CONSTRAINT FK_PrecursorAreaRatio_IsotopeLabelId FOREIGN KEY (IsotopeLabelId) REFERENCES targetedms.IsotopeLabel(Id),
	    CONSTRAINT FK_PrecursorAreaRatio_IsotopeLabelStdId FOREIGN KEY (IsotopeLabelStdId) REFERENCES targetedms.IsotopeLabel(Id)
	)
2016-04-07 12:53:12 CEST [3782-1798] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorAreaRatio_PrecursorChromInfoId ON targetedms.PrecursorAreaRatio (PrecursorChromInfoId)
2016-04-07 12:53:12 CEST [3782-1799] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorAreaRatio_PrecursorChromInfoStdId ON targetedms.PrecursorAreaRatio (PrecursorChromInfoStdId)
2016-04-07 12:53:12 CEST [3782-1800] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorAreaRatio_IsotopeLabelId ON targetedms.PrecursorAreaRatio (IsotopeLabelId)
2016-04-07 12:53:12 CEST [3782-1801] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorAreaRatio_IsotopeLabelStdId ON targetedms.PrecursorAreaRatio (IsotopeLabelStdId)
2016-04-07 12:53:12 CEST [3782-1802] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PeptideAreaRatio
	(
	    Id SERIAL NOT NULL,
	    PeptideChromInfoId INT NOT NULL,
	    PeptideChromInfoStdId INT NOT NULL,
	    IsotopeLabelId INT NOT NULL,
	    IsotopeLabelStdId INT NOT NULL,
	    AreaRatio REAL NOT NULL,
	
	    CONSTRAINT PK_PeptideAreaRatio PRIMARY KEY (Id),
	    CONSTRAINT FK_PeptideAreaRatio_PeptideChromInfoId FOREIGN KEY (PeptideChromInfoId) REFERENCES targetedms.PeptideChromInfo(Id),
	    CONSTRAINT FK_PeptideAreaRatio_PeptideChromInfoStdId FOREIGN KEY (PeptideChromInfoStdId) REFERENCES targetedms.PeptideChromInfo(Id),
	    CONSTRAINT FK_PeptideAreaRatio_IsotopeLabelId FOREIGN KEY (IsotopeLabelId) REFERENCES targetedms.IsotopeLabel(Id),
	    CONSTRAINT FK_PeptideAreaRatio_IsotopeLabelStdId FOREIGN KEY (IsotopeLabelStdId) REFERENCES targetedms.IsotopeLabel(Id)
	)
2016-04-07 12:53:12 CEST [3782-1803] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideAreaRatio_PeptideChromInfoId ON targetedms.PeptideAreaRatio (PeptideChromInfoId)
2016-04-07 12:53:12 CEST [3782-1804] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideAreaRatio_PeptideChromInfoStdId ON targetedms.PeptideAreaRatio (PeptideChromInfoStdId)
2016-04-07 12:53:12 CEST [3782-1805] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideAreaRatio_IsotopeLabelId ON targetedms.PeptideAreaRatio (IsotopeLabelId)
2016-04-07 12:53:12 CEST [3782-1806] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideAreaRatio_IsotopeLabelStdId ON targetedms.PeptideAreaRatio (IsotopeLabelStdId)
2016-04-07 12:53:12 CEST [3782-1807] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.LibrarySource
	(
	    Id SERIAL NOT NULL,
	    Type VARCHAR(10) NOT NULL,  
	    Score1Name VARCHAR(20),
	    Score2Name VARCHAR(20),
	    Score3Name VARCHAR(20),
	
	    CONSTRAINT PK_LibrarySource PRIMARY KEY (Id)
	)
2016-04-07 12:53:12 CEST [3782-1808] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.LibrarySettings
	(
	    RunId INT NOT NULL,
	    Pick VARCHAR(10),
	    RankType VARCHAR(20),
	    PeptideCount INT,
	
	    CONSTRAINT PK_LibrarySettings PRIMARY KEY (RunId),
	    CONSTRAINT FK_LibrarySettings_RunId FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:13 CEST [3782-1809] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.SpectrumLibrary
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    LibrarySourceId INT NOT NULL,
	    LibraryType VARCHAR(20) NOT NULL, 
	    Name VARCHAR(10) NOT NULL,
	    FileNameHint VARCHAR(100),
	    LibraryId VARCHAR(50) NOT NULL,
	    Revision VARCHAR(10),
	
	    CONSTRAINT PK_SpectrumLibrary PRIMARY KEY (Id),
	    CONSTRAINT FK_SpectrumLibrary_RunId FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id),
	    CONSTRAINT FK_SpectrumLibrary_LibrarySourceId FOREIGN KEY (LibrarySourceId) REFERENCES targetedms.LibrarySource(Id)
	)
2016-04-07 12:53:13 CEST [3782-1810] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpectrumLibrary_RunId ON targetedms.SpectrumLibrary (RunId)
2016-04-07 12:53:13 CEST [3782-1811] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_SpectrumLibrary_LibrarySourceId ON targetedms.SpectrumLibrary (LibrarySourceId)
2016-04-07 12:53:13 CEST [3782-1812] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.TransitionOptimization
	(
	     Id SERIAL NOT NULL,
	     TransitionId INT NOT NULL,
	     OptimizationType VARCHAR(10) NOT NULL,
	     OptValue REAL NOT NULL,
	
	     CONSTRAINT PK_TransitionOptimization PRIMARY KEY (Id),
	     CONSTRAINT FK_TransitionOptimization_TransitionId FOREIGN KEY (TransitionId) REFERENCES targetedms.Transition(Id)
	)
2016-04-07 12:53:13 CEST [3782-1813] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionOptimization_TransitionId ON targetedms.TransitionOptimization (TransitionId)
2016-04-07 12:53:13 CEST [3782-1814] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionLoss
	(
	    Id SERIAL NOT NULL,
	    TransitionId INT NOT NULL,
	    StructuralModLossId INT NOT NULL,
	
	    CONSTRAINT PK_TransitionLoss PRIMARY KEY (Id),
	    CONSTRAINT FK_TransitionLoss_TransitionId FOREIGN KEY (TransitionId) REFERENCES targetedms.Transition(Id),
	    CONSTRAINT FK_TransitionLoss_StructuralModLossId FOREIGN KEY (StructuralModLossId) REFERENCES targetedms.StructuralModLoss(Id)
	)
2016-04-07 12:53:13 CEST [3782-1815] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionLoss_TransitionId ON targetedms.TransitionLoss (TransitionId)
2016-04-07 12:53:13 CEST [3782-1816] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_TransitionLoss_StructuralModLossId ON targetedms.TransitionLoss (StructuralModLossId)
2016-04-07 12:53:13 CEST [3782-1817] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.RunIsotopeModification ADD COLUMN RelativeRt VARCHAR(20)
2016-04-07 12:53:13 CEST [3782-1818] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.IsotopeModification DROP COLUMN RelativeRt
2016-04-07 12:53:13 CEST [3782-1819] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.IsotopeModification DROP COLUMN RunId
2016-04-07 12:53:13 CEST [3782-1820] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.StructuralModification DROP COLUMN RunId
2016-04-07 12:53:13 CEST [3782-1821] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.IsotopeModification ALTER COLUMN Formula DROP NOT NULL
2016-04-07 12:53:13 CEST [3782-1822] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.StructuralModification ALTER COLUMN Formula DROP NOT NULL
2016-04-07 12:53:13 CEST [3782-1823] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.Precursor ADD CONSTRAINT FK_Precursor_IsotopeLabel FOREIGN KEY (IsotopeLabelId) REFERENCES targetedms.IsotopeLabel(Id)
2016-04-07 12:53:13 CEST [3782-1824] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PeptideGroup ALTER COLUMN Label TYPE VARCHAR(50)
2016-04-07 12:53:13 CEST [3782-1825] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.SpectrumLibrary ALTER COLUMN LibraryId TYPE VARCHAR(200)
2016-04-07 12:53:13 CEST [3782-1826] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.SpectrumLibrary RENAME COLUMN LibraryId TO SkylineLibraryId
2016-04-07 12:53:13 CEST [3782-1827] postgres@labkey LOG:  execute <unnamed>: 
	
	INSERT INTO targetedms.LibrarySource (type, score1name) VALUES ('BiblioSpec', 'count_measured')
2016-04-07 12:53:13 CEST [3782-1828] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO targetedms.LibrarySource (type, score1name, score2name) VALUES ('GPM', 'expect', 'processed_intensity')
2016-04-07 12:53:13 CEST [3782-1829] postgres@labkey LOG:  execute <unnamed>: 
	INSERT INTO targetedms.LibrarySource (type, score1name, score2name, score3name) VALUES ('NIST', 'expect', 'total_intensity', 'tfratio')
2016-04-07 12:53:13 CEST [3782-1830] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PrecursorLibInfo
	(
	    Id SERIAL NOT NULL,
	    PrecursorId INT NOT NULL,
	    SpectrumLibraryId INT NOT NULL,
	    Score1 REAL,
	    Score2 REAL,
	    Score3 REAL,
	
	    CONSTRAINT PK_PrecursorLibInfo PRIMARY KEY (Id),
	    CONSTRAINT FK_PrecursorLibInfo_Precursor FOREIGN KEY (PrecursorId) REFERENCES targetedms.Precursor(Id),
	    CONSTRAINT FK_PrecursorLibInfo_SpectrumLibrary FOREIGN KEY (SpectrumLibraryId) REFERENCES targetedms.SpectrumLibrary(Id)
	)
2016-04-07 12:53:13 CEST [3782-1831] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorLibInfo_PrecursorId ON targetedms.PrecursorLibInfo(PrecursorId)
2016-04-07 12:53:13 CEST [3782-1832] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorLibInfo_SpectrumLibraryId ON targetedms.PrecursorLibInfo(SpectrumLibraryId)
2016-04-07 12:53:13 CEST [3782-1833] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.SpectrumLibrary ALTER COLUMN Name TYPE VARCHAR(200)
2016-04-07 12:53:14 CEST [3782-1834] postgres@labkey LOG:  execute <unnamed>: 
	
	
	DROP TABLE targetedms.PeptideGroupAnnotation
2016-04-07 12:53:14 CEST [3782-1835] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE targetedms.PrecursorAnnotation
2016-04-07 12:53:14 CEST [3782-1836] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE targetedms.PrecursorChromInfoAnnotation
2016-04-07 12:53:14 CEST [3782-1837] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE targetedms.TransitionAnnotation
2016-04-07 12:53:14 CEST [3782-1838] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE targetedms.TransitionChromInfoAnnotation
2016-04-07 12:53:14 CEST [3782-1839] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE targetedms.PeptideAnnotation
2016-04-07 12:53:14 CEST [3782-1840] postgres@labkey LOG:  execute <unnamed>: 
	DROP TABLE targetedms.Annotation
2016-04-07 12:53:14 CEST [3782-1841] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PeptideGroupAnnotation
	(
	    Id SERIAL NOT NULL,
	    PeptideGroupId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_PeptideGroupAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_PeptideGroupAnnotation_PeptideGroup FOREIGN KEY (PeptideGroupId) REFERENCES targetedms.PeptideGroup(Id),
	    CONSTRAINT UQ_PeptideGroupAnnotation_Name_PeptideGroup UNIQUE (Name, PeptideGroupId)
	)
2016-04-07 12:53:14 CEST [3782-1842] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PrecursorAnnotation
	(
	    Id SERIAL NOT NULL,
	    PrecursorId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_PrecursorAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_PrecursorAnnotation_Precursor FOREIGN KEY (PrecursorId) REFERENCES targetedms.Precursor(Id),
	    CONSTRAINT UQ_PrecursorAnnotation_Name_Precursor UNIQUE (Name, PrecursorId)
	)
2016-04-07 12:53:14 CEST [3782-1843] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PrecursorChromInfoAnnotation
	(
	    Id SERIAL NOT NULL,
	    PrecursorChromInfoId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_PrecursorChromInfoAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_PrecursorChromInfoAnnotation_PrecursorChromInfo FOREIGN KEY (PrecursorChromInfoId) REFERENCES targetedms.PrecursorChromInfo(Id),
	    CONSTRAINT UQ_PrecursorChromInfoAnnotation_Name_PrecursorChromInfo UNIQUE (Name, PrecursorChromInfoId)
	)
2016-04-07 12:53:14 CEST [3782-1844] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionAnnotation
	(
	    Id SERIAL NOT NULL,
	    TransitionId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_TransitionAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_TransitionAnnotation_Transition FOREIGN KEY (TransitionId) REFERENCES targetedms.Transition(Id),
	    CONSTRAINT UQ_TransitionAnnotation_Name_Transition UNIQUE (Name, TransitionId)
	)
2016-04-07 12:53:14 CEST [3782-1845] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.TransitionChromInfoAnnotation
	(
	    Id SERIAL NOT NULL,
	    TransitionChromInfoId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_TransitionChromInfoAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_TransitionChromInfoAnnotation_TransitionChromInfo FOREIGN KEY (TransitionChromInfoId) REFERENCES targetedms.TransitionChromInfo(Id),
	    CONSTRAINT UQ_TransitionChromInfoAnnotation_Name_TransitionChromInfo UNIQUE (Name, TransitionChromInfoId)
	)
2016-04-07 12:53:14 CEST [3782-1846] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PeptideAnnotation
	(
	    Id SERIAL NOT NULL,
	    PeptideId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_PeptideAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_PeptideAnnotation_Peptide FOREIGN KEY (PeptideId) REFERENCES targetedms.Peptide(Id),
	    CONSTRAINT UQ_PeptideAnnotation_Name_Peptide UNIQUE (Name, PeptideId)
	)
2016-04-07 12:53:14 CEST [3782-1847] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.SampleFile ALTER COLUMN SkylineId DROP NOT NULL
2016-04-07 12:53:14 CEST [3782-1848] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Precursor ALTER COLUMN ModifiedSequence DROP NOT NULL
2016-04-07 12:53:14 CEST [3782-1849] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Predictor DROP COLUMN Charge
2016-04-07 12:53:14 CEST [3782-1850] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Predictor DROP COLUMN Slope
2016-04-07 12:53:14 CEST [3782-1851] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Predictor DROP COLUMN Intercept
2016-04-07 12:53:14 CEST [3782-1852] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.PredictorSettings
	(
	    Id SERIAL NOT NULL,
	    PredictorId INT NOT NULL,
	    Charge INT,
	    Slope REAL,
	    Intercept REAL,
	
	    CONSTRAINT PK_PredictorSettings PRIMARY KEY (Id),
	    CONSTRAINT UQ_PredictorSettings UNIQUE (PredictorId, Charge),
	    CONSTRAINT FK_PredictorSettings_PredictorId FOREIGN KEY (PredictorId) REFERENCES targetedms.Predictor(Id)
	)
2016-04-07 12:53:15 CEST [3782-1853] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.transitionpredictionsettings ALTER COLUMN precursormasstype TYPE VARCHAR(20)
2016-04-07 12:53:15 CEST [3782-1854] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.transitionpredictionsettings ALTER COLUMN productmasstype TYPE VARCHAR(20)
2016-04-07 12:53:15 CEST [3782-1855] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.structuralmodification ALTER COLUMN aminoacid TYPE VARCHAR(30)
2016-04-07 12:53:15 CEST [3782-1856] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.runstructuralmodification DROP CONSTRAINT pk_runstructuralmodification
2016-04-07 12:53:15 CEST [3782-1857] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.runstructuralmodification ADD CONSTRAINT pk_runstructuralmodification PRIMARY KEY (structuralmodid, runid)
2016-04-07 12:53:15 CEST [3782-1858] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.runs ADD COLUMN RepresentativeDataState INT NOT NULL DEFAULT 0
2016-04-07 12:53:15 CEST [3782-1859] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.peptidegroup ADD COLUMN ActiveRepresentativeData BOOLEAN NOT NULL DEFAULT false
2016-04-07 12:53:15 CEST [3782-1860] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.spectrumlibrary ALTER COLUMN skylinelibraryid DROP NOT NULL
2016-04-07 12:53:15 CEST [3782-1861] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.enzyme ALTER COLUMN name TYPE VARCHAR(30)
2016-04-07 12:53:15 CEST [3782-1862] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.transition ADD COLUMN massindex INT
2016-04-07 12:53:15 CEST [3782-1863] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.runstructuralmodification ADD COLUMN variable BOOLEAN NOT NULL DEFAULT false
2016-04-07 12:53:15 CEST [3782-1864] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.ReplicateAnnotation
	(
	    Id SERIAL NOT NULL,
	    ReplicateId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Value VARCHAR(255) NOT NULL,
	
	    CONSTRAINT PK_ReplicateAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_ReplicateAnnotation_Replicate FOREIGN KEY (ReplicateId) REFERENCES targetedms.Replicate(Id),
	    CONSTRAINT UQ_ReplicateAnnotation_Name_Repicate UNIQUE (Name, ReplicateId)
	)
2016-04-07 12:53:15 CEST [3782-1865] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PeptideGroup ALTER COLUMN label TYPE VARCHAR(255)
2016-04-07 12:53:15 CEST [3782-1866] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Runs ADD COLUMN DataId INT
2016-04-07 12:53:15 CEST [3782-1867] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE targetedms.Runs runs SET DataId=(SELECT data.RowId FROM exp.Data data, exp.ExperimentRun expRun WHERE expRun.RowId=data.RunId AND expRun.lsid=runs.ExperimentRunLsid)
2016-04-07 12:53:15 CEST [3782-1868] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Runs ADD CONSTRAINT FK_Runs_Data FOREIGN KEY (DataId) REFERENCES exp.Data(RowId)
2016-04-07 12:53:15 CEST [3782-1869] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Runs DROP COLUMN Path
2016-04-07 12:53:15 CEST [3782-1870] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN Modified TIMESTAMP
2016-04-07 12:53:15 CEST [3782-1871] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.PeptideGroup pepgrp SET modified=(SELECT Modified FROM targetedms.Runs runs where runs.Id = pepgrp.RunId)
2016-04-07 12:53:15 CEST [3782-1872] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN RepresentativeDataState INT NOT NULL DEFAULT 0
2016-04-07 12:53:15 CEST [3782-1873] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.PeptideGroup SET RepresentativeDataState=1 WHERE ActiveRepresentativeData=TRUE
2016-04-07 12:53:15 CEST [3782-1874] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.PeptideGroup AS pepgrp SET RepresentativeDataState=3
	       FROM  targetedms.Runs AS runs
	       WHERE pepgrp.RunId = runs.Id
	       AND   pepgrp.ActiveRepresentativeData=FALSE
	       AND   runs.RepresentativeDataState=1
2016-04-07 12:53:15 CEST [3782-1875] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	
	UPDATE targetedms.Runs SET RepresentativeDataState=1 WHERE RepresentativeDataState=2
2016-04-07 12:53:15 CEST [3782-1876] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.PeptideGroup DROP COLUMN ActiveRepresentativeData
2016-04-07 12:53:15 CEST [3782-1877] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.Precursor ADD COLUMN Modified TIMESTAMP
2016-04-07 12:53:15 CEST [3782-1878] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.Precursor ADD COLUMN RepresentativeDataState INT NOT NULL DEFAULT 0
2016-04-07 12:53:16 CEST [3782-1879] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	CREATE TABLE targetedms.AnnotationSettings
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    Targets VARCHAR(255),
	    Type VARCHAR(20),
	
	    CONSTRAINT PK_AnnotationSettings PRIMARY KEY (Id),
	    CONSTRAINT FK_AnnotationSettings_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:16 CEST [3782-1880] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_AnnotationSettings_RunId ON targetedms.AnnotationSettings (RunId)
2016-04-07 12:53:16 CEST [3782-1881] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE INDEX IX_PrecursorChromInfoAnnotation_PrecursorChromInfoId ON targetedms.PrecursorChromInfoAnnotation(PrecursorChromInfoId)
2016-04-07 12:53:16 CEST [3782-1882] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_TransitionChromInfoAnnotation_TransitionChromInfoId ON targetedms.TransitionChromInfoAnnotation(TransitionChromInfoId)
2016-04-07 12:53:16 CEST [3782-1883] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_PeptideAnnotation_PeptideId ON targetedms.PeptideAnnotation(PeptideId)
2016-04-07 12:53:16 CEST [3782-1884] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_PrecursorAnnotation_PrecursorId ON targetedms.PrecursorAnnotation(PrecursorId)
2016-04-07 12:53:16 CEST [3782-1885] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_PeptideGroupAnnotation_PeptideGroupId ON targetedms.PeptideGroupAnnotation(PeptideGroupId)
2016-04-07 12:53:16 CEST [3782-1886] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_TransitionAnnotation_TransitionId ON targetedms.TransitionAnnotation(TransitionId)
2016-04-07 12:53:16 CEST [3782-1887] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.Peptide ADD COLUMN PeptideModifiedSequence VARCHAR(255)
2016-04-07 12:53:16 CEST [3782-1888] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo ADD COLUMN MaxHeight REAL
2016-04-07 12:53:16 CEST [3782-1889] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo RENAME COLUMN LibraryDtop TO LibraryDotp
2016-04-07 12:53:16 CEST [3782-1890] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo ADD COLUMN IsotopeDotp REAL
2016-04-07 12:53:16 CEST [3782-1891] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo ADD COLUMN AverageMassErrorPPM REAL
2016-04-07 12:53:16 CEST [3782-1892] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo ADD COLUMN MassErrorPPM REAL
2016-04-07 12:53:16 CEST [3782-1893] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE core.PortalWebParts
	SET Permanent = false
	WHERE Name = 'Protein Search' AND Container IN
	(SELECT ObjectId FROM prop.PropertySets ps JOIN prop.Properties p ON ps.Set = p.Set
	WHERE ps.Category = 'folderType' AND p.Value = 'Targeted MS')
2016-04-07 12:53:16 CEST [3782-1894] postgres@labkey LOG:  execute <unnamed>: 
	
	
	UPDATE targetedms.precursor set representativedatastate = 0
2016-04-07 12:53:16 CEST [3782-1895] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.peptidegroup set representativedatastate = 0
2016-04-07 12:53:16 CEST [3782-1896] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE targetedms.iRTScale
	(
	    Id SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    Created TIMESTAMP,
	    CreatedBy INT,
	
	    CONSTRAINT PK_iRTScale PRIMARY KEY (Id),
	    CONSTRAINT FK_iRTScale_Container FOREIGN KEY (Container) REFERENCES core.Containers(EntityId)
	)
2016-04-07 12:53:16 CEST [3782-1897] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_iRTScale_Container ON targetedms.iRTScale (Container)
2016-04-07 12:53:16 CEST [3782-1898] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE targetedms.iRTPeptide
	(
	    Id SERIAL NOT NULL,
	    ModifiedSequence VARCHAR(100) NOT NULL,
	    iRTStandard BOOLEAN NOT NULL,
	    iRTValue FLOAT NOT NULL,
	    iRTScaleId INT NOT NULL,
	    Created TIMESTAMP,
	    CreatedBy INT,
	
	    CONSTRAINT PK_iRTPeptide PRIMARY KEY (Id),
	    CONSTRAINT FK_iRTPeptide_iRTScaleId FOREIGN KEY (iRTScaleId) REFERENCES targetedms.iRTScale(Id)
	)
2016-04-07 12:53:16 CEST [3782-1899] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_iRTPeptide_iRTScaleId ON targetedms.iRTPeptide (iRTScaleId)
2016-04-07 12:53:16 CEST [3782-1900] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Runs ADD iRTScaleId INT
2016-04-07 12:53:16 CEST [3782-1901] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Runs ADD CONSTRAINT FK_Runs_iRTScaleId FOREIGN KEY (iRTScaleId) REFERENCES targetedms.iRTScale(Id)
2016-04-07 12:53:16 CEST [3782-1902] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Runs_iRTScaleId ON targetedms.Runs (iRTScaleId)
2016-04-07 12:53:16 CEST [3782-1903] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE core.PortalWebParts
	SET Permanent = false
	WHERE Container IN
	(SELECT ObjectId FROM prop.PropertySets ps JOIN prop.Properties p ON ps.Set = p.Set
	WHERE ps.Category = 'folderType' AND p.Value = 'Targeted MS')
2016-04-07 12:53:16 CEST [3782-1904] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	UPDATE targetedms.peptide set PeptideModifiedSequence = (
	   select MIN(prec.ModifiedSequence) from targetedms.Precursor AS prec, targetedms.IsotopeLabel AS ilabel
	   WHERE prec.IsotopeLabelId = ilabel.id AND ilabel.name = 'light' AND prec.PeptideId = targetedms.Peptide.Id
	) WHERE PeptideModifiedSequence IS NULL
2016-04-07 12:53:16 CEST [3782-1905] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE INDEX IX_TransitionChromInfo_PrecursorChromInfoId
	  ON targetedms.TransitionChromInfo(PrecursorChromInfoId)
2016-04-07 12:53:16 CEST [3782-1906] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	INSERT INTO prot.identTypes (name, entryDate) SELECT 'Skyline', current_timestamp
	WHERE NOT EXISTS (SELECT 1 from prot.identTypes where name='Skyline')
2016-04-07 12:53:16 CEST [3782-1907] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN Name VARCHAR(255)
2016-04-07 12:53:16 CEST [3782-1908] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PeptideGroup ALTER COLUMN Note TYPE TEXT
2016-04-07 12:53:16 CEST [3782-1909] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Peptide ALTER COLUMN Note TYPE TEXT
2016-04-07 12:53:16 CEST [3782-1910] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Precursor ALTER COLUMN Note TYPE TEXT
2016-04-07 12:53:16 CEST [3782-1911] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo ALTER COLUMN Note TYPE TEXT
2016-04-07 12:53:16 CEST [3782-1912] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Transition ALTER COLUMN Note TYPE TEXT
2016-04-07 12:53:16 CEST [3782-1913] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo ALTER COLUMN Note TYPE TEXT
2016-04-07 12:53:16 CEST [3782-1914] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Precursor ALTER COLUMN ModifiedSequence TYPE VARCHAR(300)
2016-04-07 12:53:16 CEST [3782-1915] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.isotopemodification DROP COLUMN ExplicitMod
2016-04-07 12:53:16 CEST [3782-1916] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.runisotopemodification DROP CONSTRAINT pk_runisotopemodification
2016-04-07 12:53:16 CEST [3782-1917] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.runisotopemodification ADD CONSTRAINT pk_runisotopemodification PRIMARY KEY (isotopemodid, runid)
2016-04-07 12:53:16 CEST [3782-1918] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:16 CEST [3782-1919] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:16.954', $2 = '0', $3 = '2016-04-07 12:53:16.954', $4 = '0', $5 = '2016-04-07 12:53:16.954', $6 = 'TargetedMS', $7 = 'targetedms-0.00-13.30.sql'
2016-04-07 12:53:16 CEST [3782-1920] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE targetedms.runisotopemodification DROP CONSTRAINT pk_runisotopemodification
2016-04-07 12:53:16 CEST [3782-1921] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.runisotopemodification ADD CONSTRAINT pk_runisotopemodification PRIMARY KEY (isotopemodid, runid, isotopelabelid)
2016-04-07 12:53:17 CEST [3782-1922] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.RetentionTimePredictionSettings ADD COLUMN PredictorName VARCHAR(200)
2016-04-07 12:53:17 CEST [3782-1923] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.RetentionTimePredictionSettings ADD COLUMN TimeWindow REAL
2016-04-07 12:53:17 CEST [3782-1924] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.RetentionTimePredictionSettings ADD COLUMN UseMeasuredRts BOOLEAN
2016-04-07 12:53:17 CEST [3782-1925] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.RetentionTimePredictionSettings ADD COLUMN MeasuredRtWindow REAL
2016-04-07 12:53:17 CEST [3782-1926] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.RetentionTimePredictionSettings ALTER COLUMN CalculatorName TYPE VARCHAR(200)
2016-04-07 12:53:17 CEST [3782-1927] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE TABLE targetedms.ExperimentAnnotations
	(
	    
	    _ts TIMESTAMP,
	    Id SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	    Title VARCHAR(250),
	    Organism VARCHAR(100),
	    ExperimentDescription TEXT,
	    SampleDescription TEXT,
	    Instrument VARCHAR(250),
	    SpikeIn BOOLEAN,
	    Citation TEXT,
	    Abstract TEXT,
	    PublicationLink TEXT,
	
	    CONSTRAINT PK_ExperimentAnnotations PRIMARY KEY (Id)
	)
2016-04-07 12:53:17 CEST [3782-1928] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ExperimentAnnotations_Container ON targetedms.ExperimentAnnotations (Container)
2016-04-07 12:53:17 CEST [3782-1929] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.ExperimentAnnotationsRun
	(
	  Id SERIAL NOT NULL,
	  RunId INT NOT NULL,
	  ExperimentAnnotationsId INT NOT NULL,
	  CreatedBy USERID,
	  Created TIMESTAMP,
	
	  CONSTRAINT PK_ExperimentAnnotationsRun PRIMARY KEY (Id),
	  CONSTRAINT FK_ExperimentAnnotationsRun_ExperimentAnnotationsId FOREIGN KEY (ExperimentAnnotationsId) REFERENCES targetedms.ExperimentAnnotations(Id),
	  CONSTRAINT FK_ExperimentAnnotationsRun_RunId FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:17 CEST [3782-1930] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ExperimentAnnotationsRun_RunId ON targetedms.ExperimentAnnotationsRun (RunId)
2016-04-07 12:53:17 CEST [3782-1931] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ExperimentAnnotationsRun_ExperimentAnnotationsId ON targetedms.ExperimentAnnotationsRun (ExperimentAnnotationsId)
2016-04-07 12:53:17 CEST [3782-1932] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:17 CEST [3782-1933] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:17.21', $2 = '0', $3 = '2016-04-07 12:53:17.21', $4 = '0', $5 = '2016-04-07 12:53:17.21', $6 = 'TargetedMS', $7 = 'targetedms-13.30-14.10.sql'
2016-04-07 12:53:17 CEST [3782-1934] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE targetedms.iRTPeptide ADD COLUMN ImportCount INT
2016-04-07 12:53:17 CEST [3782-1935] postgres@labkey LOG:  execute <unnamed>: 
	
	UPDATE targetedms.iRTPeptide SET ImportCount = 1
2016-04-07 12:53:17 CEST [3782-1936] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.iRTPeptide ALTER COLUMN ImportCount SET NOT NULL
2016-04-07 12:53:17 CEST [3782-1937] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.iRTPeptide ADD COLUMN TimeSource INT
2016-04-07 12:53:17 CEST [3782-1938] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.Runs ADD COLUMN SoftwareVersion VARCHAR(50)
2016-04-07 12:53:17 CEST [3782-1939] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Runs ADD COLUMN FormatVersion VARCHAR(10)
2016-04-07 12:53:17 CEST [3782-1940] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.Peptide ADD COLUMN StandardType VARCHAR(20)
2016-04-07 12:53:17 CEST [3782-1941] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.IsotopeEnrichment ADD COLUMN Name VARCHAR(100)
2016-04-07 12:53:17 CEST [3782-1942] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN Accession VARCHAR(50)
2016-04-07 12:53:17 CEST [3782-1943] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN PreferredName VARCHAR(50)
2016-04-07 12:53:17 CEST [3782-1944] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN Gene VARCHAR(50)
2016-04-07 12:53:17 CEST [3782-1945] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN Species VARCHAR(100)
2016-04-07 12:53:17 CEST [3782-1946] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.TransitionFullScanSettings ADD COLUMN AcquisitionMethod VARCHAR(10)
2016-04-07 12:53:17 CEST [3782-1947] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.TransitionFullScanSettings ADD COLUMN RetentionTimeFilterType VARCHAR(20)
2016-04-07 12:53:17 CEST [3782-1948] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionFullScanSettings ADD COLUMN RetentionTimeFilterLength REAL
2016-04-07 12:53:17 CEST [3782-1949] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.IsolationScheme
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    Name VARCHAR(100) NOT NULL,
	    PrecursorFilter REAL,
	    PrecursorLeftFilter REAL,
	    PrecursorRightFilter REAL,
	    SpecialHandling VARCHAR(50), 
	    WindowsPerScan INT,
	
	    CONSTRAINT PK_IsolationScheme PRIMARY KEY (Id),
	    CONSTRAINT FK_IsolationScheme_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:17 CEST [3782-1950] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_IsolationScheme_RunId ON targetedms.IsolationScheme (RunId)
2016-04-07 12:53:17 CEST [3782-1951] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.IsolationWindow
	(
	    Id SERIAL NOT NULL,
	    IsolationSchemeId INT NOT NULL,
	    WindowStart REAL NOT NULL,
	    WindowEnd REAL NOT NULL,
	    Target REAL,
	    MarginLeft REAL,
	    MarginRight REAL,
	    Margin REAL,
	
	    CONSTRAINT PK_IsolationWindow PRIMARY KEY (Id),
	    CONSTRAINT FK_IsolationWindow_IsolationScheme FOREIGN KEY (IsolationSchemeId) REFERENCES targetedms.IsolationScheme(Id)
	)
2016-04-07 12:53:17 CEST [3782-1952] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_IsolationWindow_IsolationSchemeId ON targetedms.IsolationWindow (IsolationSchemeId)
2016-04-07 12:53:17 CEST [3782-1953] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.PeptideGroup ADD CONSTRAINT FK_PeptideGroup_Sequences FOREIGN KEY(SequenceId) REFERENCES prot.Sequences (seqid)
2016-04-07 12:53:17 CEST [3782-1954] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideGroup_SequenceId ON targetedms.PeptideGroup(SequenceId)
2016-04-07 12:53:17 CEST [3782-1955] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PeptideGroup_Label ON targetedms.PeptideGroup(Label)
2016-04-07 12:53:17 CEST [3782-1956] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Precursor_IsotopeLabelId ON targetedms.Precursor(IsotopeLabelId)
2016-04-07 12:53:17 CEST [3782-1957] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ReplicateAnnotation_ReplicateId ON targetedms.ReplicateAnnotation (ReplicateId)
2016-04-07 12:53:17 CEST [3782-1958] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_RunEnzyme_RunId ON targetedms.RunEnzyme(RunId)
2016-04-07 12:53:17 CEST [3782-1959] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Runs_Container ON targetedms.Runs (Container)
2016-04-07 12:53:17 CEST [3782-1960] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_SampleFile_InstrumentId ON targetedms.SampleFile(InstrumentId)
2016-04-07 12:53:17 CEST [3782-1961] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.iRTPeptide ADD CONSTRAINT UQ_iRTPeptide_SequenceAndScale UNIQUE (irtScaleId, ModifiedSequence)
2016-04-07 12:53:17 CEST [3782-1962] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.TransitionChromInfo ADD UserSet_temp VARCHAR(20)
2016-04-07 12:53:17 CEST [3782-1963] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.TransitionChromInfo SET UserSet_temp =(CASE WHEN UserSet THEN 'TRUE'
	                                                              WHEN UserSet IS FALSE THEN 'FALSE'
	                                                              ELSE NULL END)
2016-04-07 12:53:17 CEST [3782-1964] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo DROP COLUMN UserSet
2016-04-07 12:53:17 CEST [3782-1965] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo RENAME UserSet_temp TO UserSet
2016-04-07 12:53:17 CEST [3782-1966] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.PrecursorChromInfo ADD UserSet_temp VARCHAR(20)
2016-04-07 12:53:17 CEST [3782-1967] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.PrecursorChromInfo SET UserSet_temp =(CASE WHEN UserSet THEN 'TRUE'
	                                                         WHEN UserSet IS FALSE THEN 'FALSE'
	                                                         ELSE NULL END)
2016-04-07 12:53:17 CEST [3782-1968] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo DROP COLUMN UserSet
2016-04-07 12:53:17 CEST [3782-1969] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo RENAME UserSet_temp TO UserSet
2016-04-07 12:53:17 CEST [3782-1970] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE TABLE targetedms.DriftTimePredictionSettings
	(
	    Id SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    UseSpectralLibraryDriftTimes BOOLEAN,
	    SpectralLibraryDriftTimesResolvingPower REAL,
	    PredictorName VARCHAR(200),
	    ResolvingPower REAL,
	
	    CONSTRAINT PK_DriftTimePredictionSettings PRIMARY KEY (Id),
	    CONSTRAINT FK_DriftTimePredictionSettings_Runs FOREIGN KEY (RunId) REFERENCES targetedms.Runs(Id)
	)
2016-04-07 12:53:17 CEST [3782-1971] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_DriftTimePredictionSettings_RunId ON targetedms.DriftTimePredictionSettings(RunId)
2016-04-07 12:53:17 CEST [3782-1972] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.MeasuredDriftTime
	(
	    Id SERIAL NOT NULL,
	    DriftTimePredictionSettingsId INT NOT NULL,
	    ModifiedSequence VARCHAR(255) NOT NULL,
	    Charge INT NOT NULL,
	    DriftTime REAL NOT NULL,
	
	    CONSTRAINT PK_MeasuredDriftTime PRIMARY KEY (Id),
	    CONSTRAINT FK_MeasuredDriftTime_DriftTimePredictionSettings FOREIGN KEY (DriftTimePredictionSettingsId) REFERENCES targetedms.DriftTimePredictionSettings(Id)
	)
2016-04-07 12:53:17 CEST [3782-1973] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_MeasuredDriftTime_DriftTimePredictionSettingsId ON targetedms.MeasuredDriftTime(DriftTimePredictionSettingsId)
2016-04-07 12:53:18 CEST [3782-1974] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:18 CEST [3782-1975] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:18.022', $2 = '0', $3 = '2016-04-07 12:53:18.022', $4 = '0', $5 = '2016-04-07 12:53:18.022', $6 = 'TargetedMS', $7 = 'targetedms-14.10-14.20.sql'
2016-04-07 12:53:18 CEST [3782-1976] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE targetedms.Enzyme ALTER COLUMN Cut DROP NOT NULL
2016-04-07 12:53:18 CEST [3782-1977] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ALTER COLUMN Sense DROP NOT NULL
2016-04-07 12:53:18 CEST [3782-1978] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ADD COLUMN CutC VARCHAR(10)
2016-04-07 12:53:18 CEST [3782-1979] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ADD COLUMN NoCutC VARCHAR(10)
2016-04-07 12:53:18 CEST [3782-1980] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ADD COLUMN CutN VARCHAR(10)
2016-04-07 12:53:18 CEST [3782-1981] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ADD COLUMN NoCutN VARCHAR(10)
2016-04-07 12:53:18 CEST [3782-1982] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.PeptideGroup ADD COLUMN AltDescription TEXT
2016-04-07 12:53:18 CEST [3782-1983] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Transition ADD COLUMN MeasuredIonName VARCHAR(20)
2016-04-07 12:53:18 CEST [3782-1984] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.PrecursorChromInfo ADD COLUMN UncompressedSize INT
2016-04-07 12:53:18 CEST [3782-1985] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.ExperimentAnnotations ADD ExperimentId INT NOT NULL DEFAULT 0
2016-04-07 12:53:18 CEST [3782-1986] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.ExperimentAnnotations ADD JournalCopy BOOLEAN NOT NULL DEFAULT FALSE
2016-04-07 12:53:18 CEST [3782-1987] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.ExperimentAnnotations ADD IncludeSubfolders BOOLEAN NOT NULL DEFAULT FALSE
2016-04-07 12:53:18 CEST [3782-1988] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_ExperimentAnnotations_ExperimentId ON targetedms.ExperimentAnnotations(ExperimentId)
2016-04-07 12:53:18 CEST [3782-1989] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP TABLE targetedms.ExperimentAnnotationsRun
2016-04-07 12:53:18 CEST [3782-1990] postgres@labkey LOG:  execute <unnamed>: 
	DELETE FROM targetedms.ExperimentAnnotations WHERE Id NOT IN
	(SELECT ea.Id from targetedms.ExperimentAnnotations AS ea INNER JOIN core.Containers AS c ON ea.Container = c.entityId)
2016-04-07 12:53:18 CEST [3782-1991] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE targetedms.ExperimentAnnotations ADD CONSTRAINT FK_ExperimentAnnotations_Experiment FOREIGN KEY (ExperimentId) REFERENCES exp.Experiment(RowId)
2016-04-07 12:53:18 CEST [3782-1992] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.ExperimentAnnotations ADD CONSTRAINT FK_ExperimentAnnotations_Container FOREIGN KEY (Container) REFERENCES core.Containers(EntityId)
2016-04-07 12:53:18 CEST [3782-1993] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO exp.runlist
	(SELECT e.rowid, er.rowId, e.Created, e.CreatedBy
	FROM targetedms.ExperimentAnnotations ea
	INNER JOIN exp.experiment e ON (e.rowid = ea.ExperimentId)
	INNER JOIN exp.experimentrun er ON (er.container = ea.Container))
2016-04-07 12:53:18 CEST [3782-1994] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	CREATE TABLE targetedms.Journal
	(
	    _ts TIMESTAMP,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	
	    Id SERIAL NOT NULL,
	    Name VARCHAR(255) NOT NULL,
	    LabkeyGroupId INT NOT NULL,
	    Project EntityId NOT NULL,
	
	    CONSTRAINT PK_Journal PRIMARY KEY (Id),
	    CONSTRAINT UQ_Journal_Name UNIQUE(Name),
	    CONSTRAINT FK_Journal_Principals FOREIGN KEY (LabkeyGroupId) REFERENCES core.Principals(UserId),
	    CONSTRAINT FK_Journal_Containers FOREIGN KEY (Project) REFERENCES core.Containers(EntityId)
	)
2016-04-07 12:53:18 CEST [3782-1995] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Journal_LabkeyGroupId ON targetedms.Journal(LabkeyGroupId)
2016-04-07 12:53:18 CEST [3782-1996] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Journal_Project ON targetedms.Journal(Project)
2016-04-07 12:53:19 CEST [3782-1997] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.JournalExperiment
	(
	    _ts TIMESTAMP,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	
	    JournalId INT NOT NULL,
	    ExperimentAnnotationsId INT NOT NULL,
	    ShortAccessURL EntityId NOT NULL,
	    ShortCopyURL EntityId NOT NULL,
	    Copied TIMESTAMP,
	
	
	    CONSTRAINT PK_JournalExperiment PRIMARY KEY (JournalId, ExperimentAnnotationsId),
	    CONSTRAINT FK_JournalExperiment_Journal FOREIGN KEY (JournalId) REFERENCES targetedms.Journal(Id),
	    CONSTRAINT FK_JournalExperiment_ExperimentAnnotations FOREIGN KEY (ExperimentAnnotationsId) REFERENCES targetedms.ExperimentAnnotations(Id),
	    CONSTRAINT FK_JournalExperiment_ShortUrl_Access FOREIGN KEY (ShortAccessURL) REFERENCES core.ShortUrl(EntityId),
	    CONSTRAINT FK_JournalExperiment_ShortUrl_Copy FOREIGN KEY (ShortCopyURL) REFERENCES core.ShortUrl(EntityId)
	)
2016-04-07 12:53:19 CEST [3782-1998] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_JournalExperiment_ShortAccessURL ON targetedms.JournalExperiment(ShortAccessURL)
2016-04-07 12:53:19 CEST [3782-1999] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_JournalExperiment_ShortCopyURL ON targetedms.JournalExperiment(ShortCopyURL)
2016-04-07 12:53:19 CEST [3782-2000] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.TransitionChromInfo ADD Identified_temp VARCHAR(10)
2016-04-07 12:53:19 CEST [3782-2001] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.TransitionChromInfo SET Identified_temp =(CASE WHEN Identified THEN 'true'
	                                                              WHEN Identified IS FALSE THEN 'false'
	                                                              ELSE NULL END)
2016-04-07 12:53:19 CEST [3782-2002] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo DROP COLUMN Identified
2016-04-07 12:53:19 CEST [3782-2003] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo RENAME Identified_temp TO Identified
2016-04-07 12:53:19 CEST [3782-2004] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.PrecursorChromInfo ADD Identified_temp VARCHAR(10)
2016-04-07 12:53:19 CEST [3782-2005] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.PrecursorChromInfo SET Identified_temp =(CASE WHEN Identified THEN 'true'
	                                                         WHEN Identified IS FALSE THEN 'false'
	                                                         ELSE NULL END)
2016-04-07 12:53:19 CEST [3782-2006] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo DROP COLUMN Identified
2016-04-07 12:53:19 CEST [3782-2007] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo RENAME Identified_temp TO Identified
2016-04-07 12:53:19 CEST [3782-2008] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:19 CEST [3782-2009] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:19.331', $2 = '0', $3 = '2016-04-07 12:53:19.331', $4 = '0', $5 = '2016-04-07 12:53:19.331', $6 = 'TargetedMS', $7 = 'targetedms-14.20-14.30.sql'
2016-04-07 12:53:19 CEST [3782-2010] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE targetedms.QCAnnotationType
	(
	    Id SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    Name VARCHAR(100) NOT NULL,
	    Description TEXT,
	    Color VARCHAR(6) NOT NULL,
	
	    CONSTRAINT PK_QCAnnotationType PRIMARY KEY (Id),
	    CONSTRAINT FK_QCAnnotationType_Container FOREIGN KEY (Container) REFERENCES core.Containers(EntityId),
	    CONSTRAINT UQ_QCAnnotationType_ContainerName UNIQUE (Container, Name)
	)
2016-04-07 12:53:19 CEST [3782-2011] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE targetedms.QCAnnotation
	(
	    Id SERIAL NOT NULL,
	    Container ENTITYID NOT NULL,
	    CreatedBy USERID,
	    Created TIMESTAMP,
	    ModifiedBy USERID,
	    Modified TIMESTAMP,
	    QCAnnotationTypeId INT NOT NULL,
	    Description TEXT NOT NULL,
	    Date TIMESTAMP NOT NULL,
	
	    CONSTRAINT PK_QCAnnotation PRIMARY KEY (Id),
	    CONSTRAINT FK_QCAnnotation_QCAnnotationType FOREIGN KEY (QCAnnotationTypeId) REFERENCES targetedms.QCAnnotationType(Id)
	)
2016-04-07 12:53:19 CEST [3782-2012] postgres@labkey LOG:  execute <unnamed>: INSERT INTO targetedms.qcannotationtype (Container, Created, Modified, CreatedBy, ModifiedBy, Name, Color) VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:19 CEST [3782-2013] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = '2016-04-07 12:53:19.697', $3 = '2016-04-07 12:53:19.697', $4 = '0', $5 = '0', $6 = 'Instrumentation Change', $7 = 'FF0000'
2016-04-07 12:53:19 CEST [3782-2014] postgres@labkey LOG:  execute <unnamed>: INSERT INTO targetedms.qcannotationtype (Container, Created, Modified, CreatedBy, ModifiedBy, Name, Color) VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:19 CEST [3782-2015] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = '2016-04-07 12:53:19.713', $3 = '2016-04-07 12:53:19.713', $4 = '0', $5 = '0', $6 = 'Reagent Change', $7 = '00FF00'
2016-04-07 12:53:19 CEST [3782-2016] postgres@labkey LOG:  execute <unnamed>: INSERT INTO targetedms.qcannotationtype (Container, Created, Modified, CreatedBy, ModifiedBy, Name, Color) VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:19 CEST [3782-2017] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = '2016-04-07 12:53:19.724', $3 = '2016-04-07 12:53:19.724', $4 = '0', $5 = '0', $6 = 'Technician Change', $7 = '0000FF'
2016-04-07 12:53:19 CEST [3782-2018] postgres@labkey LOG:  execute <unnamed>: UPDATE targetedms.QCAnnotationType SET Color = '990000' WHERE Color = 'FF0000'
2016-04-07 12:53:19 CEST [3782-2019] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.QCAnnotationType SET Color = '009900' WHERE Color = '00FF00'
2016-04-07 12:53:19 CEST [3782-2020] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.QCAnnotationType SET Color = '000099' WHERE Color = '0000FF'
2016-04-07 12:53:19 CEST [3782-2021] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.ExperimentAnnotations ALTER COLUMN Title TYPE VARCHAR
2016-04-07 12:53:19 CEST [3782-2022] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	ALTER TABLE targetedms.Peptide ALTER COLUMN calcNeutralMass TYPE DOUBLE PRECISION
2016-04-07 12:53:20 CEST [3782-2023] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.Precursor ALTER COLUMN Mz TYPE DOUBLE PRECISION
2016-04-07 12:53:20 CEST [3782-2024] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Precursor ALTER COLUMN NeutralMass TYPE DOUBLE PRECISION
2016-04-07 12:53:20 CEST [3782-2025] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.Transition ALTER COLUMN Mz TYPE DOUBLE PRECISION
2016-04-07 12:53:20 CEST [3782-2026] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Transition ALTER COLUMN NeutralMass TYPE DOUBLE PRECISION
2016-04-07 12:53:20 CEST [3782-2027] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Transition ALTER COLUMN NeutralLossMass TYPE DOUBLE PRECISION
2016-04-07 12:53:20 CEST [3782-2028] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	ALTER TABLE targetedms.StructuralModification ALTER COLUMN massDiffMono TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2029] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.StructuralModification ALTER COLUMN massDiffAvg TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2030] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.StructuralModLoss ALTER COLUMN massDiffMono TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2031] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.StructuralModLoss ALTER COLUMN massDiffAvg TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2032] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.IsotopeModification ALTER COLUMN MassDiffMono TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2033] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.IsotopeModification ALTER COLUMN MassDiffAvg TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2034] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.PeptideStructuralModification ALTER COLUMN massDiff TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2035] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.PeptideIsotopeModification ALTER COLUMN massDiff TYPE DOUBLE PRECISION
2016-04-07 12:53:21 CEST [3782-2036] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	ALTER TABLE targetedms.Peptide ADD ExplicitRetentionTime REAL
2016-04-07 12:53:21 CEST [3782-2037] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.Precursor ADD ExplicitCollisionEnergy REAL
2016-04-07 12:53:21 CEST [3782-2038] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Precursor ADD ExplicitDriftTimeMsec REAL
2016-04-07 12:53:21 CEST [3782-2039] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Precursor ADD ExplicitDriftTimeHighEnergyOffsetMsec REAL
2016-04-07 12:53:21 CEST [3782-2040] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.Transition ALTER COLUMN FragmentType TYPE VARCHAR(20)
2016-04-07 12:53:21 CEST [3782-2041] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.MeasuredDriftTime ADD HighEnergyDriftTimeOffset REAL
2016-04-07 12:53:21 CEST [3782-2042] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	ALTER TABLE targetedms.StructuralModLoss ADD Inclusion VARCHAR(10)
2016-04-07 12:53:21 CEST [3782-2043] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	ALTER TABLE targetedms.PeptideChromInfo DROP COLUMN PredictedRetentionTime
2016-04-07 12:53:21 CEST [3782-2044] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PeptideChromInfo DROP COLUMN RatioToStandard
2016-04-07 12:53:21 CEST [3782-2045] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.PeptideGroup ALTER COLUMN gene TYPE VARCHAR(255)
2016-04-07 12:53:21 CEST [3782-2046] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.Enzyme ALTER COLUMN Cut TYPE VARCHAR(20)
2016-04-07 12:53:21 CEST [3782-2047] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ALTER COLUMN NoCut TYPE VARCHAR(20)
2016-04-07 12:53:21 CEST [3782-2048] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ALTER COLUMN CutC TYPE VARCHAR(20)
2016-04-07 12:53:21 CEST [3782-2049] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ALTER COLUMN NoCutC TYPE VARCHAR(20)
2016-04-07 12:53:21 CEST [3782-2050] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ALTER COLUMN CutN TYPE VARCHAR(20)
2016-04-07 12:53:21 CEST [3782-2051] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Enzyme ALTER COLUMN NoCutN TYPE VARCHAR(20)
2016-04-07 12:53:21 CEST [3782-2052] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	ALTER TABLE targetedms.Peptide ALTER COLUMN Sequence DROP NOT NULL
2016-04-07 12:53:21 CEST [3782-2053] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Peptide ALTER COLUMN CalcNeutralMass DROP NOT NULL
2016-04-07 12:53:21 CEST [3782-2054] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Peptide ALTER COLUMN NumMissedCleavages DROP NOT NULL
2016-04-07 12:53:21 CEST [3782-2055] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	CREATE TABLE targetedms.Molecule
	(
	  PeptideId INT NOT NULL,
	  IonFormula VARCHAR(100),
	  CustomIonName VARCHAR(100),
	  MassMonoisotopic DOUBLE PRECISION NOT NULL,
	  MassAverage DOUBLE PRECISION NOT NULL,
	
	  CONSTRAINT PK_Molecule PRIMARY KEY (PeptideId),
	  CONSTRAINT FK_Molecule_Peptide FOREIGN KEY (PeptideId) REFERENCES targetedms.Peptide(Id)
	)
2016-04-07 12:53:21 CEST [3782-2056] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	ALTER TABLE targetedms.Precursor ALTER COLUMN NeutralMass DROP NOT NULL
2016-04-07 12:53:21 CEST [3782-2057] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	
	ALTER TABLE targetedms.Transition ALTER COLUMN FragmentType DROP NOT NULL
2016-04-07 12:53:21 CEST [3782-2058] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	CREATE TABLE targetedms.MoleculeTransition (
	  TransitionId INT NOT NULL,
	  IonFormula VARCHAR(100),
	  CustomIonName VARCHAR(100),
	  MassMonoisotopic DOUBLE PRECISION NOT NULL,
	  MassAverage DOUBLE PRECISION NOT NULL,
	
	  CONSTRAINT PK_MoleculeTransition PRIMARY KEY (TransitionId),
	  CONSTRAINT FK_MoleculeTransition_Transition FOREIGN KEY (TransitionId) REFERENCES targetedms.Transition(Id)
	)
2016-04-07 12:53:22 CEST [3782-2059] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:22 CEST [3782-2060] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:22.035', $2 = '0', $3 = '2016-04-07 12:53:22.035', $4 = '0', $5 = '2016-04-07 12:53:22.035', $6 = 'TargetedMS', $7 = 'targetedms-14.30-15.10.sql'
2016-04-07 12:53:22 CEST [3782-2061] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE targetedms.GuideSet
	(
	  RowId SERIAL NOT NULL,
	  Container ENTITYID NOT NULL,
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  TrainingStart TIMESTAMP NOT NULL,
	  TrainingEnd TIMESTAMP NOT NULL,
	  Comment TEXT,
	
	  CONSTRAINT PK_GuideSet PRIMARY KEY (RowId)
	)
2016-04-07 12:53:22 CEST [3782-2062] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:22 CEST [3782-2063] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:22.196', $2 = '0', $3 = '2016-04-07 12:53:22.196', $4 = '0', $5 = '2016-04-07 12:53:22.196', $6 = 'TargetedMS', $7 = 'targetedms-15.10-15.20.sql'
2016-04-07 12:53:22 CEST [3782-2064] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE targetedms.RetentionTimePredictionSettings ADD COLUMN IrtDatabasePath VARCHAR(500)
2016-04-07 12:53:22 CEST [3782-2065] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PeptideGroup ALTER COLUMN gene TYPE VARCHAR(500)
2016-04-07 12:53:22 CEST [3782-2066] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PeptideGroup ALTER COLUMN species TYPE VARCHAR(255)
2016-04-07 12:53:22 CEST [3782-2067] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.predictor ALTER COLUMN stepSize TYPE REAL
2016-04-07 12:53:22 CEST [3782-2068] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:22 CEST [3782-2069] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:22.37', $2 = '0', $3 = '2016-04-07 12:53:22.37', $4 = '0', $5 = '2016-04-07 12:53:22.37', $6 = 'TargetedMS', $7 = 'targetedms-15.20-15.30.sql'
2016-04-07 12:53:22 CEST [3782-2070] postgres@labkey LOG:  execute <unnamed>: CREATE TABLE targetedms.AutoQCPing (
	  CreatedBy USERID,
	  Created TIMESTAMP,
	  ModifiedBy USERID,
	  Modified TIMESTAMP,
	  Container ENTITYID NOT NULL,
	
	  CONSTRAINT PK_AutoQCPing PRIMARY KEY (Container)
	)
2016-04-07 12:53:22 CEST [3782-2071] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.PrecursorChromInfo DROP COLUMN TotalAreaNormalized
2016-04-07 12:53:22 CEST [3782-2072] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo DROP COLUMN AreaNormalized
2016-04-07 12:53:22 CEST [3782-2073] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	
	
	
	ALTER TABLE targetedms.Peptide RENAME TO GeneralMolecule
2016-04-07 12:53:22 CEST [3782-2074] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE targetedms.Peptide
	(
	  Id INT NOT NULL,
	  Sequence VARCHAR(100),
	  StartIndex INT,
	  EndIndex INT,
	  PreviousAa CHAR(1),
	  NextAa CHAR(1),
	  CalcNeutralMass REAL NOT NULL,
	  NumMissedCleavages INT NOT NULL,
	  Rank INTEGER,
	  Decoy BOOLEAN,
	  PeptideModifiedSequence VARCHAR(255),
	  StandardType VARCHAR(20),
	  CONSTRAINT PK_PeptideId PRIMARY KEY (Id)
	)
2016-04-07 12:53:22 CEST [3782-2075] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.Peptide ADD CONSTRAINT FK_Id_GMId FOREIGN KEY (Id) REFERENCES targetedms.GeneralMolecule (Id)
2016-04-07 12:53:22 CEST [3782-2076] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO targetedms.Peptide(
	  Id,
	  Sequence,
	  StartIndex,
	  EndIndex,
	  PreviousAa,
	  NextAa,
	  CalcNeutralMass,
	  NumMissedCleavages,
	  Rank,
	  Decoy,
	  PeptideModifiedSequence,
	  StandardType)
	  (SELECT
	     gm.Id,
	     gm.Sequence,
	     gm.StartIndex,
	     gm.EndIndex,
	     gm.PreviousAa,
	     gm.NextAa,
	     gm.CalcNeutralMass,
	     gm.NumMissedCleavages,
	     gm.Rank,
	     gm.Decoy,
	     gm.PeptideModifiedSequence,
	     gm.StandardType
	   FROM targetedms.GeneralMolecule gm
	   WHERE gm.Sequence IS NOT NULL)
2016-04-07 12:53:22 CEST [3782-2077] postgres@labkey LOG:  execute <unnamed>:  
	                                   
	
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN Sequence
2016-04-07 12:53:22 CEST [3782-2078] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN StartIndex
2016-04-07 12:53:22 CEST [3782-2079] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN EndIndex
2016-04-07 12:53:22 CEST [3782-2080] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN PreviousAa
2016-04-07 12:53:22 CEST [3782-2081] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN NextAa
2016-04-07 12:53:22 CEST [3782-2082] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN CalcNeutralMass
2016-04-07 12:53:22 CEST [3782-2083] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN NumMissedCleavages
2016-04-07 12:53:22 CEST [3782-2084] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN Rank
2016-04-07 12:53:22 CEST [3782-2085] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN Decoy
2016-04-07 12:53:22 CEST [3782-2086] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN PeptideModifiedSequence
2016-04-07 12:53:22 CEST [3782-2087] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule DROP COLUMN StandardType
2016-04-07 12:53:22 CEST [3782-2088] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.GeneralMolecule DROP CONSTRAINT PK_Peptide CASCADE
2016-04-07 12:53:22 CEST [3782-2089] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Peptide_Sequence ON targetedms.Peptide (Sequence)
2016-04-07 12:53:22 CEST [3782-2090] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMolecule ADD CONSTRAINT PK_GMId PRIMARY KEY (Id)
2016-04-07 12:53:22 CEST [3782-2091] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.Molecule RENAME COLUMN PeptideId To Id
2016-04-07 12:53:22 CEST [3782-2092] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Molecule ADD CONSTRAINT FK_Molecule_Id FOREIGN KEY (Id) REFERENCES targetedms.GeneralMolecule(Id)
2016-04-07 12:53:22 CEST [3782-2093] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.PeptideChromInfo RENAME TO GeneralMoleculeChromInfo
2016-04-07 12:53:22 CEST [3782-2094] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.GeneralMoleculeChromInfo RENAME COLUMN PeptideId TO GeneralMoleculeId
2016-04-07 12:53:22 CEST [3782-2095] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMoleculeChromInfo ADD CONSTRAINT FK_ChromInfo_GMId FOREIGN KEY (GeneralMoleculeId) REFERENCES targetedms.GeneralMolecule(Id)
2016-04-07 12:53:22 CEST [3782-2096] postgres@labkey LOG:  execute <unnamed>: 
	ALTER INDEX targetedms.PK_PeptideChromInfo RENAME TO PK_GMChromInfoId
2016-04-07 12:53:22 CEST [3782-2097] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GeneralMoleculeChromInfo_GMId ON targetedms.GeneralMoleculeChromInfo(GeneralMoleculeId)
2016-04-07 12:53:22 CEST [3782-2098] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.PeptideAnnotation RENAME TO GeneralMoleculeAnnotation
2016-04-07 12:53:22 CEST [3782-2099] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.GeneralMoleculeAnnotation RENAME COLUMN PeptideId TO GeneralMoleculeId
2016-04-07 12:53:22 CEST [3782-2100] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMoleculeAnnotation ADD CONSTRAINT FK_GMAnnotation_GMId FOREIGN KEY (GeneralMoleculeId) REFERENCES targetedms.GeneralMolecule(Id)
2016-04-07 12:53:22 CEST [3782-2101] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GeneralMoleculeAnnotation_GeneralMoleculeId ON targetedms.GeneralMoleculeAnnotation(GeneralMoleculeId)
2016-04-07 12:53:22 CEST [3782-2102] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.Precursor RENAME TO GeneralPrecursor
2016-04-07 12:53:22 CEST [3782-2103] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralPrecursor RENAME COLUMN PeptideId TO GeneralMoleculeId
2016-04-07 12:53:22 CEST [3782-2104] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralPrecursor ADD CONSTRAINT FK_GeneralPrecursor_GMId FOREIGN KEY (GeneralMoleculeId) REFERENCES targetedms.GeneralMolecule(Id)
2016-04-07 12:53:22 CEST [3782-2105] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Precursor_GMId ON targetedms.GeneralPrecursor (GeneralMoleculeId)
2016-04-07 12:53:22 CEST [3782-2106] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE targetedms.Precursor
	(
	  Id INT NOT NULL,
	  IsotopeLabelId INT,
	  NeutralMass REAL NOT NULL,
	  ModifiedSequence VARCHAR(100) NOT NULL,
	  DecoyMassShift REAL,
	
	  CONSTRAINT PK_Precursor_Id PRIMARY KEY (Id),
	  CONSTRAINT FK_Precursor_Id FOREIGN KEY (Id) REFERENCES targetedms.GeneralPrecursor(Id),
	  CONSTRAINT FK_Precursor_IsotopeLabel FOREIGN KEY (IsotopeLabelId) REFERENCES targetedms.IsotopeLabel (Id)
	)
2016-04-07 12:53:22 CEST [3782-2107] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX IX_Precursor_Id ON targetedms.Precursor(Id)
2016-04-07 12:53:22 CEST [3782-2108] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO targetedms.Precursor(
	  Id,
	  IsotopeLabelId,
	  NeutralMass,
	  ModifiedSequence,
	  DecoyMassShift) (SELECT
	                     gp.Id,
	                     gp.IsotopeLabelId,
	                     gp.NeutralMass,
	                     gp.ModifiedSequence,
	                     gp.DecoyMassShift FROM targetedms.GeneralPrecursor gp
	                     WHERE gp.ModifiedSequence IS NOT NULL)
2016-04-07 12:53:22 CEST [3782-2109] postgres@labkey LOG:  execute <unnamed>:  
	
	
	
	ALTER TABLE targetedms.GeneralPrecursor DROP COLUMN IsotopeLabelId
2016-04-07 12:53:22 CEST [3782-2110] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralPrecursor DROP COLUMN NeutralMass
2016-04-07 12:53:22 CEST [3782-2111] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralPrecursor DROP COLUMN ModifiedSequence
2016-04-07 12:53:22 CEST [3782-2112] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralPrecursor DROP COLUMN DecoyMassShift
2016-04-07 12:53:22 CEST [3782-2113] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE targetedms.MoleculePrecursor
	(
	  Id integer NOT NULL,
	
	  CONSTRAINT PK_MoleculePrecursorId PRIMARY KEY (Id),
	  CONSTRAINT FK_Id FOREIGN KEY (Id) REFERENCES targetedms.GeneralPrecursor (Id)
	)
2016-04-07 12:53:22 CEST [3782-2114] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.PrecursorChromInfo ADD CONSTRAINT FK_PrecursorChromInfo_PrecursorId FOREIGN KEY (PrecursorId) REFERENCES targetedms.GeneralPrecursor(Id)
2016-04-07 12:53:22 CEST [3782-2115] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo DROP CONSTRAINT FK_PrecursorChromInfo_Precursor
2016-04-07 12:53:22 CEST [3782-2116] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PrecursorAnnotation ADD CONSTRAINT FK_PrecursorAnnotation_PrecursorId FOREIGN KEY (PrecursorId) REFERENCES targetedms.GeneralPrecursor(Id)
2016-04-07 12:53:22 CEST [3782-2117] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorAnnotation DROP CONSTRAINT FK_PrecursorAnnotation_Precursor
2016-04-07 12:53:22 CEST [3782-2118] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PrecursorLibInfo ADD CONSTRAINT FK_PrecursorLibInfo_PrecursorId FOREIGN KEY (PrecursorId) REFERENCES targetedms.GeneralPrecursor(Id)
2016-04-07 12:53:22 CEST [3782-2119] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorLibInfo DROP CONSTRAINT FK_PrecursorLibInfo_Precursor
2016-04-07 12:53:22 CEST [3782-2120] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.Transition RENAME TO GeneralTransition
2016-04-07 12:53:22 CEST [3782-2121] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.GeneralTransition RENAME COLUMN PrecursorId TO GeneralPrecursorId
2016-04-07 12:53:22 CEST [3782-2122] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP CONSTRAINT FK_Transition_Precursor
2016-04-07 12:53:22 CEST [3782-2123] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition ADD CONSTRAINT FK_GeneralTransition_GPId FOREIGN KEY (GeneralPrecursorId) REFERENCES targetedms.GeneralPrecursor(Id)
2016-04-07 12:53:22 CEST [3782-2124] postgres@labkey LOG:  execute <unnamed>: 
	
	
	CREATE TABLE targetedms.Transition
	(
	  Id INT NOT NULL,
	  NeutralMass double precision,
	  NeutralLossMass double precision,
	  FragmentOrdinal integer,
	  CleavageAa character(1),
	  LibraryRank integer,
	  LibraryIntensity real,
	  DecoyMassShift real,
	  MeasuredIonName character varying(20),
	  CONSTRAINT PK_Transition_Id PRIMARY KEY (Id),
	  CONSTRAINT FK_Transition_Id FOREIGN KEY (Id) REFERENCES targetedms.GeneralTransition(Id)
	)
2016-04-07 12:53:23 CEST [3782-2125] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO targetedms.Transition(
	  Id,
	  NeutralMass,
	  NeutralLossMass,
	  FragmentOrdinal,
	  CleavageAa,
	  LibraryRank,
	  LibraryIntensity,
	  DecoyMassShift,
	  MeasuredIonName) (SELECT
	                      gt.Id,
	                      gt.NeutralMass,
	                      gt.NeutralLossMass,
	                      gt.FragmentOrdinal,
	                      gt.CleavageAa,
	                      gt.LibraryRank,
	                      gt.LibraryIntensity,
	                      gt.DecoyMassShift,
	                      gt.MeasuredIonName FROM targetedms.GeneralTransition gt)
2016-04-07 12:53:23 CEST [3782-2126] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN NeutralMass
2016-04-07 12:53:23 CEST [3782-2127] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN NeutralLossMass
2016-04-07 12:53:23 CEST [3782-2128] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN FragmentOrdinal
2016-04-07 12:53:23 CEST [3782-2129] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN CleavageAa
2016-04-07 12:53:23 CEST [3782-2130] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN LibraryRank
2016-04-07 12:53:23 CEST [3782-2131] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN LibraryIntensity
2016-04-07 12:53:23 CEST [3782-2132] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN DecoyMassShift
2016-04-07 12:53:23 CEST [3782-2133] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition DROP COLUMN MeasuredIonName
2016-04-07 12:53:23 CEST [3782-2134] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.GeneralTransition ADD COLUMN ExplicitCollisionEnergy DOUBLE PRECISION
2016-04-07 12:53:23 CEST [3782-2135] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition ADD COLUMN SLens DOUBLE PRECISION
2016-04-07 12:53:23 CEST [3782-2136] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition ADD COLUMN ConeVoltage DOUBLE PRECISION
2016-04-07 12:53:23 CEST [3782-2137] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition ADD COLUMN ExplicitCompensationVoltage DOUBLE PRECISION
2016-04-07 12:53:23 CEST [3782-2138] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition ADD COLUMN ExplicitDeclusteringPotential DOUBLE PRECISION
2016-04-07 12:53:23 CEST [3782-2139] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition ADD COLUMN ExplicitDriftTimeMSec DOUBLE PRECISION
2016-04-07 12:53:23 CEST [3782-2140] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralTransition ADD COLUMN ExplicitDriftTimeHighEnergyOffsetMSec DOUBLE PRECISION
2016-04-07 12:53:23 CEST [3782-2141] postgres@labkey LOG:  execute <unnamed>: 
	
	
	ALTER TABLE targetedms.MoleculeTransition ADD CONSTRAINT FK_MoleculeTransition_GTId FOREIGN KEY (TransitionId) REFERENCES targetedms.GeneralTransition(Id)
2016-04-07 12:53:23 CEST [3782-2142] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.MoleculeTransition DROP CONSTRAINT FK_MoleculeTransition_Transition
2016-04-07 12:53:23 CEST [3782-2143] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.TransitionChromInfo ADD CONSTRAINT FK_TransitionChromInfo_GTId FOREIGN KEY (TransitionId) REFERENCES targetedms.GeneralTransition(Id)
2016-04-07 12:53:23 CEST [3782-2144] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionChromInfo DROP CONSTRAINT FK_TransitionChromInfo_Transition
2016-04-07 12:53:23 CEST [3782-2145] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.TransitionAnnotation ADD CONSTRAINT FK_TransitionAnnotation_GTId FOREIGN KEY (TransitionId) REFERENCES targetedms.GeneralTransition(Id)
2016-04-07 12:53:23 CEST [3782-2146] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.TransitionAnnotation DROP CONSTRAINT FK_TransitionAnnotation_Transition
2016-04-07 12:53:23 CEST [3782-2147] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.GeneralMoleculeChromInfo DROP CONSTRAINT FK_PeptideChromInfo_SampleFile
2016-04-07 12:53:23 CEST [3782-2148] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMoleculeChromInfo ADD CONSTRAINT FK_GMChromInfo_SampleFile FOREIGN KEY (SampleFileId) REFERENCES targetedms.SampleFile(Id)
2016-04-07 12:53:23 CEST [3782-2149] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX targetedms.IX_PeptideChromInfo_PeptideId
2016-04-07 12:53:23 CEST [3782-2150] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_GMChromInfo_SampleFileId ON targetedms.GeneralMoleculeChromInfo(samplefileid)
2016-04-07 12:53:23 CEST [3782-2151] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX targetedms.IX_PeptideChromInfo_SampleFileId
2016-04-07 12:53:23 CEST [3782-2152] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.GeneralMoleculeAnnotation DROP CONSTRAINT UQ_PeptideAnnotation_Name_Peptide
2016-04-07 12:53:23 CEST [3782-2153] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.GeneralMoleculeAnnotation ADD CONSTRAINT UQ_GMAnnotation_Name_GMId UNIQUE (Name, GeneralMoleculeId)
2016-04-07 12:53:23 CEST [3782-2154] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX targetedms.IX_PeptideAnnotation_PeptideId
2016-04-07 12:53:23 CEST [3782-2155] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER INDEX targetedms.PK_PeptideAnnotation RENAME TO PK_GMAnnotation
2016-04-07 12:53:23 CEST [3782-2156] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PrecursorChromInfo RENAME COLUMN PeptideChromInfoId TO GeneralMoleculeChromInfoId
2016-04-07 12:53:23 CEST [3782-2157] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo DROP CONSTRAINT FK_PrecursorChromInfo_PeptideChromInfo
2016-04-07 12:53:23 CEST [3782-2158] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PrecursorChromInfo ADD CONSTRAINT FK_PrecursorChromInfo_GMChromInfo FOREIGN KEY (GeneralMoleculeChromInfoId) REFERENCES targetedms.GeneralMoleculeChromInfo(Id)
2016-04-07 12:53:23 CEST [3782-2159] postgres@labkey LOG:  execute <unnamed>: 
	DROP INDEX targetedms.IX_PrecursorChromInfo_PeptideChromInfoId
2016-04-07 12:53:23 CEST [3782-2160] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_PrecursorChromInfo_GeneralMoleculeChromInfoId ON targetedms.PrecursorChromInfo (GeneralMoleculeChromInfoId)
2016-04-07 12:53:23 CEST [3782-2161] postgres@labkey LOG:  execute <unnamed>: 
	
	DROP INDEX targetedms.IX_Precursor_PeptideId
2016-04-07 12:53:23 CEST [3782-2162] postgres@labkey LOG:  execute <unnamed>: 
	
	ALTER TABLE targetedms.PeptideIsotopeModification ADD CONSTRAINT FK_PeptideIsotopeModification_PeptideId_GMId FOREIGN KEY (PeptideId) REFERENCES targetedms.GeneralMolecule(Id)
2016-04-07 12:53:23 CEST [3782-2163] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.PeptideStructuralModification ADD CONSTRAINT FK_PeptideStructuralModification_PeptideId_GMId FOREIGN KEY (PeptideId) REFERENCES targetedms.GeneralMolecule(Id)
2016-04-07 12:53:23 CEST [3782-2164] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Precursor_IsotopeLabelId ON targetedms.Precursor (IsotopeLabelId)
2016-04-07 12:53:23 CEST [3782-2165] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.Runs ADD COLUMN DocumentGUID ENTITYID
2016-04-07 12:53:23 CEST [3782-2166] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.moleculeprecursor ADD COLUMN IonFormula VARCHAR(100)
2016-04-07 12:53:23 CEST [3782-2167] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.moleculeprecursor ADD COLUMN CustomIonName VARCHAR(100)
2016-04-07 12:53:23 CEST [3782-2168] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.moleculeprecursor ADD COLUMN MassMonoisotopic DOUBLE PRECISION NOT NULL
2016-04-07 12:53:23 CEST [3782-2169] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.moleculeprecursor ADD COLUMN MassAverage DOUBLE PRECISION NOT NULL
2016-04-07 12:53:23 CEST [3782-2170] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE targetedms.Precursor ALTER COLUMN ModifiedSequence TYPE VARCHAR(300)
2016-04-07 12:53:23 CEST [3782-2171] postgres@labkey LOG:  execute <unnamed>: 
	UPDATE targetedms.Peptide SET Sequence='' WHERE Sequence IS NULL
2016-04-07 12:53:23 CEST [3782-2172] postgres@labkey LOG:  execute <unnamed>: 
	ALTER TABLE targetedms.Peptide ALTER COLUMN Sequence SET NOT NULL
2016-04-07 12:53:23 CEST [3782-2173] postgres@labkey LOG:  execute S_16: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:23 CEST [3782-2174] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:23.276', $2 = '0', $3 = '2016-04-07 12:53:23.276', $4 = '0', $5 = '2016-04-07 12:53:23.276', $6 = 'TargetedMS', $7 = 'targetedms-15.30-16.10.sql'
2016-04-07 12:53:23 CEST [3782-2175] postgres@labkey LOG:  execute S_148: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:53:23 CEST [3782-2176] postgres@labkey DETAIL:  parameters: $1 = 'TargetedMS', $2 = 'org.labkey.targetedms.TargetedMSModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:53:23 CEST [3787-15] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA audit
2016-04-07 12:53:23 CEST [3787-16] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE audit.AuditLog
	(
	    RowId SERIAL,
	    Key1 VARCHAR(1000) NULL,
	    Key2 VARCHAR(1000) NULL,
	    Key3 VARCHAR(1000) NULL,
	    IntKey1 INT NULL,
	    IntKey2 INT NULL,
	    IntKey3 INT NULL,
	    Comment VARCHAR(500),
	    EventType VARCHAR(64),
	    CreatedBy USERID NOT NULL,
	    Created TIMESTAMP,
	    ContainerId ENTITYID NOT NULL,
	    EntityId ENTITYID NULL,
	    Lsid LSIDtype,
	    ProjectId ENTITYID,
	    ImpersonatedBy USERID NULL,
	
	    CONSTRAINT PK_AuditLog PRIMARY KEY (RowId)
	)
2016-04-07 12:53:23 CEST [3787-17] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_Audit_Container ON audit.AuditLog(ContainerId)
2016-04-07 12:53:23 CEST [3787-18] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	CREATE INDEX IX_AuditLog_IntKey1 ON audit.AuditLog(IntKey1)
2016-04-07 12:53:23 CEST [3787-19] postgres@labkey LOG:  execute <unnamed>: 
	CREATE INDEX IX_AuditLog_EventType_Created ON audit.AuditLog(EventType, Created)
2016-04-07 12:53:23 CEST [3787-20] postgres@labkey LOG:  execute <unnamed>: 
	CLUSTER audit.AuditLog USING IX_AuditLog_EventType_Created
2016-04-07 12:53:23 CEST [3787-21] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:23 CEST [3787-22] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:23.931', $2 = '0', $3 = '2016-04-07 12:53:23.931', $4 = '0', $5 = '2016-04-07 12:53:23.931', $6 = 'Audit', $7 = 'audit-0.00-12.30.sql'
2016-04-07 12:53:23 CEST [3787-23] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:23 CEST [3787-24] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:24', $2 = '0', $3 = '2016-04-07 12:53:24', $4 = '0', $5 = '2016-04-07 12:53:24', $6 = 'Audit', $7 = 'audit-13.30-14.10.sql'
2016-04-07 12:53:24 CEST [3787-25] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:53:24 CEST [3787-26] postgres@labkey DETAIL:  parameters: $1 = 'Audit', $2 = 'org.labkey.audit.AuditModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:53:24 CEST [3787-27] postgres@labkey LOG:  execute <unnamed>: CREATE SCHEMA elispotlk
2016-04-07 12:53:24 CEST [3787-28] postgres@labkey LOG:  execute <unnamed>: 
	CREATE SCHEMA elispotantigen
2016-04-07 12:53:24 CEST [3787-29] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE TABLE elispotlk.rundata
	(
	    RowId SERIAL NOT NULL,
	    RunId INT NOT NULL,
	    SpecimenLsid lsidtype NOT NULL,
	    AntigenLsid lsidtype,
	    SpotCount REAL,
	    WellgroupName VARCHAR(4000),
	    WellgroupLocation VARCHAR(4000),
	    NormalizedSpotCount REAL,
	    AntigenWellgroupName VARCHAR(4000),
	    Analyte VARCHAR(4000),
	    Activity DOUBLE PRECISION,
	    Intensity DOUBLE PRECISION,
	
	    ObjectUri VARCHAR(300),
	    ObjectId INT NOT NULL,
	
	    CONSTRAINT pk_elispot_rundata PRIMARY KEY (RowId),
	    CONSTRAINT fk_elispotrundata_experimentrun FOREIGN KEY (RunId)
	      REFERENCES exp.experimentrun (RowId) MATCH SIMPLE
	      ON UPDATE NO ACTION ON DELETE NO ACTION,
	    CONSTRAINT fk_elispotrundata_specimenlsid FOREIGN KEY (Specimenlsid)
	      REFERENCES exp.material (Lsid)
	      ON UPDATE NO ACTION ON DELETE NO ACTION
	)
2016-04-07 12:53:24 CEST [3787-30] postgres@labkey LOG:  execute <unnamed>: 
	
	CREATE INDEX idx_elispotrundata_runid ON elispotlk.rundata(RunId)
2016-04-07 12:53:24 CEST [3787-31] postgres@labkey LOG:  execute <unnamed>: 
	
	
	INSERT INTO elispotlk.rundata (RunId, Specimenlsid, SpotCount, WellgroupName, WellgroupLocation, NormalizedSpotCount, AntigenWellgroupName, ObjectUri, ObjectId)
	SELECT
	    RunId,SpecimenLSID, SpotCount, WellGroupName, WellgroupLocation, NormalizedSpotCount,
	    CASE WHEN AntigenWellgroupNameTemp IS NULL THEN AntigenName ELSE AntigenWellgroupNameTemp END AS AntigenWellgroupName,
	    ObjectURI, ObjectId
	FROM (
		SELECT
			(SELECT RunId FROM exp.Data d, exp.Object parent WHERE d.LSID = parent.ObjectURI and parent.ObjectId = o.OwnerObjectId) AS RunId,
	
			(SELECT StringValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:SpecimenLsid' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS SpecimenLSID,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:SpotCount' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS SpotCount,
			(SELECT StringValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:WellgroupName' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS WellGroupName,
			(SELECT StringValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:WellgroupLocation' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS WellgroupLocation,
			(SELECT FloatValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
				WHERE pd.PropertyURI LIKE '%:NormalizedSpotCount' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS NormalizedSpotCount,
	        (SELECT StringValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
	            WHERE pd.PropertyURI LIKE '%:AntigenWellgroupName' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS AntigenWellgroupNameTemp,
	        (SELECT StringValue FROM exp.ObjectProperty op, exp.PropertyDescriptor pd
	            WHERE pd.PropertyURI LIKE '%:AntigenName' AND op.PropertyId = pd.PropertyId AND op.ObjectId = o.ObjectId) AS AntigenName,
			ObjectURI,
			ObjectId
		FROM exp.Object o WHERE ObjectURI LIKE '%ElispotAssayDataRow%') x
		WHERE specimenlsid IS NOT NULL AND RunID IS NOT NULL
2016-04-07 12:53:24 CEST [3787-32] postgres@labkey LOG:  execute <unnamed>: ALTER TABLE elispotlk.rundata ADD COLUMN Cytokine VARCHAR(4000)
2016-04-07 12:53:24 CEST [3787-33] postgres@labkey LOG:  execute <unnamed>: 
	
	
	
	ALTER TABLE elispotlk.rundata ADD COLUMN SpotSize REAL
2016-04-07 12:53:24 CEST [3787-34] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.sqlscripts
		(_ts, createdby, created, modifiedby, modified, modulename, filename)
		VALUES ($1, $2, $3, $4, $5, $6, $7)
2016-04-07 12:53:24 CEST [3787-35] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:24.448', $2 = '0', $3 = '2016-04-07 12:53:24.448', $4 = '0', $5 = '2016-04-07 12:53:24.448', $6 = 'ELISpotAssay', $7 = 'elispotlk-15.10-15.20.sql'
2016-04-07 12:53:24 CEST [3787-36] postgres@labkey LOG:  execute <unnamed>: INSERT INTO core.modules
		(name, classname, installedversion, autouninstall, schemas)
		VALUES ($1, $2, $3, $4, NULL)
2016-04-07 12:53:24 CEST [3787-37] postgres@labkey DETAIL:  parameters: $1 = 'ELISpotAssay', $2 = 'org.labkey.elispot.ElispotModule', $3 = '16.1000000000000014', $4 = 'f'
2016-04-07 12:53:24 CEST [3787-38] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-39] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'core,prop,test,temp', $3 = 'Core'
2016-04-07 12:53:24 CEST [3787-40] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-41] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'query,junit', $3 = 'Query'
2016-04-07 12:53:24 CEST [3787-42] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=NULL
		WHERE name=$2
2016-04-07 12:53:24 CEST [3787-43] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'FCSExpress'
2016-04-07 12:53:24 CEST [3787-44] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-45] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'search,umls', $3 = 'Search'
2016-04-07 12:53:24 CEST [3787-46] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=NULL
		WHERE name=$2
2016-04-07 12:53:24 CEST [3787-47] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'Wiki'
2016-04-07 12:53:24 CEST [3787-48] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-49] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'issues', $3 = 'Issues'
2016-04-07 12:53:24 CEST [3787-50] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-51] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'comm', $3 = 'Announcements'
2016-04-07 12:53:24 CEST [3787-52] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=NULL
		WHERE name=$2
2016-04-07 12:53:24 CEST [3787-53] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'BigIron'
2016-04-07 12:53:24 CEST [3787-54] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-55] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'pipeline', $3 = 'Pipeline'
2016-04-07 12:53:24 CEST [3787-56] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-57] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'exp', $3 = 'Experiment'
2016-04-07 12:53:24 CEST [3787-58] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-59] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'flow', $3 = 'Flow'
2016-04-07 12:53:24 CEST [3787-60] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-61] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'microarray', $3 = 'Microarray'
2016-04-07 12:53:24 CEST [3787-62] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-63] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'filecontent', $3 = 'FileContent'
2016-04-07 12:53:24 CEST [3787-64] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-65] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'list', $3 = 'List'
2016-04-07 12:53:24 CEST [3787-66] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-67] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'ms2,prot', $3 = 'MS2'
2016-04-07 12:53:24 CEST [3787-68] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-69] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'ms1', $3 = 'MS1'
2016-04-07 12:53:24 CEST [3787-70] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-71] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'survey', $3 = 'Survey'
2016-04-07 12:53:24 CEST [3787-72] postgres@labkey LOG:  execute S_218: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3787-73] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'dataintegration', $3 = 'DataIntegration'
2016-04-07 12:53:24 CEST [3782-2177] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:24 CEST [3782-2178] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'studydataset,study,assayresult,specimentables,studydesign', $3 = 'Study'
2016-04-07 12:53:25 CEST [3782-2179] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:25 CEST [3782-2180] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'luminex', $3 = 'Luminex'
2016-04-07 12:53:25 CEST [3782-2181] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=NULL
		WHERE name=$2
2016-04-07 12:53:25 CEST [3782-2182] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'Visualization'
2016-04-07 12:53:25 CEST [3782-2183] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:25 CEST [3782-2184] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'nab,nabvirus', $3 = 'Nab'
2016-04-07 12:53:25 CEST [3782-2185] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=NULL
		WHERE name=$2
2016-04-07 12:53:25 CEST [3782-2186] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'Elisa'
2016-04-07 12:53:25 CEST [3782-2187] postgres@labkey LOG:  execute <unnamed>: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:25 CEST [3782-2188] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'targetedms', $3 = 'TargetedMS'
2016-04-07 12:53:25 CEST [3782-2189] postgres@labkey LOG:  execute S_360: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:25 CEST [3782-2190] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'audit', $3 = 'Audit'
2016-04-07 12:53:25 CEST [3782-2191] postgres@labkey LOG:  execute S_360: UPDATE core.modules
		SET autouninstall=$1, schemas=$2
		WHERE name=$3
2016-04-07 12:53:25 CEST [3782-2192] postgres@labkey DETAIL:  parameters: $1 = 'f', $2 = 'elispotlk', $3 = 'ELISpotAssay'
2016-04-07 12:53:25 CEST [3782-2193] postgres@labkey LOG:  execute <unnamed>: DELETE FROM core.principals
	WHERE Container NOT IN (SELECT EntityId FROM core.containers)
2016-04-07 12:53:25 CEST [3782-2194] postgres@labkey LOG:  execute <unnamed>: DELETE FROM core.principals
	WHERE Type='g' AND Container NOT IN (SELECT EntityId FROM core.containers
		WHERE Parent=$1 OR Parent IS NULL)
2016-04-07 12:53:25 CEST [3782-2195] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:25 CEST [3782-2196] postgres@labkey LOG:  execute <unnamed>: DELETE FROM core.members
	WHERE GroupId NOT IN (SELECT UserId FROM core.principals)
2016-04-07 12:53:25 CEST [3782-2197] postgres@labkey LOG:  execute <unnamed>: DELETE FROM core.members
	WHERE UserId NOT IN (SELECT UserId FROM core.principals)
2016-04-07 12:53:25 CEST [3782-2198] postgres@labkey LOG:  execute S_366/C_367: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:25 CEST [3782-2199] postgres@labkey DETAIL:  parameters: $1 = 'UserAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-UserAuditDomain-auditLog.Folder-3:UserAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:25.274'
2016-04-07 12:53:25 CEST [3782-2200] postgres@labkey LOG:  execute S_380/C_381: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:25 CEST [3782-2201] postgres@labkey DETAIL:  parameters: $1 = 'UserAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-UserAuditDomain-auditLog.Folder-3:UserAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:25.514', $6 = '1'
2016-04-07 12:53:25 CEST [3782-2202] postgres@labkey LOG:  execute S_385/C_386: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:25 CEST [3782-2203] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-UserAuditDomain-audit.Folder-3:UserAuditEvent#User', $2 = NULL, $3 = 'User', $4 = 'User', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-UserAuditDomain-audit.Folder-3:UserAuditEvent#User', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:25 CEST [3782-2204] postgres@labkey LOG:  execute S_389/C_390: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:25 CEST [3782-2205] postgres@labkey DETAIL:  parameters: $1 = '1', $2 = '1', $3 = 'f', $4 = '0', $5 = '1', $6 = '1'
2016-04-07 12:53:25 CEST [3782-2206] postgres@labkey LOG:  execute S_393/C_394: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:25 CEST [3782-2207] postgres@labkey DETAIL:  parameters: $1 = '1'
2016-04-07 12:53:25 CEST [3782-2208] postgres@labkey LOG:  execute S_396/C_397: CREATE TABLE audit.c3d1_userauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "user" INTEGER)
2016-04-07 12:53:25 CEST [3782-2209] postgres@labkey LOG:  execute S_398/C_399: ALTER TABLE audit.c3d1_userauditdomain ADD CONSTRAINT c3d1_userauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:25 CEST [3782-2210] postgres@labkey LOG:  execute S_400/C_401: CREATE  INDEX c3d1_userauditdomain_User ON audit.c3d1_userauditdomain ("user")
2016-04-07 12:53:25 CEST [3782-2211] postgres@labkey LOG:  execute S_402/C_403: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:25 CEST [3782-2212] postgres@labkey DETAIL:  parameters: $1 = 'UserAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-UserAuditDomain-auditLog.Folder-3:UserAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d1_userauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:25.808', $8 = '1'
2016-04-07 12:53:25 CEST [3782-2213] postgres@labkey LOG:  execute S_366/C_405: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:25 CEST [3782-2214] postgres@labkey DETAIL:  parameters: $1 = 'GroupAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-auditLog.Folder-3:GroupAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:25.84'
2016-04-07 12:53:25 CEST [3782-2215] postgres@labkey LOG:  execute S_380/C_413: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:25 CEST [3782-2216] postgres@labkey DETAIL:  parameters: $1 = 'GroupAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-auditLog.Folder-3:GroupAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:25.864', $6 = '2'
2016-04-07 12:53:25 CEST [3782-2217] postgres@labkey LOG:  execute S_385/C_416: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:25 CEST [3782-2218] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-audit.Folder-3:GroupAuditEvent#Group', $2 = NULL, $3 = 'Group', $4 = 'Group', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-audit.Folder-3:GroupAuditEvent#Group', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:25 CEST [3782-2219] postgres@labkey LOG:  execute S_389/C_418: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:25 CEST [3782-2220] postgres@labkey DETAIL:  parameters: $1 = '2', $2 = '2', $3 = 'f', $4 = '0', $5 = '2', $6 = '2'
2016-04-07 12:53:25 CEST [3782-2221] postgres@labkey LOG:  execute S_393/C_420: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:25 CEST [3782-2222] postgres@labkey DETAIL:  parameters: $1 = '2'
2016-04-07 12:53:25 CEST [3782-2223] postgres@labkey LOG:  execute S_385/C_422: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:25 CEST [3782-2224] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-audit.Folder-3:GroupAuditEvent#User', $2 = NULL, $3 = 'User', $4 = 'User', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-audit.Folder-3:GroupAuditEvent#User', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:25 CEST [3782-2225] postgres@labkey LOG:  execute S_389/C_424: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:25 CEST [3782-2226] postgres@labkey DETAIL:  parameters: $1 = '3', $2 = '2', $3 = 'f', $4 = '1', $5 = '3', $6 = '2'
2016-04-07 12:53:25 CEST [3782-2227] postgres@labkey LOG:  execute S_393/C_426: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:25 CEST [3782-2228] postgres@labkey DETAIL:  parameters: $1 = '3'
2016-04-07 12:53:25 CEST [3782-2229] postgres@labkey LOG:  execute S_385/C_428: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:25 CEST [3782-2230] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-audit.Folder-3:GroupAuditEvent#ResourceEntityId', $2 = NULL, $3 = 'ResourceEntityId', $4 = 'ResourceEntityId', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-audit.Folder-3:GroupAuditEvent#ResourceEntityId', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:25 CEST [3782-2231] postgres@labkey LOG:  execute S_389/C_430: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:25 CEST [3782-2232] postgres@labkey DETAIL:  parameters: $1 = '4', $2 = '2', $3 = 'f', $4 = '2', $5 = '4', $6 = '2'
2016-04-07 12:53:25 CEST [3782-2233] postgres@labkey LOG:  execute S_393/C_432: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:25 CEST [3782-2234] postgres@labkey DETAIL:  parameters: $1 = '4'
2016-04-07 12:53:25 CEST [3782-2235] postgres@labkey LOG:  execute S_434/C_435: CREATE TABLE audit.c3d2_groupauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "group" INTEGER, "user" INTEGER, "resourceentityid" VARCHAR (4000))
2016-04-07 12:53:25 CEST [3782-2236] postgres@labkey LOG:  execute S_436/C_437: ALTER TABLE audit.c3d2_groupauditdomain ADD CONSTRAINT c3d2_groupauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:25 CEST [3782-2237] postgres@labkey LOG:  execute S_438/C_439: CREATE  INDEX c3d2_groupauditdomain_User ON audit.c3d2_groupauditdomain ("user")
2016-04-07 12:53:26 CEST [3782-2238] postgres@labkey LOG:  execute S_440/C_441: CREATE  INDEX c3d2_groupauditdomain_Group ON audit.c3d2_groupauditdomain ("group")
2016-04-07 12:53:26 CEST [3782-2239] postgres@labkey LOG:  execute S_402/C_442: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:26 CEST [3782-2240] postgres@labkey DETAIL:  parameters: $1 = 'GroupAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-auditLog.Folder-3:GroupAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d2_groupauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:26.109', $8 = '2'
2016-04-07 12:53:26 CEST [3782-2241] postgres@labkey LOG:  execute S_366/C_444: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:26 CEST [3782-2242] postgres@labkey DETAIL:  parameters: $1 = 'AttachmentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-auditLog.Folder-3:AttachmentAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:26.15'
2016-04-07 12:53:26 CEST [3782-2243] postgres@labkey LOG:  execute S_380/C_452: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:26 CEST [3782-2244] postgres@labkey DETAIL:  parameters: $1 = 'AttachmentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-auditLog.Folder-3:AttachmentAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:26.175', $6 = '3'
2016-04-07 12:53:26 CEST [3782-2245] postgres@labkey LOG:  execute S_385/C_455: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2246] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-audit.Folder-3:AttachmentAuditEvent#AttachmentParentEntityId', $2 = NULL, $3 = 'AttachmentParentEntityId', $4 = 'AttachmentParentEntityId', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-audit.Folder-3:AttachmentAuditEvent#AttachmentParentEntityId', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2247] postgres@labkey LOG:  execute S_389/C_457: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2248] postgres@labkey DETAIL:  parameters: $1 = '5', $2 = '3', $3 = 'f', $4 = '0', $5 = '5', $6 = '3'
2016-04-07 12:53:26 CEST [3782-2249] postgres@labkey LOG:  execute S_393/C_459: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2250] postgres@labkey DETAIL:  parameters: $1 = '5'
2016-04-07 12:53:26 CEST [3782-2251] postgres@labkey LOG:  execute S_385/C_461: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2252] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-audit.Folder-3:AttachmentAuditEvent#Attachment', $2 = NULL, $3 = 'Attachment', $4 = 'Attachment', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-audit.Folder-3:AttachmentAuditEvent#Attachment', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2253] postgres@labkey LOG:  execute S_389/C_463: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2254] postgres@labkey DETAIL:  parameters: $1 = '6', $2 = '3', $3 = 't', $4 = '1', $5 = '6', $6 = '3'
2016-04-07 12:53:26 CEST [3782-2255] postgres@labkey LOG:  execute S_393/C_465: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2256] postgres@labkey DETAIL:  parameters: $1 = '6'
2016-04-07 12:53:26 CEST [3782-2257] postgres@labkey LOG:  execute S_467/C_468: CREATE TABLE audit.c3d3_attachmentauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "attachmentparententityid" VARCHAR (4000), "attachment" VARCHAR (4000))
2016-04-07 12:53:26 CEST [3782-2258] postgres@labkey LOG:  execute S_469/C_470: ALTER TABLE audit.c3d3_attachmentauditdomain ADD CONSTRAINT c3d3_attachmentauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:26 CEST [3782-2259] postgres@labkey LOG:  execute S_471/C_472: CREATE  INDEX c3d3_attachmentauditdomain_AttachmentParentEntityId ON audit.c3d3_attachmentauditdomain ("attachmentparententityid")
2016-04-07 12:53:26 CEST [3782-2260] postgres@labkey LOG:  execute S_402/C_473: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:26 CEST [3782-2261] postgres@labkey DETAIL:  parameters: $1 = 'AttachmentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-auditLog.Folder-3:AttachmentAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d3_attachmentauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:26.332', $8 = '3'
2016-04-07 12:53:26 CEST [3782-2262] postgres@labkey LOG:  execute S_366/C_475: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:26 CEST [3782-2263] postgres@labkey DETAIL:  parameters: $1 = 'ContainerAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ContainerAuditDomain-auditLog.Folder-3:ContainerAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:26.359'
2016-04-07 12:53:26 CEST [3782-2264] postgres@labkey LOG:  execute S_366/C_482: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:26 CEST [3782-2265] postgres@labkey DETAIL:  parameters: $1 = 'FileSystemAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-auditLog.Folder-3:FileSystem', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:26.373'
2016-04-07 12:53:26 CEST [3782-2266] postgres@labkey LOG:  execute S_380/C_489: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:26 CEST [3782-2267] postgres@labkey DETAIL:  parameters: $1 = 'FileSystemAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-auditLog.Folder-3:FileSystem', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:26.393', $6 = '5'
2016-04-07 12:53:26 CEST [3782-2268] postgres@labkey LOG:  execute S_385/C_492: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2269] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-audit.Folder-3:FileSystem#ResourcePath', $2 = NULL, $3 = 'ResourcePath', $4 = 'ResourcePath', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-audit.Folder-3:FileSystem#ResourcePath', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2270] postgres@labkey LOG:  execute S_389/C_494: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2271] postgres@labkey DETAIL:  parameters: $1 = '7', $2 = '5', $3 = 'f', $4 = '0', $5 = '7', $6 = '5'
2016-04-07 12:53:26 CEST [3782-2272] postgres@labkey LOG:  execute S_393/C_496: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2273] postgres@labkey DETAIL:  parameters: $1 = '7'
2016-04-07 12:53:26 CEST [3782-2274] postgres@labkey LOG:  execute S_385/C_498: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2275] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-audit.Folder-3:FileSystem#File', $2 = NULL, $3 = 'File', $4 = 'File', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-audit.Folder-3:FileSystem#File', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2276] postgres@labkey LOG:  execute S_389/C_500: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2277] postgres@labkey DETAIL:  parameters: $1 = '8', $2 = '5', $3 = 'f', $4 = '1', $5 = '8', $6 = '5'
2016-04-07 12:53:26 CEST [3782-2278] postgres@labkey LOG:  execute S_393/C_502: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2279] postgres@labkey DETAIL:  parameters: $1 = '8'
2016-04-07 12:53:26 CEST [3782-2280] postgres@labkey LOG:  execute S_385/C_504: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2281] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-audit.Folder-3:FileSystem#Directory', $2 = NULL, $3 = 'Directory', $4 = 'Directory', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-audit.Folder-3:FileSystem#Directory', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2282] postgres@labkey LOG:  execute S_389/C_506: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2283] postgres@labkey DETAIL:  parameters: $1 = '9', $2 = '5', $3 = 'f', $4 = '2', $5 = '9', $6 = '5'
2016-04-07 12:53:26 CEST [3782-2284] postgres@labkey LOG:  execute S_393/C_508: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2285] postgres@labkey DETAIL:  parameters: $1 = '9'
2016-04-07 12:53:26 CEST [3782-2286] postgres@labkey LOG:  execute S_510/C_511: CREATE TABLE audit.c3d5_filesystemauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "resourcepath" VARCHAR (4000), "file" VARCHAR (4000), "directory" VARCHAR (4000))
2016-04-07 12:53:26 CEST [3782-2287] postgres@labkey LOG:  execute S_512/C_513: ALTER TABLE audit.c3d5_filesystemauditdomain ADD CONSTRAINT c3d5_filesystemauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:26 CEST [3782-2288] postgres@labkey LOG:  execute S_402/C_514: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:26 CEST [3782-2289] postgres@labkey DETAIL:  parameters: $1 = 'FileSystemAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-auditLog.Folder-3:FileSystem', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d5_filesystemauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:26.499', $8 = '5'
2016-04-07 12:53:26 CEST [3782-2290] postgres@labkey LOG:  execute S_366/C_516: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:26 CEST [3782-2291] postgres@labkey DETAIL:  parameters: $1 = 'FileSystemBatchAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-FileSystemBatchAuditDomain-auditLog.Folder-3:FileSystemBatch', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:26.525'
2016-04-07 12:53:26 CEST [3782-2292] postgres@labkey LOG:  execute S_366/C_523: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:26 CEST [3782-2293] postgres@labkey DETAIL:  parameters: $1 = 'ClientApiAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-auditLog.Folder-3:Client+API+Actions', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:26.541'
2016-04-07 12:53:26 CEST [3782-2294] postgres@labkey LOG:  execute S_380/C_530: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:26 CEST [3782-2295] postgres@labkey DETAIL:  parameters: $1 = 'ClientApiAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-auditLog.Folder-3:Client+API+Actions', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:26.562', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2296] postgres@labkey LOG:  execute S_385/C_533: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2297] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#Int1', $2 = NULL, $3 = 'Int1', $4 = 'Int1', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#Int1', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2298] postgres@labkey LOG:  execute S_389/C_535: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2299] postgres@labkey DETAIL:  parameters: $1 = '10', $2 = '7', $3 = 'f', $4 = '0', $5 = '10', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2300] postgres@labkey LOG:  execute S_393/C_537: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2301] postgres@labkey DETAIL:  parameters: $1 = '10'
2016-04-07 12:53:26 CEST [3782-2302] postgres@labkey LOG:  execute S_385/C_539: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2303] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#Int2', $2 = NULL, $3 = 'Int2', $4 = 'Int2', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#Int2', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2304] postgres@labkey LOG:  execute S_389/C_541: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2305] postgres@labkey DETAIL:  parameters: $1 = '11', $2 = '7', $3 = 'f', $4 = '1', $5 = '11', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2306] postgres@labkey LOG:  execute S_393/C_543: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2307] postgres@labkey DETAIL:  parameters: $1 = '11'
2016-04-07 12:53:26 CEST [3782-2308] postgres@labkey LOG:  execute S_385/C_545: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2309] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#SubType', $2 = NULL, $3 = 'SubType', $4 = 'SubType', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#SubType', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2310] postgres@labkey LOG:  execute S_389/C_547: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2311] postgres@labkey DETAIL:  parameters: $1 = '12', $2 = '7', $3 = 'f', $4 = '2', $5 = '12', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2312] postgres@labkey LOG:  execute S_393/C_549: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2313] postgres@labkey DETAIL:  parameters: $1 = '12'
2016-04-07 12:53:26 CEST [3782-2314] postgres@labkey LOG:  execute S_385/C_551: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2315] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#Int3', $2 = NULL, $3 = 'Int3', $4 = 'Int3', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#Int3', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2316] postgres@labkey LOG:  execute S_389/C_553: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2317] postgres@labkey DETAIL:  parameters: $1 = '13', $2 = '7', $3 = 'f', $4 = '3', $5 = '13', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2318] postgres@labkey LOG:  execute S_393/C_555: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2319] postgres@labkey DETAIL:  parameters: $1 = '13'
2016-04-07 12:53:26 CEST [3782-2320] postgres@labkey LOG:  execute S_385/C_557: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2321] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#String3', $2 = NULL, $3 = 'String3', $4 = 'String3', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#String3', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2322] postgres@labkey LOG:  execute S_389/C_559: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2323] postgres@labkey DETAIL:  parameters: $1 = '14', $2 = '7', $3 = 'f', $4 = '4', $5 = '14', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2324] postgres@labkey LOG:  execute S_393/C_561: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2325] postgres@labkey DETAIL:  parameters: $1 = '14'
2016-04-07 12:53:26 CEST [3782-2326] postgres@labkey LOG:  execute S_385/C_563: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2327] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#String2', $2 = NULL, $3 = 'String2', $4 = 'String2', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#String2', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2328] postgres@labkey LOG:  execute S_389/C_565: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2329] postgres@labkey DETAIL:  parameters: $1 = '15', $2 = '7', $3 = 'f', $4 = '5', $5 = '15', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2330] postgres@labkey LOG:  execute S_393/C_567: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2331] postgres@labkey DETAIL:  parameters: $1 = '15'
2016-04-07 12:53:26 CEST [3782-2332] postgres@labkey LOG:  execute S_385/C_569: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2333] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#String1', $2 = NULL, $3 = 'String1', $4 = 'String1', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-audit.Folder-3:Client+API+Actions#String1', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2334] postgres@labkey LOG:  execute S_389/C_571: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2335] postgres@labkey DETAIL:  parameters: $1 = '16', $2 = '7', $3 = 'f', $4 = '6', $5 = '16', $6 = '7'
2016-04-07 12:53:26 CEST [3782-2336] postgres@labkey LOG:  execute S_393/C_573: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2337] postgres@labkey DETAIL:  parameters: $1 = '16'
2016-04-07 12:53:26 CEST [3782-2338] postgres@labkey LOG:  execute S_575/C_576: CREATE TABLE audit.c3d7_clientapiauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "int1" INTEGER, "int2" INTEGER, "subtype" VARCHAR (4000), "int3" INTEGER, "string3" VARCHAR (4000), "string2" VARCHAR (4000), "string1" VARCHAR (4000))
2016-04-07 12:53:26 CEST [3782-2339] postgres@labkey LOG:  execute S_577/C_578: ALTER TABLE audit.c3d7_clientapiauditdomain ADD CONSTRAINT c3d7_clientapiauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:26 CEST [3782-2340] postgres@labkey LOG:  execute S_579/C_580: CREATE  INDEX c3d7_clientapiauditdomain_SubType ON audit.c3d7_clientapiauditdomain ("subtype")
2016-04-07 12:53:26 CEST [3782-2341] postgres@labkey LOG:  execute S_402/C_581: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:26 CEST [3782-2342] postgres@labkey DETAIL:  parameters: $1 = 'ClientApiAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-auditLog.Folder-3:Client+API+Actions', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d7_clientapiauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:26.744', $8 = '7'
2016-04-07 12:53:26 CEST [3782-2343] postgres@labkey LOG:  execute S_366/C_583: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:26 CEST [3782-2344] postgres@labkey DETAIL:  parameters: $1 = 'AuthenticationProviderConfigAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AuthenticationProviderConfigAuditDomain-auditLog.Folder-3:AuthenticationProviderConfiguration', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:26.773'
2016-04-07 12:53:26 CEST [3782-2345] postgres@labkey LOG:  execute S_380/C_591: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:26 CEST [3782-2346] postgres@labkey DETAIL:  parameters: $1 = 'AuthenticationProviderConfigAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AuthenticationProviderConfigAuditDomain-auditLog.Folder-3:AuthenticationProviderConfiguration', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:26.794', $6 = '8'
2016-04-07 12:53:26 CEST [3782-2347] postgres@labkey LOG:  execute S_385/C_594: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:26 CEST [3782-2348] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AuthenticationProviderConfigAuditDomain-audit.Folder-3:AuthenticationProviderConfiguration#Changes', $2 = NULL, $3 = 'Changes', $4 = 'Changes', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AuthenticationProviderConfigAuditDomain-audit.Folder-3:AuthenticationProviderConfiguration#Changes', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:26 CEST [3782-2349] postgres@labkey LOG:  execute S_389/C_596: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:26 CEST [3782-2350] postgres@labkey DETAIL:  parameters: $1 = '17', $2 = '8', $3 = 'f', $4 = '0', $5 = '17', $6 = '8'
2016-04-07 12:53:26 CEST [3782-2351] postgres@labkey LOG:  execute S_393/C_598: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:26 CEST [3782-2352] postgres@labkey DETAIL:  parameters: $1 = '17'
2016-04-07 12:53:26 CEST [3782-2353] postgres@labkey LOG:  execute S_600/C_601: CREATE TABLE audit.c3d8_authenticationproviderconfigauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "changes" VARCHAR (4000))
2016-04-07 12:53:26 CEST [3782-2354] postgres@labkey LOG:  execute S_602/C_603: ALTER TABLE audit.c3d8_authenticationproviderconfigauditdomain ADD CONSTRAINT c3d8_authenticationproviderconfigauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:26 CEST [3782-2355] postgres@labkey LOG:  execute S_402/C_604: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:26 CEST [3782-2356] postgres@labkey DETAIL:  parameters: $1 = 'AuthenticationProviderConfigAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AuthenticationProviderConfigAuditDomain-auditLog.Folder-3:AuthenticationProviderConfiguration', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d8_authenticationproviderconfigauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:26.889', $8 = '8'
2016-04-07 12:53:26 CEST [3782-2357] postgres@labkey LOG:  execute S_366/C_608: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:26 CEST [3782-2358] postgres@labkey DETAIL:  parameters: $1 = 'Users', $2 = 'urn:lsid:ijs.si:ExtensibleTable-core.Folder-3:Users', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:26.992'
2016-04-07 12:53:26 CEST [3782-2359] postgres@labkey LOG:  execute S_380/C_620: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:26 CEST [3782-2360] postgres@labkey DETAIL:  parameters: $1 = 'Users', $2 = 'urn:lsid:ijs.si:ExtensibleTable-core.Folder-3:Users', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:27', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2361] postgres@labkey LOG:  execute S_385/C_623: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2362] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef680b-dedc-1033-b8fa-6788989ded56', $2 = NULL, $3 = 'FirstName', $4 = 'FirstName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '64', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef680b-dedc-1033-b8fa-6788989ded56', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2363] postgres@labkey LOG:  execute S_389/C_625: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2364] postgres@labkey DETAIL:  parameters: $1 = '18', $2 = '9', $3 = 'f', $4 = '0', $5 = '18', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2365] postgres@labkey LOG:  execute S_393/C_628: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2366] postgres@labkey DETAIL:  parameters: $1 = '18'
2016-04-07 12:53:27 CEST [3782-2367] postgres@labkey LOG:  execute S_385/C_630: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2368] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef680d-dedc-1033-b8fa-6788989ded56', $2 = NULL, $3 = 'LastName', $4 = 'LastName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '64', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef680d-dedc-1033-b8fa-6788989ded56', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2369] postgres@labkey LOG:  execute S_389/C_632: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2370] postgres@labkey DETAIL:  parameters: $1 = '19', $2 = '9', $3 = 'f', $4 = '1', $5 = '19', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2371] postgres@labkey LOG:  execute S_393/C_634: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2372] postgres@labkey DETAIL:  parameters: $1 = '19'
2016-04-07 12:53:27 CEST [3782-2373] postgres@labkey LOG:  execute S_385/C_636: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2374] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef680f-dedc-1033-b8fa-6788989ded56', $2 = NULL, $3 = 'Phone', $4 = 'Phone', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '64', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef680f-dedc-1033-b8fa-6788989ded56', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2375] postgres@labkey LOG:  execute S_389/C_638: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2376] postgres@labkey DETAIL:  parameters: $1 = '20', $2 = '9', $3 = 'f', $4 = '2', $5 = '20', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2377] postgres@labkey LOG:  execute S_393/C_640: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2378] postgres@labkey DETAIL:  parameters: $1 = '20'
2016-04-07 12:53:27 CEST [3782-2379] postgres@labkey LOG:  execute S_385/C_642: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2380] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6811-dedc-1033-b8fa-6788989ded56', $2 = NULL, $3 = 'Mobile', $4 = 'Mobile', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '64', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6811-dedc-1033-b8fa-6788989ded56', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2381] postgres@labkey LOG:  execute S_389/C_644: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2382] postgres@labkey DETAIL:  parameters: $1 = '21', $2 = '9', $3 = 'f', $4 = '3', $5 = '21', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2383] postgres@labkey LOG:  execute S_393/C_646: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2384] postgres@labkey DETAIL:  parameters: $1 = '21'
2016-04-07 12:53:27 CEST [3782-2385] postgres@labkey LOG:  execute S_385/C_648: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2386] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6813-dedc-1033-b8fa-6788989ded56', $2 = NULL, $3 = 'Pager', $4 = 'Pager', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 't', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 'f', $23 = 'f', $24 = 'f', $25 = 'f', $26 = 'f', $27 = '64', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6813-dedc-1033-b8fa-6788989ded56', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2387] postgres@labkey LOG:  execute S_389/C_650: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2388] postgres@labkey DETAIL:  parameters: $1 = '22', $2 = '9', $3 = 'f', $4 = '4', $5 = '22', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2389] postgres@labkey LOG:  execute S_393/C_652: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2390] postgres@labkey DETAIL:  parameters: $1 = '22'
2016-04-07 12:53:27 CEST [3782-2391] postgres@labkey LOG:  execute S_385/C_654: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2392] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6815-dedc-1033-b8fa-6788989ded56', $2 = NULL, $3 = 'IM', $4 = 'IM', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 't', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 'f', $23 = 'f', $24 = 'f', $25 = 'f', $26 = 'f', $27 = '64', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6815-dedc-1033-b8fa-6788989ded56', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2393] postgres@labkey LOG:  execute S_389/C_656: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2394] postgres@labkey DETAIL:  parameters: $1 = '23', $2 = '9', $3 = 'f', $4 = '5', $5 = '23', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2395] postgres@labkey LOG:  execute S_393/C_658: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2396] postgres@labkey DETAIL:  parameters: $1 = '23'
2016-04-07 12:53:27 CEST [3782-2397] postgres@labkey LOG:  execute S_385/C_660: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2398] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6817-dedc-1033-b8fa-6788989ded56', $2 = NULL, $3 = 'Description', $4 = 'Description', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 't', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 'f', $23 = 'f', $24 = 'f', $25 = 'f', $26 = 'f', $27 = '255', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:ExtensibleTable-core-Users.Folder-3:aeef6817-dedc-1033-b8fa-6788989ded56', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2399] postgres@labkey LOG:  execute S_389/C_662: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2400] postgres@labkey DETAIL:  parameters: $1 = '24', $2 = '9', $3 = 'f', $4 = '6', $5 = '24', $6 = '9'
2016-04-07 12:53:27 CEST [3782-2401] postgres@labkey LOG:  execute S_393/C_664: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2402] postgres@labkey DETAIL:  parameters: $1 = '24'
2016-04-07 12:53:27 CEST [3782-2403] postgres@labkey LOG:  execute S_366/C_666: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:27 CEST [3782-2404] postgres@labkey DETAIL:  parameters: $1 = 'QueryAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-auditLog.Folder-3:QueryExportAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:27.049'
2016-04-07 12:53:27 CEST [3782-2405] postgres@labkey LOG:  execute S_380/C_674: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:27 CEST [3782-2406] postgres@labkey DETAIL:  parameters: $1 = 'QueryAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-auditLog.Folder-3:QueryExportAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:27.061', $6 = '10'
2016-04-07 12:53:27 CEST [3782-2407] postgres@labkey LOG:  execute S_385/C_677: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2408] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#DetailsUrl', $2 = NULL, $3 = 'DetailsUrl', $4 = 'DetailsUrl', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#DetailsUrl', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2409] postgres@labkey LOG:  execute S_389/C_679: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2410] postgres@labkey DETAIL:  parameters: $1 = '25', $2 = '10', $3 = 'f', $4 = '0', $5 = '25', $6 = '10'
2016-04-07 12:53:27 CEST [3782-2411] postgres@labkey LOG:  execute S_393/C_681: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2412] postgres@labkey DETAIL:  parameters: $1 = '25'
2016-04-07 12:53:27 CEST [3782-2413] postgres@labkey LOG:  execute S_385/C_683: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2414] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#DataRowCount', $2 = NULL, $3 = 'DataRowCount', $4 = 'DataRowCount', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#DataRowCount', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2415] postgres@labkey LOG:  execute S_389/C_685: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2416] postgres@labkey DETAIL:  parameters: $1 = '26', $2 = '10', $3 = 'f', $4 = '1', $5 = '26', $6 = '10'
2016-04-07 12:53:27 CEST [3782-2417] postgres@labkey LOG:  execute S_393/C_687: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2418] postgres@labkey DETAIL:  parameters: $1 = '26'
2016-04-07 12:53:27 CEST [3782-2419] postgres@labkey LOG:  execute S_385/C_689: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2420] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#SchemaName', $2 = NULL, $3 = 'SchemaName', $4 = 'SchemaName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#SchemaName', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2421] postgres@labkey LOG:  execute S_389/C_691: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2422] postgres@labkey DETAIL:  parameters: $1 = '27', $2 = '10', $3 = 'f', $4 = '2', $5 = '27', $6 = '10'
2016-04-07 12:53:27 CEST [3782-2423] postgres@labkey LOG:  execute S_393/C_693: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2424] postgres@labkey DETAIL:  parameters: $1 = '27'
2016-04-07 12:53:27 CEST [3782-2425] postgres@labkey LOG:  execute S_385/C_695: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2426] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#QueryName', $2 = NULL, $3 = 'QueryName', $4 = 'QueryName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-audit.Folder-3:QueryExportAuditEvent#QueryName', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2427] postgres@labkey LOG:  execute S_389/C_697: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2428] postgres@labkey DETAIL:  parameters: $1 = '28', $2 = '10', $3 = 'f', $4 = '3', $5 = '28', $6 = '10'
2016-04-07 12:53:27 CEST [3782-2429] postgres@labkey LOG:  execute S_393/C_699: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2430] postgres@labkey DETAIL:  parameters: $1 = '28'
2016-04-07 12:53:27 CEST [3782-2431] postgres@labkey LOG:  execute S_701/C_702: CREATE TABLE audit.c3d10_queryauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "detailsurl" VARCHAR (4000), "datarowcount" INTEGER, "schemaname" VARCHAR (4000), "queryname" VARCHAR (4000))
2016-04-07 12:53:27 CEST [3782-2432] postgres@labkey LOG:  execute S_703/C_704: ALTER TABLE audit.c3d10_queryauditdomain ADD CONSTRAINT c3d10_queryauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:27 CEST [3782-2433] postgres@labkey LOG:  execute S_402/C_705: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:27 CEST [3782-2434] postgres@labkey DETAIL:  parameters: $1 = 'QueryAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-auditLog.Folder-3:QueryExportAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d10_queryauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:27.189', $8 = '10'
2016-04-07 12:53:27 CEST [3782-2435] postgres@labkey LOG:  execute S_366/C_707: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:27 CEST [3782-2436] postgres@labkey DETAIL:  parameters: $1 = 'QueryUpdateAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-auditLog.Folder-3:QueryUpdateAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:27.228'
2016-04-07 12:53:27 CEST [3782-2437] postgres@labkey LOG:  execute S_380/C_715: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:27 CEST [3782-2438] postgres@labkey DETAIL:  parameters: $1 = 'QueryUpdateAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-auditLog.Folder-3:QueryUpdateAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:27.251', $6 = '11'
2016-04-07 12:53:27 CEST [3782-2439] postgres@labkey LOG:  execute S_385/C_718: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2440] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#RowPk', $2 = NULL, $3 = 'RowPk', $4 = 'RowPk', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#RowPk', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2441] postgres@labkey LOG:  execute S_389/C_720: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2442] postgres@labkey DETAIL:  parameters: $1 = '29', $2 = '11', $3 = 'f', $4 = '0', $5 = '29', $6 = '11'
2016-04-07 12:53:27 CEST [3782-2443] postgres@labkey LOG:  execute S_393/C_722: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2444] postgres@labkey DETAIL:  parameters: $1 = '29'
2016-04-07 12:53:27 CEST [3782-2445] postgres@labkey LOG:  execute S_385/C_724: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2446] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#newRecordMap', $2 = NULL, $3 = 'newRecordMap', $4 = 'newRecordMap', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#newRecordMap', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2447] postgres@labkey LOG:  execute S_389/C_726: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2448] postgres@labkey DETAIL:  parameters: $1 = '30', $2 = '11', $3 = 'f', $4 = '1', $5 = '30', $6 = '11'
2016-04-07 12:53:27 CEST [3782-2449] postgres@labkey LOG:  execute S_393/C_728: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2450] postgres@labkey DETAIL:  parameters: $1 = '30'
2016-04-07 12:53:27 CEST [3782-2451] postgres@labkey LOG:  execute S_385/C_730: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2452] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#oldRecordMap', $2 = NULL, $3 = 'oldRecordMap', $4 = 'oldRecordMap', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#oldRecordMap', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2453] postgres@labkey LOG:  execute S_389/C_732: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2454] postgres@labkey DETAIL:  parameters: $1 = '31', $2 = '11', $3 = 'f', $4 = '2', $5 = '31', $6 = '11'
2016-04-07 12:53:27 CEST [3782-2455] postgres@labkey LOG:  execute S_393/C_734: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2456] postgres@labkey DETAIL:  parameters: $1 = '31'
2016-04-07 12:53:27 CEST [3782-2457] postgres@labkey LOG:  execute S_385/C_736: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2458] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#SchemaName', $2 = NULL, $3 = 'SchemaName', $4 = 'SchemaName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#SchemaName', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2459] postgres@labkey LOG:  execute S_389/C_738: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2460] postgres@labkey DETAIL:  parameters: $1 = '32', $2 = '11', $3 = 'f', $4 = '3', $5 = '32', $6 = '11'
2016-04-07 12:53:27 CEST [3782-2461] postgres@labkey LOG:  execute S_393/C_740: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2462] postgres@labkey DETAIL:  parameters: $1 = '32'
2016-04-07 12:53:27 CEST [3782-2463] postgres@labkey LOG:  execute S_385/C_742: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2464] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#QueryName', $2 = NULL, $3 = 'QueryName', $4 = 'QueryName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-audit.Folder-3:QueryUpdateAuditEvent#QueryName', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2465] postgres@labkey LOG:  execute S_389/C_744: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2466] postgres@labkey DETAIL:  parameters: $1 = '33', $2 = '11', $3 = 'f', $4 = '4', $5 = '33', $6 = '11'
2016-04-07 12:53:27 CEST [3782-2467] postgres@labkey LOG:  execute S_393/C_746: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2468] postgres@labkey DETAIL:  parameters: $1 = '33'
2016-04-07 12:53:27 CEST [3782-2469] postgres@labkey LOG:  execute S_748/C_749: CREATE TABLE audit.c3d11_queryupdateauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "rowpk" VARCHAR (4000), "newrecordmap" VARCHAR (4000), "oldrecordmap" VARCHAR (4000), "schemaname" VARCHAR (4000), "queryname" VARCHAR (4000))
2016-04-07 12:53:27 CEST [3782-2470] postgres@labkey LOG:  execute S_750/C_751: ALTER TABLE audit.c3d11_queryupdateauditdomain ADD CONSTRAINT c3d11_queryupdateauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:27 CEST [3782-2471] postgres@labkey LOG:  execute S_402/C_752: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:27 CEST [3782-2472] postgres@labkey DETAIL:  parameters: $1 = 'QueryUpdateAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-auditLog.Folder-3:QueryUpdateAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d11_queryupdateauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:27.39', $8 = '11'
2016-04-07 12:53:27 CEST [3782-2473] postgres@labkey LOG:  execute S_366/C_754: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:27 CEST [3782-2474] postgres@labkey DETAIL:  parameters: $1 = 'SearchAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SearchAuditDomain-auditLog.Folder-3:SearchAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:27.463'
2016-04-07 12:53:27 CEST [3782-2475] postgres@labkey LOG:  execute S_380/C_762: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:27 CEST [3782-2476] postgres@labkey DETAIL:  parameters: $1 = 'SearchAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SearchAuditDomain-auditLog.Folder-3:SearchAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:27.495', $6 = '12'
2016-04-07 12:53:27 CEST [3782-2477] postgres@labkey LOG:  execute S_385/C_765: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:27 CEST [3782-2478] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-SearchAuditDomain-audit.Folder-3:SearchAuditEvent#Query', $2 = NULL, $3 = 'Query', $4 = 'Query', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-SearchAuditDomain-audit.Folder-3:SearchAuditEvent#Query', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:27 CEST [3782-2479] postgres@labkey LOG:  execute S_389/C_767: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:27 CEST [3782-2480] postgres@labkey DETAIL:  parameters: $1 = '34', $2 = '12', $3 = 'f', $4 = '0', $5 = '34', $6 = '12'
2016-04-07 12:53:27 CEST [3782-2481] postgres@labkey LOG:  execute S_393/C_769: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:27 CEST [3782-2482] postgres@labkey DETAIL:  parameters: $1 = '34'
2016-04-07 12:53:27 CEST [3782-2483] postgres@labkey LOG:  execute S_771/C_772: CREATE TABLE audit.c3d12_searchauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "query" VARCHAR (4000))
2016-04-07 12:53:27 CEST [3782-2484] postgres@labkey LOG:  execute S_773/C_774: ALTER TABLE audit.c3d12_searchauditdomain ADD CONSTRAINT c3d12_searchauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:27 CEST [3782-2485] postgres@labkey LOG:  execute S_402/C_775: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:27 CEST [3782-2486] postgres@labkey DETAIL:  parameters: $1 = 'SearchAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SearchAuditDomain-auditLog.Folder-3:SearchAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d12_searchauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:27.59', $8 = '12'
2016-04-07 12:53:27 CEST [3782-2487] postgres@labkey LOG:  execute S_69/C_782: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:53:27 CEST [3782-2488] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'folderType', $3 = '0', $4 = 'None'
2016-04-07 12:53:27 CEST [3782-2489] postgres@labkey LOG:  execute S_807/C_808: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=NULL, permanent=$6, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$7
2016-04-07 12:53:27 CEST [3782-2490] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '1', $4 = 'Messages', $5 = '!content', $6 = 'f', $7 = '1'
2016-04-07 12:53:27 CEST [3782-2491] postgres@labkey LOG:  execute S_213/C_809: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 12:53:27 CEST [3782-2492] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '2', $4 = 'Wiki', $5 = '!content', $6 = 'f'
2016-04-07 12:53:27 CEST [3782-2493] postgres@labkey LOG:  execute S_213/C_810: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 12:53:27 CEST [3782-2494] postgres@labkey DETAIL:  parameters: $1 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '3', $4 = 'Wiki Table of Contents', $5 = 'right', $6 = 'f'
2016-04-07 12:53:27 CEST [3782-2495] postgres@labkey LOG:  execute S_813/C_814: UPDATE core.portalpages
		SET entityid=$1, container=$2, pageid=$3, index=$4, caption=NULL, hidden=$5, type=$6, action=NULL, targetfolder=NULL, permanent=$7, properties=NULL
		WHERE container=$8 AND pageid=$9
2016-04-07 12:53:27 CEST [3782-2496] postgres@labkey DETAIL:  parameters: $1 = 'aeef676c-dedc-1033-b8fa-6788989ded56', $2 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $3 = 'portal.default', $4 = '3', $5 = 'f', $6 = 'portal', $7 = 'f', $8 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $9 = 'portal.default'
2016-04-07 12:53:27 CEST [3782-2497] postgres@labkey LOG:  execute S_211/C_815: INSERT INTO core.portalpages
		(entityid, container, pageid, index, caption, hidden, type, action, targetfolder, permanent, properties)
		VALUES ($1, $2, $3, $4, NULL, $5, $6, NULL, NULL, $7, NULL)
2016-04-07 12:53:27 CEST [3782-2498] postgres@labkey DETAIL:  parameters: $1 = 'aeef6841-dedc-1033-b8fa-6788989ded56', $2 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $3 = 'DefaultDashboard', $4 = '2', $5 = 'f', $6 = 'portal', $7 = 'f'
2016-04-07 12:53:27 CEST [3782-2499] postgres@labkey LOG:  execute S_69/C_821: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:53:27 CEST [3782-2500] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'folderType', $3 = '0', $4 = 'None'
2016-04-07 12:53:27 CEST [3782-2501] postgres@labkey LOG:  execute S_211/C_845: INSERT INTO core.portalpages
		(entityid, container, pageid, index, caption, hidden, type, action, targetfolder, permanent, properties)
		VALUES ($1, $2, $3, $4, NULL, $5, $6, NULL, NULL, $7, NULL)
2016-04-07 12:53:27 CEST [3782-2502] postgres@labkey DETAIL:  parameters: $1 = 'aeef6842-dedc-1033-b8fa-6788989ded56', $2 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $3 = 'portal.default', $4 = '1', $5 = 'f', $6 = 'portal', $7 = 'f'
2016-04-07 12:53:27 CEST [3782-2503] postgres@labkey LOG:  execute S_213/C_846: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 12:53:27 CEST [3782-2504] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '1', $4 = 'Wiki', $5 = '!content', $6 = 'f'
2016-04-07 12:53:27 CEST [3782-2505] postgres@labkey LOG:  execute S_213/C_847: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 12:53:27 CEST [3782-2506] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '2', $4 = 'Wiki Table of Contents', $5 = 'right', $6 = 'f'
2016-04-07 12:53:27 CEST [3782-2507] postgres@labkey LOG:  execute S_213/C_848: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 12:53:27 CEST [3782-2508] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '3', $4 = 'Messages', $5 = '!content', $6 = 'f'
2016-04-07 12:53:27 CEST [3782-2509] postgres@labkey LOG:  execute S_813/C_851: UPDATE core.portalpages
		SET entityid=$1, container=$2, pageid=$3, index=$4, caption=NULL, hidden=$5, type=$6, action=NULL, targetfolder=NULL, permanent=$7, properties=NULL
		WHERE container=$8 AND pageid=$9
2016-04-07 12:53:27 CEST [3782-2510] postgres@labkey DETAIL:  parameters: $1 = 'aeef6842-dedc-1033-b8fa-6788989ded56', $2 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $3 = 'portal.default', $4 = '3', $5 = 'f', $6 = 'portal', $7 = 'f', $8 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $9 = 'portal.default'
2016-04-07 12:53:27 CEST [3782-2511] postgres@labkey LOG:  execute S_211/C_852: INSERT INTO core.portalpages
		(entityid, container, pageid, index, caption, hidden, type, action, targetfolder, permanent, properties)
		VALUES ($1, $2, $3, $4, NULL, $5, $6, NULL, NULL, $7, NULL)
2016-04-07 12:53:27 CEST [3782-2512] postgres@labkey DETAIL:  parameters: $1 = 'aeef6843-dedc-1033-b8fa-6788989ded56', $2 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $3 = 'DefaultDashboard', $4 = '2', $5 = 'f', $6 = 'portal', $7 = 'f'
2016-04-07 12:53:28 CEST [3782-2513] postgres@labkey LOG:  execute S_860/C_861: INSERT INTO comm.pages
		(entityid, createdby, created, modifiedby, modified, owner, container, name, parent, displayorder, pageversionid, showattachments, shouldindex)
		VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, NULL, $11, $12)
	RETURNING rowid
2016-04-07 12:53:28 CEST [3782-2514] postgres@labkey DETAIL:  parameters: $1 = 'aeef6844-dedc-1033-b8fa-6788989ded56', $2 = '0', $3 = '2016-04-07 12:53:27.952', $4 = '0', $5 = '2016-04-07 12:53:28.045', $6 = '0', $7 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $8 = 'default', $9 = '-1', $10 = '0', $11 = 't', $12 = 't'
2016-04-07 12:53:28 CEST [3782-2515] postgres@labkey LOG:  execute S_862/C_863: INSERT INTO comm.pageversions
		(pageentityid, created, createdby, owner, version, title, body, renderertype)
		VALUES ($1, $2, $3, $4, $5, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:28 CEST [3782-2516] postgres@labkey DETAIL:  parameters: $1 = 'aeef6844-dedc-1033-b8fa-6788989ded56', $2 = '2016-04-07 12:53:27.952', $3 = '0', $4 = '0', $5 = '1', $6 = 'Welcome to LabKey Server', $7 = '<p>To learn more about using the platform, please visit one of the community resources freely available on
	<a href="http://www.labkey.org">labkey.org</a>:</p>
	<ul>
	    <li><a href="https://www.labkey.org/Project/home/Documentation/begin.view">Documentation</a></li>
	    <li><a href="https://www.labkey.org/wiki/home/Documentation/page.view?name=tutorials">Tutorials</a></li>
	    <li><a href="https://www.labkey.org/wiki/home/Documentation/page.view?name=dev">Developer Guide</a></li>
	    <li><a href="https://www.labkey.org/wiki/home/page.view?name=support">Community Forums</a></li>
	</ul>
	
	<p>
	If you need further assistance, <a href="http://www.labkey.com">LabKey Software</a> provides professional support,
	customization and development. Please <a href="https://www.labkey.com/company/contact-us">contact us</a>.
	</p>
	
	<p>Thanks for installing LabKey Server. </p>
	
	<p>Regards,</p>
	
	<p>The LabKey Software Team<br/>
	<a href="http://www.labkey.com">www.labkey.com</a></p>', $8 = 'HTML'
2016-04-07 12:53:28 CEST [3782-2517] postgres@labkey LOG:  execute S_868/C_869: UPDATE comm.pages
		SET entityid=$1, createdby=$2, created=$3, modifiedby=$4, modified=$5, container=$6, name=$7, parent=$8, displayorder=$9, pageversionid=$10, showattachments=$11, shouldindex=$12
		WHERE entityid=$13
2016-04-07 12:53:28 CEST [3782-2518] postgres@labkey DETAIL:  parameters: $1 = 'aeef6844-dedc-1033-b8fa-6788989ded56', $2 = '0', $3 = '2016-04-07 12:53:27.952', $4 = '0', $5 = '2016-04-07 12:53:28.053', $6 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $7 = 'default', $8 = '-1', $9 = '0', $10 = '1', $11 = 't', $12 = 't', $13 = 'aeef6844-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2519] postgres@labkey LOG:  execute S_860/C_872: INSERT INTO comm.pages
		(entityid, createdby, created, modifiedby, modified, owner, container, name, parent, displayorder, pageversionid, showattachments, shouldindex)
		VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, NULL, $11, $12)
	RETURNING rowid
2016-04-07 12:53:28 CEST [3782-2520] postgres@labkey DETAIL:  parameters: $1 = 'aeef6845-dedc-1033-b8fa-6788989ded56', $2 = '0', $3 = '2016-04-07 12:53:28.069', $4 = '0', $5 = '2016-04-07 12:53:28.071', $6 = '0', $7 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $8 = 'default', $9 = '-1', $10 = '0', $11 = 't', $12 = 't'
2016-04-07 12:53:28 CEST [3782-2521] postgres@labkey LOG:  execute S_862/C_873: INSERT INTO comm.pageversions
		(pageentityid, created, createdby, owner, version, title, body, renderertype)
		VALUES ($1, $2, $3, $4, $5, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:28 CEST [3782-2522] postgres@labkey DETAIL:  parameters: $1 = 'aeef6845-dedc-1033-b8fa-6788989ded56', $2 = '2016-04-07 12:53:28.069', $3 = '0', $4 = '0', $5 = '1', $6 = 'Welcome to LabKey support', $7 = 'This page is a placeholder for your local LabKey site support center. The site \\
	administrator can customize this page to explain your support policies.\\
	\\
	
	By default, users will arrive at this page when they click the **Support** link at the bottom \\
	of the left-hand navigation pane. If you like, you can change the destination URL for the \\
	**Support** link by clicking **Admin->Site->Admin Console->Look and Feel Settings**.', $8 = 'RADEOX'
2016-04-07 12:53:28 CEST [3782-2523] postgres@labkey LOG:  execute S_868/C_876: UPDATE comm.pages
		SET entityid=$1, createdby=$2, created=$3, modifiedby=$4, modified=$5, container=$6, name=$7, parent=$8, displayorder=$9, pageversionid=$10, showattachments=$11, shouldindex=$12
		WHERE entityid=$13
2016-04-07 12:53:28 CEST [3782-2524] postgres@labkey DETAIL:  parameters: $1 = 'aeef6845-dedc-1033-b8fa-6788989ded56', $2 = '0', $3 = '2016-04-07 12:53:28.069', $4 = '0', $5 = '2016-04-07 12:53:28.073', $6 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $7 = 'default', $8 = '-1', $9 = '0', $10 = '2', $11 = 't', $12 = 't', $13 = 'aeef6845-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2525] postgres@labkey LOG:  execute S_807/C_877: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=NULL, permanent=$6, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$7
2016-04-07 12:53:28 CEST [3782-2526] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '1', $4 = 'Wiki', $5 = '!content', $6 = 'f', $7 = '4'
2016-04-07 12:53:28 CEST [3782-2527] postgres@labkey LOG:  execute S_213/C_878: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 12:53:28 CEST [3782-2528] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '2', $4 = 'Projects', $5 = '!content', $6 = 'f'
2016-04-07 12:53:28 CEST [3782-2529] postgres@labkey LOG:  execute S_807/C_879: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=NULL, permanent=$6, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$7
2016-04-07 12:53:28 CEST [3782-2530] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '3', $4 = 'Wiki Table of Contents', $5 = 'right', $6 = 'f', $7 = '5'
2016-04-07 12:53:28 CEST [3782-2531] postgres@labkey LOG:  execute S_807/C_880: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=NULL, permanent=$6, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$7
2016-04-07 12:53:28 CEST [3782-2532] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '4', $4 = 'Messages', $5 = '!content', $6 = 'f', $7 = '6'
2016-04-07 12:53:28 CEST [3782-2533] postgres@labkey LOG:  execute S_366/C_882: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:28 CEST [3782-2534] postgres@labkey DETAIL:  parameters: $1 = 'MessageAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-auditLog.Folder-3:MessageAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:28.108'
2016-04-07 12:53:28 CEST [3782-2535] postgres@labkey LOG:  execute S_380/C_890: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:28 CEST [3782-2536] postgres@labkey DETAIL:  parameters: $1 = 'MessageAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-auditLog.Folder-3:MessageAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:28.126', $6 = '13'
2016-04-07 12:53:28 CEST [3782-2537] postgres@labkey LOG:  execute S_385/C_893: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2538] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-audit.Folder-3:MessageAuditEvent#ContentType', $2 = NULL, $3 = 'ContentType', $4 = 'ContentType', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-audit.Folder-3:MessageAuditEvent#ContentType', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2539] postgres@labkey LOG:  execute S_389/C_895: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2540] postgres@labkey DETAIL:  parameters: $1 = '35', $2 = '13', $3 = 'f', $4 = '0', $5 = '35', $6 = '13'
2016-04-07 12:53:28 CEST [3782-2541] postgres@labkey LOG:  execute S_393/C_897: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2542] postgres@labkey DETAIL:  parameters: $1 = '35'
2016-04-07 12:53:28 CEST [3782-2543] postgres@labkey LOG:  execute S_385/C_899: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2544] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-audit.Folder-3:MessageAuditEvent#From', $2 = NULL, $3 = 'From', $4 = 'From', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-audit.Folder-3:MessageAuditEvent#From', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2545] postgres@labkey LOG:  execute S_389/C_901: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2546] postgres@labkey DETAIL:  parameters: $1 = '36', $2 = '13', $3 = 'f', $4 = '1', $5 = '36', $6 = '13'
2016-04-07 12:53:28 CEST [3782-2547] postgres@labkey LOG:  execute S_393/C_903: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2548] postgres@labkey DETAIL:  parameters: $1 = '36'
2016-04-07 12:53:28 CEST [3782-2549] postgres@labkey LOG:  execute S_385/C_905: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2550] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-audit.Folder-3:MessageAuditEvent#To', $2 = NULL, $3 = 'To', $4 = 'To', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-audit.Folder-3:MessageAuditEvent#To', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2551] postgres@labkey LOG:  execute S_389/C_907: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2552] postgres@labkey DETAIL:  parameters: $1 = '37', $2 = '13', $3 = 'f', $4 = '2', $5 = '37', $6 = '13'
2016-04-07 12:53:28 CEST [3782-2553] postgres@labkey LOG:  execute S_393/C_909: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2554] postgres@labkey DETAIL:  parameters: $1 = '37'
2016-04-07 12:53:28 CEST [3782-2555] postgres@labkey LOG:  execute S_911/C_912: CREATE TABLE audit.c3d13_messageauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "contenttype" VARCHAR (4000), "from" VARCHAR (4000), "to" VARCHAR (4000))
2016-04-07 12:53:28 CEST [3782-2556] postgres@labkey LOG:  execute S_913/C_914: ALTER TABLE audit.c3d13_messageauditdomain ADD CONSTRAINT c3d13_messageauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:28 CEST [3782-2557] postgres@labkey LOG:  execute S_402/C_915: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:28 CEST [3782-2558] postgres@labkey DETAIL:  parameters: $1 = 'MessageAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-auditLog.Folder-3:MessageAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d13_messageauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:28.246', $8 = '13'
2016-04-07 12:53:28 CEST [3782-2559] postgres@labkey LOG:  execute S_366/C_918: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:28 CEST [3782-2560] postgres@labkey DETAIL:  parameters: $1 = 'DomainAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-auditLog.Folder-3:DomainAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:28.535'
2016-04-07 12:53:28 CEST [3782-2561] postgres@labkey LOG:  execute S_380/C_926: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:28 CEST [3782-2562] postgres@labkey DETAIL:  parameters: $1 = 'DomainAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-auditLog.Folder-3:DomainAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:28.551', $6 = '14'
2016-04-07 12:53:28 CEST [3782-2563] postgres@labkey LOG:  execute S_385/C_929: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2564] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-audit.Folder-3:DomainAuditEvent#DomainUri', $2 = NULL, $3 = 'DomainUri', $4 = 'DomainUri', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-audit.Folder-3:DomainAuditEvent#DomainUri', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2565] postgres@labkey LOG:  execute S_389/C_931: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2566] postgres@labkey DETAIL:  parameters: $1 = '38', $2 = '14', $3 = 'f', $4 = '0', $5 = '38', $6 = '14'
2016-04-07 12:53:28 CEST [3782-2567] postgres@labkey LOG:  execute S_393/C_933: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2568] postgres@labkey DETAIL:  parameters: $1 = '38'
2016-04-07 12:53:28 CEST [3782-2569] postgres@labkey LOG:  execute S_385/C_935: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2570] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-audit.Folder-3:DomainAuditEvent#DomainName', $2 = NULL, $3 = 'DomainName', $4 = 'DomainName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-audit.Folder-3:DomainAuditEvent#DomainName', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2571] postgres@labkey LOG:  execute S_389/C_937: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2572] postgres@labkey DETAIL:  parameters: $1 = '39', $2 = '14', $3 = 'f', $4 = '1', $5 = '39', $6 = '14'
2016-04-07 12:53:28 CEST [3782-2573] postgres@labkey LOG:  execute S_393/C_939: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2574] postgres@labkey DETAIL:  parameters: $1 = '39'
2016-04-07 12:53:28 CEST [3782-2575] postgres@labkey LOG:  execute S_941/C_942: CREATE TABLE audit.c3d14_domainauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "domainuri" VARCHAR (4000), "domainname" VARCHAR (4000))
2016-04-07 12:53:28 CEST [3782-2576] postgres@labkey LOG:  execute S_943/C_944: ALTER TABLE audit.c3d14_domainauditdomain ADD CONSTRAINT c3d14_domainauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:28 CEST [3782-2577] postgres@labkey LOG:  execute S_402/C_945: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:28 CEST [3782-2578] postgres@labkey DETAIL:  parameters: $1 = 'DomainAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-auditLog.Folder-3:DomainAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d14_domainauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:28.679', $8 = '14'
2016-04-07 12:53:28 CEST [3782-2579] postgres@labkey LOG:  execute S_366/C_947: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:28 CEST [3782-2580] postgres@labkey DETAIL:  parameters: $1 = 'ExperimentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-auditLog.Folder-3:ExperimentAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:28.707'
2016-04-07 12:53:28 CEST [3782-2581] postgres@labkey LOG:  execute S_380/C_955: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:28 CEST [3782-2582] postgres@labkey DETAIL:  parameters: $1 = 'ExperimentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-auditLog.Folder-3:ExperimentAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:28.763', $6 = '15'
2016-04-07 12:53:28 CEST [3782-2583] postgres@labkey LOG:  execute S_385/C_958: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2584] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#ProtocolRun', $2 = NULL, $3 = 'ProtocolRun', $4 = 'ProtocolRun', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#ProtocolRun', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2585] postgres@labkey LOG:  execute S_389/C_960: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2586] postgres@labkey DETAIL:  parameters: $1 = '40', $2 = '15', $3 = 'f', $4 = '0', $5 = '40', $6 = '15'
2016-04-07 12:53:28 CEST [3782-2587] postgres@labkey LOG:  execute S_393/C_962: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2588] postgres@labkey DETAIL:  parameters: $1 = '40'
2016-04-07 12:53:28 CEST [3782-2589] postgres@labkey LOG:  execute S_385/C_964: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2590] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#RunLsid', $2 = NULL, $3 = 'RunLsid', $4 = 'RunLsid', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#RunLsid', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2591] postgres@labkey LOG:  execute S_389/C_966: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2592] postgres@labkey DETAIL:  parameters: $1 = '41', $2 = '15', $3 = 'f', $4 = '1', $5 = '41', $6 = '15'
2016-04-07 12:53:28 CEST [3782-2593] postgres@labkey LOG:  execute S_393/C_968: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2594] postgres@labkey DETAIL:  parameters: $1 = '41'
2016-04-07 12:53:28 CEST [3782-2595] postgres@labkey LOG:  execute S_385/C_970: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2596] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#RunGroup', $2 = NULL, $3 = 'RunGroup', $4 = 'RunGroup', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#RunGroup', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2597] postgres@labkey LOG:  execute S_389/C_972: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2598] postgres@labkey DETAIL:  parameters: $1 = '42', $2 = '15', $3 = 'f', $4 = '2', $5 = '42', $6 = '15'
2016-04-07 12:53:28 CEST [3782-2599] postgres@labkey LOG:  execute S_393/C_974: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2600] postgres@labkey DETAIL:  parameters: $1 = '42'
2016-04-07 12:53:28 CEST [3782-2601] postgres@labkey LOG:  execute S_385/C_976: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2602] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#ProtocolLsid', $2 = NULL, $3 = 'ProtocolLsid', $4 = 'ProtocolLsid', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-audit.Folder-3:ExperimentAuditEvent#ProtocolLsid', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2603] postgres@labkey LOG:  execute S_389/C_978: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2604] postgres@labkey DETAIL:  parameters: $1 = '43', $2 = '15', $3 = 'f', $4 = '3', $5 = '43', $6 = '15'
2016-04-07 12:53:28 CEST [3782-2605] postgres@labkey LOG:  execute S_393/C_980: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2606] postgres@labkey DETAIL:  parameters: $1 = '43'
2016-04-07 12:53:28 CEST [3782-2607] postgres@labkey LOG:  execute S_982/C_983: CREATE TABLE audit.c3d15_experimentauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "protocolrun" VARCHAR (4000), "runlsid" VARCHAR (4000), "rungroup" INTEGER, "protocollsid" VARCHAR (4000))
2016-04-07 12:53:28 CEST [3782-2608] postgres@labkey LOG:  execute S_984/C_985: ALTER TABLE audit.c3d15_experimentauditdomain ADD CONSTRAINT c3d15_experimentauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:28 CEST [3782-2609] postgres@labkey LOG:  execute S_402/C_986: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:28 CEST [3782-2610] postgres@labkey DETAIL:  parameters: $1 = 'ExperimentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-auditLog.Folder-3:ExperimentAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d15_experimentauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:28.882', $8 = '15'
2016-04-07 12:53:28 CEST [3782-2611] postgres@labkey LOG:  execute S_366/C_988: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:28 CEST [3782-2612] postgres@labkey DETAIL:  parameters: $1 = 'SampleSetAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-auditLog.Folder-3:SampleSetAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:28.916'
2016-04-07 12:53:28 CEST [3782-2613] postgres@labkey LOG:  execute S_380/C_996: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:28 CEST [3782-2614] postgres@labkey DETAIL:  parameters: $1 = 'SampleSetAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-auditLog.Folder-3:SampleSetAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:28.932', $6 = '16'
2016-04-07 12:53:28 CEST [3782-2615] postgres@labkey LOG:  execute S_385/C_999: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2616] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-audit.Folder-3:SampleSetAuditEvent#SourceLsid', $2 = NULL, $3 = 'SourceLsid', $4 = 'SourceLsid', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-audit.Folder-3:SampleSetAuditEvent#SourceLsid', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2617] postgres@labkey LOG:  execute S_389/C_1001: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2618] postgres@labkey DETAIL:  parameters: $1 = '44', $2 = '16', $3 = 'f', $4 = '0', $5 = '44', $6 = '16'
2016-04-07 12:53:28 CEST [3782-2619] postgres@labkey LOG:  execute S_393/C_1003: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2620] postgres@labkey DETAIL:  parameters: $1 = '44'
2016-04-07 12:53:28 CEST [3782-2621] postgres@labkey LOG:  execute S_385/C_1005: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2622] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-audit.Folder-3:SampleSetAuditEvent#InsertUpdateChoice', $2 = NULL, $3 = 'InsertUpdateChoice', $4 = 'InsertUpdateChoice', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-audit.Folder-3:SampleSetAuditEvent#InsertUpdateChoice', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2623] postgres@labkey LOG:  execute S_389/C_1007: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2624] postgres@labkey DETAIL:  parameters: $1 = '45', $2 = '16', $3 = 'f', $4 = '1', $5 = '45', $6 = '16'
2016-04-07 12:53:28 CEST [3782-2625] postgres@labkey LOG:  execute S_393/C_1009: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2626] postgres@labkey DETAIL:  parameters: $1 = '45'
2016-04-07 12:53:28 CEST [3782-2627] postgres@labkey LOG:  execute S_385/C_1011: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:28 CEST [3782-2628] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-audit.Folder-3:SampleSetAuditEvent#SampleSetName', $2 = NULL, $3 = 'SampleSetName', $4 = 'SampleSetName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-audit.Folder-3:SampleSetAuditEvent#SampleSetName', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:28 CEST [3782-2629] postgres@labkey LOG:  execute S_389/C_1013: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:28 CEST [3782-2630] postgres@labkey DETAIL:  parameters: $1 = '46', $2 = '16', $3 = 'f', $4 = '2', $5 = '46', $6 = '16'
2016-04-07 12:53:28 CEST [3782-2631] postgres@labkey LOG:  execute S_393/C_1015: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:28 CEST [3782-2632] postgres@labkey DETAIL:  parameters: $1 = '46'
2016-04-07 12:53:28 CEST [3782-2633] postgres@labkey LOG:  execute S_1017/C_1018: CREATE TABLE audit.c3d16_samplesetauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "sourcelsid" VARCHAR (4000), "insertupdatechoice" VARCHAR (4000), "samplesetname" VARCHAR (4000))
2016-04-07 12:53:29 CEST [3782-2634] postgres@labkey LOG:  execute S_1019/C_1020: ALTER TABLE audit.c3d16_samplesetauditdomain ADD CONSTRAINT c3d16_samplesetauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:29 CEST [3782-2635] postgres@labkey LOG:  execute S_402/C_1021: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:29 CEST [3782-2636] postgres@labkey DETAIL:  parameters: $1 = 'SampleSetAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-auditLog.Folder-3:SampleSetAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d16_samplesetauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:29.084', $8 = '16'
2016-04-07 12:53:29 CEST [3782-2637] postgres@labkey LOG:  execute <unnamed>: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2638] postgres@labkey DETAIL:  parameters: $1 = 'urn:exp.labkey.org/#Comment', $2 = 'Comment', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.22', $14 = '2016-04-07 12:53:29.22', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2639] postgres@labkey LOG:  execute <unnamed>: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2640] postgres@labkey DETAIL:  parameters: $1 = 'urn:exp.labkey.org/#LogText', $2 = 'LogText', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.248', $14 = '2016-04-07 12:53:29.248', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2641] postgres@labkey LOG:  execute <unnamed>: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2642] postgres@labkey DETAIL:  parameters: $1 = 'urn:exp.labkey.org/#ProtocolImplementation', $2 = 'ProtocolImplementation', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.26', $14 = '2016-04-07 12:53:29.26', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2643] postgres@labkey LOG:  execute <unnamed>: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2644] postgres@labkey DETAIL:  parameters: $1 = 'urn:exp.labkey.org/#SampleSetLSID', $2 = 'SampleSetLSID', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.271', $14 = '2016-04-07 12:53:29.271', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2645] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2646] postgres@labkey DETAIL:  parameters: $1 = 'urn:flow.labkey.org/#SampleSetJoin', $2 = 'SampleSetJoin', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.282', $14 = '2016-04-07 12:53:29.282', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2647] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2648] postgres@labkey DETAIL:  parameters: $1 = 'urn:flow.labkey.org/#LogText', $2 = 'LogText', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.293', $14 = '2016-04-07 12:53:29.293', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2649] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2650] postgres@labkey DETAIL:  parameters: $1 = 'urn:flow.labkey.org/#FCSAnalysisName', $2 = 'FCSAnalysisName', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.305', $14 = '2016-04-07 12:53:29.305', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2651] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2652] postgres@labkey DETAIL:  parameters: $1 = 'urn:flow.labkey.org/#FCSAnalysisFilter', $2 = 'FCSAnalysisFilter', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.316', $14 = '2016-04-07 12:53:29.316', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2653] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2654] postgres@labkey DETAIL:  parameters: $1 = 'urn:flow.labkey.org/#ICSMetadata', $2 = 'ICSMetadata', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.328', $14 = '2016-04-07 12:53:29.328', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2655] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2656] postgres@labkey DETAIL:  parameters: $1 = 'urn:flow.labkey.org/#AnalysisEngine', $2 = 'AnalysisEngine', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.338', $14 = '2016-04-07 12:53:29.338', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2657] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2658] postgres@labkey DETAIL:  parameters: $1 = 'urn:flow.labkey.org/#TargetStudy', $2 = 'TargetStudy', $3 = 'http://www.w3.org/2001/XMLSchema#string', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.349', $14 = '2016-04-07 12:53:29.349', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '4000', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2659] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2660] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#RecordsInserted', $2 = 'RecordsInserted', $3 = 'http://www.w3.org/2001/XMLSchema#int', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.36', $14 = '2016-04-07 12:53:29.36', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2661] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2662] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#RecordsDeleted', $2 = 'RecordsDeleted', $3 = 'http://www.w3.org/2001/XMLSchema#int', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.411', $14 = '2016-04-07 12:53:29.411', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2663] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2664] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#RecordsModified', $2 = 'RecordsModified', $3 = 'http://www.w3.org/2001/XMLSchema#int', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.423', $14 = '2016-04-07 12:53:29.423', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2665] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2666] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#IncrementalStartTimestamp', $2 = 'IncrementalStartTimestamp', $3 = 'http://www.w3.org/2001/XMLSchema#dateTime', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.441', $14 = '2016-04-07 12:53:29.441', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2667] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2668] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#IncrementalEndTimestamp', $2 = 'IncrementalEndTimestamp', $3 = 'http://www.w3.org/2001/XMLSchema#dateTime', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.47', $14 = '2016-04-07 12:53:29.47', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2669] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2670] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#IncrementalStartRowversion', $2 = 'IncrementalStartRowversion', $3 = 'http://www.w3.org/2001/XMLSchema#long', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.479', $14 = '2016-04-07 12:53:29.479', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2671] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2672] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#IncrementalEndRowversion', $2 = 'IncrementalEndRowversion', $3 = 'http://www.w3.org/2001/XMLSchema#long', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.489', $14 = '2016-04-07 12:53:29.489', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2673] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2674] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#IncrementalRunId', $2 = 'IncrementalRunId', $3 = 'http://www.w3.org/2001/XMLSchema#int', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.501', $14 = '2016-04-07 12:53:29.501', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2675] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2676] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#DeletedIncrementalStartTimestamp', $2 = 'DeletedIncrementalStartTimestamp', $3 = 'http://www.w3.org/2001/XMLSchema#dateTime', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.517', $14 = '2016-04-07 12:53:29.517', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2677] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2678] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#DeletedIncrementalEndTimestamp', $2 = 'DeletedIncrementalEndTimestamp', $3 = 'http://www.w3.org/2001/XMLSchema#dateTime', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 'f', $13 = '2016-04-07 12:53:29.523', $14 = '2016-04-07 12:53:29.523', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2679] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2680] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#DeletedIncrementalStartRowversion', $2 = 'DeletedIncrementalStartRowversion', $3 = 'http://www.w3.org/2001/XMLSchema#long', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.542', $14 = '2016-04-07 12:53:29.542', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2681] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2682] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#DeletedIncrementalEndRowversion', $2 = 'DeletedIncrementalEndRowversion', $3 = 'http://www.w3.org/2001/XMLSchema#long', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.556', $14 = '2016-04-07 12:53:29.556', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2683] postgres@labkey LOG:  execute S_1027: INSERT INTO exp.propertydescriptor
		(propertyuri, ontologyuri, name, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, created, modified, facetingbehaviortype, protected, excludefromshifting, scale, recommendedvariable, defaultscale, storagecolumnname)
		VALUES ($1, NULL, $2, NULL, $3, NULL, NULL, NULL, NULL, NULL, $4, $5, NULL, NULL, NULL, NULL, $6, $7, NULL, NULL, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, NULL)
	RETURNING propertyid
2016-04-07 12:53:29 CEST [3782-2684] postgres@labkey DETAIL:  parameters: $1 = 'urn:di.labkey.org/#DeletedIncrementalRunId', $2 = 'DeletedIncrementalRunId', $3 = 'http://www.w3.org/2001/XMLSchema#int', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $6 = 'f', $7 = 'f', $8 = 't', $9 = 't', $10 = 't', $11 = 'f', $12 = 't', $13 = '2016-04-07 12:53:29.567', $14 = '2016-04-07 12:53:29.567', $15 = 'AUTOMATIC', $16 = 'f', $17 = 'f', $18 = '0', $19 = 'f', $20 = 'LINEAR'
2016-04-07 12:53:29 CEST [3782-2685] postgres@labkey LOG:  execute S_366/C_1048: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:29 CEST [3782-2686] postgres@labkey DETAIL:  parameters: $1 = 'ListAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-auditLog.Folder-3:ListAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:29.688'
2016-04-07 12:53:29 CEST [3782-2687] postgres@labkey LOG:  execute S_380/C_1056: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:29 CEST [3782-2688] postgres@labkey DETAIL:  parameters: $1 = 'ListAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-auditLog.Folder-3:ListAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:29.703', $6 = '17'
2016-04-07 12:53:29 CEST [3782-2689] postgres@labkey LOG:  execute S_385/C_1059: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:29 CEST [3782-2690] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListId', $2 = NULL, $3 = 'ListId', $4 = 'ListId', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListId', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2691] postgres@labkey LOG:  execute S_389/C_1061: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:29 CEST [3782-2692] postgres@labkey DETAIL:  parameters: $1 = '71', $2 = '17', $3 = 'f', $4 = '0', $5 = '71', $6 = '17'
2016-04-07 12:53:29 CEST [3782-2693] postgres@labkey LOG:  execute S_393/C_1063: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:29 CEST [3782-2694] postgres@labkey DETAIL:  parameters: $1 = '71'
2016-04-07 12:53:29 CEST [3782-2695] postgres@labkey LOG:  execute S_385/C_1065: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:29 CEST [3782-2696] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListDomainUri', $2 = NULL, $3 = 'ListDomainUri', $4 = 'ListDomainUri', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListDomainUri', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2697] postgres@labkey LOG:  execute S_389/C_1067: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:29 CEST [3782-2698] postgres@labkey DETAIL:  parameters: $1 = '72', $2 = '17', $3 = 'f', $4 = '1', $5 = '72', $6 = '17'
2016-04-07 12:53:29 CEST [3782-2699] postgres@labkey LOG:  execute S_1069/C_1070: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:29 CEST [3782-2700] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2701] postgres@labkey LOG:  execute S_1073/C_1074: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:29 CEST [3782-2702] postgres@labkey DETAIL:  parameters: $1 = '1', $2 = '72'
2016-04-07 12:53:29 CEST [3782-2703] postgres@labkey LOG:  execute S_393/C_1076: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:29 CEST [3782-2704] postgres@labkey DETAIL:  parameters: $1 = '72'
2016-04-07 12:53:29 CEST [3782-2705] postgres@labkey LOG:  execute S_385/C_1078: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:29 CEST [3782-2706] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListName', $2 = NULL, $3 = 'ListName', $4 = 'ListName', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListName', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2707] postgres@labkey LOG:  execute S_389/C_1080: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:29 CEST [3782-2708] postgres@labkey DETAIL:  parameters: $1 = '73', $2 = '17', $3 = 'f', $4 = '2', $5 = '73', $6 = '17'
2016-04-07 12:53:29 CEST [3782-2709] postgres@labkey LOG:  execute S_1069/C_1083: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:29 CEST [3782-2710] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2711] postgres@labkey LOG:  execute S_1073/C_1085: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:29 CEST [3782-2712] postgres@labkey DETAIL:  parameters: $1 = '2', $2 = '73'
2016-04-07 12:53:29 CEST [3782-2713] postgres@labkey LOG:  execute S_393/C_1087: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:29 CEST [3782-2714] postgres@labkey DETAIL:  parameters: $1 = '73'
2016-04-07 12:53:29 CEST [3782-2715] postgres@labkey LOG:  execute S_385/C_1089: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:29 CEST [3782-2716] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#newRecordMap', $2 = NULL, $3 = 'newRecordMap', $4 = 'newRecordMap', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#newRecordMap', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2717] postgres@labkey LOG:  execute S_389/C_1091: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:29 CEST [3782-2718] postgres@labkey DETAIL:  parameters: $1 = '74', $2 = '17', $3 = 'f', $4 = '3', $5 = '74', $6 = '17'
2016-04-07 12:53:29 CEST [3782-2719] postgres@labkey LOG:  execute S_1069/C_1094: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:29 CEST [3782-2720] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2721] postgres@labkey LOG:  execute S_1073/C_1096: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:29 CEST [3782-2722] postgres@labkey DETAIL:  parameters: $1 = '3', $2 = '74'
2016-04-07 12:53:29 CEST [3782-2723] postgres@labkey LOG:  execute S_393/C_1098: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:29 CEST [3782-2724] postgres@labkey DETAIL:  parameters: $1 = '74'
2016-04-07 12:53:29 CEST [3782-2725] postgres@labkey LOG:  execute S_385/C_1100: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:29 CEST [3782-2726] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#oldRecordMap', $2 = NULL, $3 = 'oldRecordMap', $4 = 'oldRecordMap', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#oldRecordMap', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2727] postgres@labkey LOG:  execute S_389/C_1102: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:29 CEST [3782-2728] postgres@labkey DETAIL:  parameters: $1 = '75', $2 = '17', $3 = 'f', $4 = '4', $5 = '75', $6 = '17'
2016-04-07 12:53:29 CEST [3782-2729] postgres@labkey LOG:  execute S_1069/C_1105: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:29 CEST [3782-2730] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2731] postgres@labkey LOG:  execute S_1073/C_1107: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:29 CEST [3782-2732] postgres@labkey DETAIL:  parameters: $1 = '4', $2 = '75'
2016-04-07 12:53:29 CEST [3782-2733] postgres@labkey LOG:  execute S_393/C_1109: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:29 CEST [3782-2734] postgres@labkey DETAIL:  parameters: $1 = '75'
2016-04-07 12:53:29 CEST [3782-2735] postgres@labkey LOG:  execute S_385/C_1111: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:29 CEST [3782-2736] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListItemEntityId', $2 = NULL, $3 = 'ListItemEntityId', $4 = 'ListItemEntityId', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-audit.Folder-3:ListAuditEvent#ListItemEntityId', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2737] postgres@labkey LOG:  execute S_389/C_1113: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:29 CEST [3782-2738] postgres@labkey DETAIL:  parameters: $1 = '76', $2 = '17', $3 = 'f', $4 = '5', $5 = '76', $6 = '17'
2016-04-07 12:53:29 CEST [3782-2739] postgres@labkey LOG:  execute S_1069/C_1116: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:29 CEST [3782-2740] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:29 CEST [3782-2741] postgres@labkey LOG:  execute S_1073/C_1118: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:29 CEST [3782-2742] postgres@labkey DETAIL:  parameters: $1 = '5', $2 = '76'
2016-04-07 12:53:29 CEST [3782-2743] postgres@labkey LOG:  execute S_393/C_1120: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:29 CEST [3782-2744] postgres@labkey DETAIL:  parameters: $1 = '76'
2016-04-07 12:53:29 CEST [3782-2745] postgres@labkey LOG:  execute S_1122/C_1123: CREATE TABLE audit.c3d17_listauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "listid" INTEGER, "listdomainuri" VARCHAR (4000), "listname" VARCHAR (4000), "newrecordmap" VARCHAR (4000), "oldrecordmap" VARCHAR (4000), "listitementityid" VARCHAR (4000))
2016-04-07 12:53:29 CEST [3782-2746] postgres@labkey LOG:  execute S_1124/C_1125: ALTER TABLE audit.c3d17_listauditdomain ADD CONSTRAINT c3d17_listauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:29 CEST [3782-2747] postgres@labkey LOG:  execute S_402/C_1126: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:29 CEST [3782-2748] postgres@labkey DETAIL:  parameters: $1 = 'ListAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-auditLog.Folder-3:ListAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d17_listauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:29.832', $8 = '17'
2016-04-07 12:53:30 CEST [3782-2749] postgres@labkey LOG:  execute S_366/C_1130: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:30 CEST [3782-2750] postgres@labkey DETAIL:  parameters: $1 = 'AssayAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-auditLog.Folder-3:AssayPublishAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:30.44'
2016-04-07 12:53:30 CEST [3782-2751] postgres@labkey LOG:  execute S_380/C_1138: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:30 CEST [3782-2752] postgres@labkey DETAIL:  parameters: $1 = 'AssayAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-auditLog.Folder-3:AssayPublishAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:30.459', $6 = '18'
2016-04-07 12:53:30 CEST [3782-2753] postgres@labkey LOG:  execute S_385/C_1141: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2754] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#SourceLsid', $2 = NULL, $3 = 'SourceLsid', $4 = 'SourceLsid', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#SourceLsid', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2755] postgres@labkey LOG:  execute S_389/C_1143: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2756] postgres@labkey DETAIL:  parameters: $1 = '77', $2 = '18', $3 = 'f', $4 = '0', $5 = '77', $6 = '18'
2016-04-07 12:53:30 CEST [3782-2757] postgres@labkey LOG:  execute S_1069/C_1146: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:30 CEST [3782-2758] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2759] postgres@labkey LOG:  execute S_1073/C_1148: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:30 CEST [3782-2760] postgres@labkey DETAIL:  parameters: $1 = '6', $2 = '77'
2016-04-07 12:53:30 CEST [3782-2761] postgres@labkey LOG:  execute S_393/C_1149: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2762] postgres@labkey DETAIL:  parameters: $1 = '77'
2016-04-07 12:53:30 CEST [3782-2763] postgres@labkey LOG:  execute S_385/C_1151: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2764] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#TargetStudy', $2 = NULL, $3 = 'TargetStudy', $4 = 'TargetStudy', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#TargetStudy', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2765] postgres@labkey LOG:  execute S_389/C_1153: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2766] postgres@labkey DETAIL:  parameters: $1 = '78', $2 = '18', $3 = 'f', $4 = '1', $5 = '78', $6 = '18'
2016-04-07 12:53:30 CEST [3782-2767] postgres@labkey LOG:  execute S_1069/C_1156: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:30 CEST [3782-2768] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2769] postgres@labkey LOG:  execute S_1073/C_1158: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:30 CEST [3782-2770] postgres@labkey DETAIL:  parameters: $1 = '7', $2 = '78'
2016-04-07 12:53:30 CEST [3782-2771] postgres@labkey LOG:  execute S_393/C_1160: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2772] postgres@labkey DETAIL:  parameters: $1 = '78'
2016-04-07 12:53:30 CEST [3782-2773] postgres@labkey LOG:  execute S_385/C_1162: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2774] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#Protocol', $2 = NULL, $3 = 'Protocol', $4 = 'Protocol', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#Protocol', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2775] postgres@labkey LOG:  execute S_389/C_1164: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2776] postgres@labkey DETAIL:  parameters: $1 = '79', $2 = '18', $3 = 'f', $4 = '2', $5 = '79', $6 = '18'
2016-04-07 12:53:30 CEST [3782-2777] postgres@labkey LOG:  execute S_393/C_1167: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2778] postgres@labkey DETAIL:  parameters: $1 = '79'
2016-04-07 12:53:30 CEST [3782-2779] postgres@labkey LOG:  execute S_385/C_1169: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2780] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#RecordCount', $2 = NULL, $3 = 'RecordCount', $4 = 'RecordCount', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#RecordCount', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2781] postgres@labkey LOG:  execute S_389/C_1171: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2782] postgres@labkey DETAIL:  parameters: $1 = '80', $2 = '18', $3 = 'f', $4 = '3', $5 = '80', $6 = '18'
2016-04-07 12:53:30 CEST [3782-2783] postgres@labkey LOG:  execute S_393/C_1173: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2784] postgres@labkey DETAIL:  parameters: $1 = '80'
2016-04-07 12:53:30 CEST [3782-2785] postgres@labkey LOG:  execute S_385/C_1175: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2786] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#DatasetId', $2 = NULL, $3 = 'DatasetId', $4 = 'DatasetId', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-audit.Folder-3:AssayPublishAuditEvent#DatasetId', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2787] postgres@labkey LOG:  execute S_389/C_1177: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2788] postgres@labkey DETAIL:  parameters: $1 = '81', $2 = '18', $3 = 'f', $4 = '4', $5 = '81', $6 = '18'
2016-04-07 12:53:30 CEST [3782-2789] postgres@labkey LOG:  execute S_393/C_1179: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2790] postgres@labkey DETAIL:  parameters: $1 = '81'
2016-04-07 12:53:30 CEST [3782-2791] postgres@labkey LOG:  execute S_1181/C_1182: CREATE TABLE audit.c3d18_assayauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "sourcelsid" VARCHAR (4000), "targetstudy" VARCHAR (4000), "protocol" INTEGER, "recordcount" INTEGER, "datasetid" INTEGER)
2016-04-07 12:53:30 CEST [3782-2792] postgres@labkey LOG:  execute S_1183/C_1184: ALTER TABLE audit.c3d18_assayauditdomain ADD CONSTRAINT c3d18_assayauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:30 CEST [3782-2793] postgres@labkey LOG:  execute S_1185/C_1186: CREATE  INDEX c3d18_assayauditdomain_Protocol ON audit.c3d18_assayauditdomain ("protocol")
2016-04-07 12:53:30 CEST [3782-2794] postgres@labkey LOG:  execute S_402/C_1187: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:30 CEST [3782-2795] postgres@labkey DETAIL:  parameters: $1 = 'AssayAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-auditLog.Folder-3:AssayPublishAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d18_assayauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:30.71', $8 = '18'
2016-04-07 12:53:30 CEST [3782-2796] postgres@labkey LOG:  execute S_366/C_1189: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:30 CEST [3782-2797] postgres@labkey DETAIL:  parameters: $1 = 'DatasetAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-auditLog.Folder-3:DatasetAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:30.759'
2016-04-07 12:53:30 CEST [3782-2798] postgres@labkey LOG:  execute S_380/C_1197: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:30 CEST [3782-2799] postgres@labkey DETAIL:  parameters: $1 = 'DatasetAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-auditLog.Folder-3:DatasetAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:30.77', $6 = '19'
2016-04-07 12:53:30 CEST [3782-2800] postgres@labkey LOG:  execute S_385/C_1200: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2801] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#HasDetails', $2 = NULL, $3 = 'HasDetails', $4 = 'HasDetails', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#boolean', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#HasDetails', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2802] postgres@labkey LOG:  execute S_389/C_1202: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2803] postgres@labkey DETAIL:  parameters: $1 = '82', $2 = '19', $3 = 'f', $4 = '0', $5 = '82', $6 = '19'
2016-04-07 12:53:30 CEST [3782-2804] postgres@labkey LOG:  execute S_393/C_1204: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2805] postgres@labkey DETAIL:  parameters: $1 = '82'
2016-04-07 12:53:30 CEST [3782-2806] postgres@labkey LOG:  execute S_385/C_1206: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2807] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#Lsid', $2 = NULL, $3 = 'Lsid', $4 = 'Lsid', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#Lsid', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2808] postgres@labkey LOG:  execute S_389/C_1208: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2809] postgres@labkey DETAIL:  parameters: $1 = '83', $2 = '19', $3 = 'f', $4 = '1', $5 = '83', $6 = '19'
2016-04-07 12:53:30 CEST [3782-2810] postgres@labkey LOG:  execute S_1069/C_1210: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:30 CEST [3782-2811] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2812] postgres@labkey LOG:  execute S_1073/C_1212: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:30 CEST [3782-2813] postgres@labkey DETAIL:  parameters: $1 = '8', $2 = '83'
2016-04-07 12:53:30 CEST [3782-2814] postgres@labkey LOG:  execute S_393/C_1214: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2815] postgres@labkey DETAIL:  parameters: $1 = '83'
2016-04-07 12:53:30 CEST [3782-2816] postgres@labkey LOG:  execute S_385/C_1216: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2817] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#newRecordMap', $2 = NULL, $3 = 'newRecordMap', $4 = 'newRecordMap', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#newRecordMap', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2818] postgres@labkey LOG:  execute S_389/C_1218: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2819] postgres@labkey DETAIL:  parameters: $1 = '84', $2 = '19', $3 = 'f', $4 = '2', $5 = '84', $6 = '19'
2016-04-07 12:53:30 CEST [3782-2820] postgres@labkey LOG:  execute S_1069/C_1221: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:30 CEST [3782-2821] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2822] postgres@labkey LOG:  execute S_1073/C_1223: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:30 CEST [3782-2823] postgres@labkey DETAIL:  parameters: $1 = '9', $2 = '84'
2016-04-07 12:53:30 CEST [3782-2824] postgres@labkey LOG:  execute S_393/C_1225: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2825] postgres@labkey DETAIL:  parameters: $1 = '84'
2016-04-07 12:53:30 CEST [3782-2826] postgres@labkey LOG:  execute S_385/C_1227: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2827] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#oldRecordMap', $2 = NULL, $3 = 'oldRecordMap', $4 = 'oldRecordMap', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#oldRecordMap', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2828] postgres@labkey LOG:  execute S_389/C_1229: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2829] postgres@labkey DETAIL:  parameters: $1 = '85', $2 = '19', $3 = 'f', $4 = '3', $5 = '85', $6 = '19'
2016-04-07 12:53:30 CEST [3782-2830] postgres@labkey LOG:  execute S_1069/C_1232: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:30 CEST [3782-2831] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2832] postgres@labkey LOG:  execute S_1073/C_1234: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:30 CEST [3782-2833] postgres@labkey DETAIL:  parameters: $1 = '10', $2 = '85'
2016-04-07 12:53:30 CEST [3782-2834] postgres@labkey LOG:  execute S_393/C_1236: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2835] postgres@labkey DETAIL:  parameters: $1 = '85'
2016-04-07 12:53:30 CEST [3782-2836] postgres@labkey LOG:  execute S_385/C_1238: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2837] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#DatasetId', $2 = NULL, $3 = 'DatasetId', $4 = 'DatasetId', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#int', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 't', $27 = '0', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-audit.Folder-3:DatasetAuditEvent#DatasetId', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2838] postgres@labkey LOG:  execute S_389/C_1240: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2839] postgres@labkey DETAIL:  parameters: $1 = '86', $2 = '19', $3 = 'f', $4 = '4', $5 = '86', $6 = '19'
2016-04-07 12:53:30 CEST [3782-2840] postgres@labkey LOG:  execute S_393/C_1243: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2841] postgres@labkey DETAIL:  parameters: $1 = '86'
2016-04-07 12:53:30 CEST [3782-2842] postgres@labkey LOG:  execute S_1245/C_1246: CREATE TABLE audit.c3d19_datasetauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "hasdetails" BOOLEAN, "lsid" VARCHAR (4000), "newrecordmap" VARCHAR (4000), "oldrecordmap" VARCHAR (4000), "datasetid" INTEGER)
2016-04-07 12:53:30 CEST [3782-2843] postgres@labkey LOG:  execute S_1247/C_1248: ALTER TABLE audit.c3d19_datasetauditdomain ADD CONSTRAINT c3d19_datasetauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:30 CEST [3782-2844] postgres@labkey LOG:  execute S_402/C_1249: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:30 CEST [3782-2845] postgres@labkey DETAIL:  parameters: $1 = 'DatasetAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-auditLog.Folder-3:DatasetAuditEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d19_datasetauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:30.9', $8 = '19'
2016-04-07 12:53:30 CEST [3782-2846] postgres@labkey LOG:  execute S_366/C_1251: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:30 CEST [3782-2847] postgres@labkey DETAIL:  parameters: $1 = 'SpecimenCommentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SpecimenCommentAuditDomain-auditLog.Folder-3:SpecimenCommentEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:30.926'
2016-04-07 12:53:30 CEST [3782-2848] postgres@labkey LOG:  execute S_380/C_1259: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:30 CEST [3782-2849] postgres@labkey DETAIL:  parameters: $1 = 'SpecimenCommentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SpecimenCommentAuditDomain-auditLog.Folder-3:SpecimenCommentEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:30.96', $6 = '20'
2016-04-07 12:53:30 CEST [3782-2850] postgres@labkey LOG:  execute S_385/C_1262: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:30 CEST [3782-2851] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-SpecimenCommentAuditDomain-audit.Folder-3:SpecimenCommentEvent#VialId', $2 = NULL, $3 = 'VialId', $4 = 'VialId', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-SpecimenCommentAuditDomain-audit.Folder-3:SpecimenCommentEvent#VialId', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2852] postgres@labkey LOG:  execute S_389/C_1264: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:30 CEST [3782-2853] postgres@labkey DETAIL:  parameters: $1 = '87', $2 = '20', $3 = 'f', $4 = '0', $5 = '87', $6 = '20'
2016-04-07 12:53:30 CEST [3782-2854] postgres@labkey LOG:  execute S_1069/C_1267: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:30 CEST [3782-2855] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:30 CEST [3782-2856] postgres@labkey LOG:  execute S_1073/C_1269: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:30 CEST [3782-2857] postgres@labkey DETAIL:  parameters: $1 = '11', $2 = '87'
2016-04-07 12:53:30 CEST [3782-2858] postgres@labkey LOG:  execute S_393/C_1270: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:30 CEST [3782-2859] postgres@labkey DETAIL:  parameters: $1 = '87'
2016-04-07 12:53:30 CEST [3782-2860] postgres@labkey LOG:  execute S_1272/C_1273: CREATE TABLE audit.c3d20_specimencommentauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "vialid" VARCHAR (4000))
2016-04-07 12:53:31 CEST [3782-2861] postgres@labkey LOG:  execute S_1274/C_1275: ALTER TABLE audit.c3d20_specimencommentauditdomain ADD CONSTRAINT c3d20_specimencommentauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:31 CEST [3782-2862] postgres@labkey LOG:  execute S_402/C_1276: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:31 CEST [3782-2863] postgres@labkey DETAIL:  parameters: $1 = 'SpecimenCommentAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SpecimenCommentAuditDomain-auditLog.Folder-3:SpecimenCommentEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d20_specimencommentauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:31.097', $8 = '20'
2016-04-07 12:53:31 CEST [3782-2864] postgres@labkey LOG:  execute S_366/C_1280: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:31 CEST [3782-2865] postgres@labkey DETAIL:  parameters: $1 = 'TargetedMsRepresentativeStateAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-TargetedMsRepresentativeStateAuditDomain-auditLog.Folder-3:TargetedMSRepresentativeStateEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:31.282'
2016-04-07 12:53:31 CEST [3782-2866] postgres@labkey LOG:  execute S_366/C_1287: INSERT INTO exp.domaindescriptor
		(name, domainuri, description, container, project, storagetablename, storageschemaname, modifiedby, modified)
		VALUES ($1, $2, NULL, $3, $4, NULL, NULL, $5, $6)
	RETURNING domainid
2016-04-07 12:53:31 CEST [3782-2867] postgres@labkey DETAIL:  parameters: $1 = 'SiteSettingsAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SiteSettingsAuditDomain-auditLog.Folder-3:AppPropsEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '0', $6 = '2016-04-07 12:53:31.306'
2016-04-07 12:53:31 CEST [3782-2868] postgres@labkey LOG:  execute S_380/C_1294: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=NULL, storageschemaname=NULL, _ts=nextval('exp.domaindescriptor_ts'), modified=$5
		WHERE domainid=$6
2016-04-07 12:53:31 CEST [3782-2869] postgres@labkey DETAIL:  parameters: $1 = 'SiteSettingsAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SiteSettingsAuditDomain-auditLog.Folder-3:AppPropsEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = '2016-04-07 12:53:31.325', $6 = '22'
2016-04-07 12:53:31 CEST [3782-2870] postgres@labkey LOG:  execute S_385/C_1297: INSERT INTO exp.propertydescriptor (propertyuri, ontologyuri, name, storagecolumnname, description, rangeuri, concepturi, label, searchterms, semantictype, format, container, project, lookupcontainer, lookupschema, lookupquery, defaultvaluetype, hidden, mvenabled, importaliases, url, shownininsertview, showninupdateview, shownindetailsview, dimension, measure, scale, recommendedvariable, defaultscale, createdby, created, modifiedby, modified, facetingbehaviortype, protected, excludefromshifting)
	SELECT $1 as propertyuri, $2 as ontolotyuri, $3 as name, $4 as storagecolumnname, $5 as description, $6 as rangeuri, $7 as concepturi, $8 as label, $9 as searchterms, $10 as semantictype, $11 as format, $12 as container, $13 as project, $14 as lookupcontainer, $15 as lookupschema, $16 as lookupquery, $17 as defaultvaluetype, $18 as hidden, $19 as mvenabled, $20 as importaliases, $21 as url, $22 as shownininsertview, $23 as showninupdateview, $24 as shownindetailsview, $25 as dimension, $26 as measure, $27 as scale, $28 as recommendedvariable, $29 as defaultscale, cast($30 as int)  as createdby, now() as created, cast($31 as int) as modifiedby, now() as modified, $32 as facetingbehaviortype, $33 as protected, $34 as excludefromshifting
	WHERE NOT EXISTS (SELECT propertyid FROM exp.propertydescriptor WHERE propertyuri=$35 AND container=$36)
2016-04-07 12:53:31 CEST [3782-2871] postgres@labkey DETAIL:  parameters: $1 = 'urn:lsid:ijs.si:Audit-SiteSettingsAuditDomain-audit.Folder-3:AppPropsEvent#Changes', $2 = NULL, $3 = 'Changes', $4 = 'Changes', $5 = NULL, $6 = 'http://www.w3.org/2001/XMLSchema#string', $7 = NULL, $8 = NULL, $9 = NULL, $10 = NULL, $11 = NULL, $12 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $13 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $14 = NULL, $15 = NULL, $16 = NULL, $17 = NULL, $18 = 'f', $19 = 'f', $20 = NULL, $21 = NULL, $22 = 't', $23 = 't', $24 = 't', $25 = 'f', $26 = 'f', $27 = '4000', $28 = 'f', $29 = 'LINEAR', $30 = NULL, $31 = NULL, $32 = 'AUTOMATIC', $33 = 'f', $34 = 'f', $35 = 'urn:lsid:ijs.si:Audit-SiteSettingsAuditDomain-audit.Folder-3:AppPropsEvent#Changes', $36 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:31 CEST [3782-2872] postgres@labkey LOG:  execute S_389/C_1299: INSERT INTO exp.propertydomain ( PropertyId, DomainId, Required, SortOrder )  SELECT $1, $2, $3, $4 WHERE NOT EXISTS (SELECT * FROM exp.propertydomain WHERE PropertyId=$5 AND DomainId=$6)
2016-04-07 12:53:31 CEST [3782-2873] postgres@labkey DETAIL:  parameters: $1 = '88', $2 = '22', $3 = 'f', $4 = '0', $5 = '88', $6 = '22'
2016-04-07 12:53:31 CEST [3782-2874] postgres@labkey LOG:  execute S_1069/C_1302: INSERT INTO exp.propertyvalidator
		(name, description, typeuri, expression, properties, errormessage, container)
		VALUES ($1, NULL, $2, $3, NULL, NULL, $4)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2875] postgres@labkey DETAIL:  parameters: $1 = 'Text Length', $2 = 'urn:lsid:labkey.com:PropertyValidator:length', $3 = '~lte=4000', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56'
2016-04-07 12:53:31 CEST [3782-2876] postgres@labkey LOG:  execute S_1073/C_1304: INSERT INTO exp.validatorreference (ValidatorId,PropertyId) VALUES($1,$2)
2016-04-07 12:53:31 CEST [3782-2877] postgres@labkey DETAIL:  parameters: $1 = '12', $2 = '88'
2016-04-07 12:53:31 CEST [3782-2878] postgres@labkey LOG:  execute S_393/C_1305: DELETE FROM exp.conditionalformat WHERE PropertyId = $1
2016-04-07 12:53:31 CEST [3782-2879] postgres@labkey DETAIL:  parameters: $1 = '88'
2016-04-07 12:53:31 CEST [3782-2880] postgres@labkey LOG:  execute S_1307/C_1308: CREATE TABLE audit.c3d22_sitesettingsauditdomain ("rowid" SERIAL NOT NULL, "container" ENTITYID, "comment" VARCHAR (4000), "eventtype" VARCHAR (4000), "created" TIMESTAMP, "createdby" INTEGER, "impersonatedby" INTEGER, "projectid" ENTITYID, "changes" VARCHAR (4000))
2016-04-07 12:53:31 CEST [3782-2881] postgres@labkey LOG:  execute S_1309/C_1310: ALTER TABLE audit.c3d22_sitesettingsauditdomain ADD CONSTRAINT c3d22_sitesettingsauditdomain_pk PRIMARY KEY("rowid")
2016-04-07 12:53:31 CEST [3782-2882] postgres@labkey LOG:  execute S_402/C_1311: UPDATE exp.domaindescriptor
		SET name=$1, domainuri=$2, description=NULL, container=$3, project=$4, storagetablename=$5, storageschemaname=$6, _ts=nextval('exp.domaindescriptor_ts'), modified=$7
		WHERE domainid=$8
2016-04-07 12:53:31 CEST [3782-2883] postgres@labkey DETAIL:  parameters: $1 = 'SiteSettingsAuditDomain', $2 = 'urn:lsid:ijs.si:Audit-SiteSettingsAuditDomain-auditLog.Folder-3:AppPropsEvent', $3 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $4 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $5 = 'c3d22_sitesettingsauditdomain', $6 = 'audit', $7 = '2016-04-07 12:53:31.412', $8 = '22'
2016-04-07 12:53:31 CEST [3782-2884] postgres@labkey LOG:  execute <unnamed>: INSERT INTO audit.c3d1_userauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, "user")
		VALUES ($1, $2, $3, $4, $5, NULL, NULL, $6)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2885] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'Added to the system via the initial user page.', $3 = 'UserAuditEvent', $4 = '2016-04-07 12:52:44.978', $5 = '0', $6 = '1003'
2016-04-07 12:53:31 CEST [3782-2886] postgres@labkey LOG:  execute <unnamed>: INSERT INTO audit.c3d1_userauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, "user")
		VALUES ($1, $2, $3, $4, $5, NULL, NULL, $6)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2887] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'andrej.studen@ijs.si logged in successfully via Database authentication.', $3 = 'UserAuditEvent', $4 = '2016-04-07 12:52:45.133', $5 = '1003', $6 = '1003'
2016-04-07 12:53:31 CEST [3782-2888] postgres@labkey LOG:  execute <unnamed>: INSERT INTO audit.c3d2_groupauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, "group", "user", resourceentityid)
		VALUES ($1, $2, $3, $4, $5, NULL, NULL, $6, $7, NULL)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2889] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'User: andrej.studen@ijs.si was added as a member to Group: Administrators', $3 = 'GroupAuditEvent', $4 = '2016-04-07 12:52:45.172', $5 = '0', $6 = '-1', $7 = '1003'
2016-04-07 12:53:31 CEST [3782-2890] postgres@labkey LOG:  execute <unnamed>: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2891] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain UserAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:25.28', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-UserAuditDomain-auditLog.Folder-3:UserAuditEvent', $8 = 'UserAuditDomain'
2016-04-07 12:53:31 CEST [3782-2892] postgres@labkey LOG:  execute <unnamed>: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2893] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain UserAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:25.81', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-UserAuditDomain-auditLog.Folder-3:UserAuditEvent', $8 = 'UserAuditDomain'
2016-04-07 12:53:31 CEST [3782-2894] postgres@labkey LOG:  execute <unnamed>: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2895] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain GroupAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:25.843', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-auditLog.Folder-3:GroupAuditEvent', $8 = 'GroupAuditDomain'
2016-04-07 12:53:31 CEST [3782-2896] postgres@labkey LOG:  execute <unnamed>: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2897] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain GroupAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.115', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-GroupAuditDomain-auditLog.Folder-3:GroupAuditEvent', $8 = 'GroupAuditDomain'
2016-04-07 12:53:31 CEST [3782-2898] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2899] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain AttachmentAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.152', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-auditLog.Folder-3:AttachmentAuditEvent', $8 = 'AttachmentAuditDomain'
2016-04-07 12:53:31 CEST [3782-2900] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2901] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain AttachmentAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.333', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-AttachmentAuditDomain-auditLog.Folder-3:AttachmentAuditEvent', $8 = 'AttachmentAuditDomain'
2016-04-07 12:53:31 CEST [3782-2902] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2903] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain ContainerAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.362', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-ContainerAuditDomain-auditLog.Folder-3:ContainerAuditEvent', $8 = 'ContainerAuditDomain'
2016-04-07 12:53:31 CEST [3782-2904] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2905] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain FileSystemAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.375', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-auditLog.Folder-3:FileSystem', $8 = 'FileSystemAuditDomain'
2016-04-07 12:53:31 CEST [3782-2906] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2907] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain FileSystemAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.5', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-FileSystemAuditDomain-auditLog.Folder-3:FileSystem', $8 = 'FileSystemAuditDomain'
2016-04-07 12:53:31 CEST [3782-2908] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2909] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain FileSystemBatchAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.527', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-FileSystemBatchAuditDomain-auditLog.Folder-3:FileSystemBatch', $8 = 'FileSystemBatchAuditDomain'
2016-04-07 12:53:31 CEST [3782-2910] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2911] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain ClientApiAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.543', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-auditLog.Folder-3:Client+API+Actions', $8 = 'ClientApiAuditDomain'
2016-04-07 12:53:31 CEST [3782-2912] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2913] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain ClientApiAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.745', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-ClientApiAuditDomain-auditLog.Folder-3:Client+API+Actions', $8 = 'ClientApiAuditDomain'
2016-04-07 12:53:31 CEST [3782-2914] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2915] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain AuthenticationProviderConfigAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.774', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-AuthenticationProviderConfigAuditDomain-auditLog.Folder-3:AuthenticationProviderConfiguration', $8 = 'AuthenticationProviderConfigAuditDomain'
2016-04-07 12:53:31 CEST [3782-2916] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2917] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain AuthenticationProviderConfigAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.89', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-AuthenticationProviderConfigAuditDomain-auditLog.Folder-3:AuthenticationProviderConfiguration', $8 = 'AuthenticationProviderConfigAuditDomain'
2016-04-07 12:53:31 CEST [3782-2918] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2919] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain Users was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:26.993', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:ExtensibleTable-core.Folder-3:Users', $8 = 'Users'
2016-04-07 12:53:31 CEST [3782-2920] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2921] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain QueryAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:27.051', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-auditLog.Folder-3:QueryExportAuditEvent', $8 = 'QueryAuditDomain'
2016-04-07 12:53:31 CEST [3782-2922] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2923] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain QueryAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:27.191', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-QueryAuditDomain-auditLog.Folder-3:QueryExportAuditEvent', $8 = 'QueryAuditDomain'
2016-04-07 12:53:31 CEST [3782-2924] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2925] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain QueryUpdateAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:27.23', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-auditLog.Folder-3:QueryUpdateAuditEvent', $8 = 'QueryUpdateAuditDomain'
2016-04-07 12:53:31 CEST [3782-2926] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2927] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain QueryUpdateAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:27.391', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-QueryUpdateAuditDomain-auditLog.Folder-3:QueryUpdateAuditEvent', $8 = 'QueryUpdateAuditDomain'
2016-04-07 12:53:31 CEST [3782-2928] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2929] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain SearchAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:27.465', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SearchAuditDomain-auditLog.Folder-3:SearchAuditEvent', $8 = 'SearchAuditDomain'
2016-04-07 12:53:31 CEST [3782-2930] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2931] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain SearchAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:27.592', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SearchAuditDomain-auditLog.Folder-3:SearchAuditEvent', $8 = 'SearchAuditDomain'
2016-04-07 12:53:31 CEST [3782-2932] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:31 CEST [3782-2933] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain MessageAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:28.11', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-auditLog.Folder-3:MessageAuditEvent', $8 = 'MessageAuditDomain'
2016-04-07 12:53:32 CEST [3782-2934] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2935] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain MessageAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:28.248', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-MessageAuditDomain-auditLog.Folder-3:MessageAuditEvent', $8 = 'MessageAuditDomain'
2016-04-07 12:53:32 CEST [3782-2936] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2937] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain DomainAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:28.537', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-auditLog.Folder-3:DomainAuditEvent', $8 = 'DomainAuditDomain'
2016-04-07 12:53:32 CEST [3782-2938] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2939] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain DomainAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:28.68', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-DomainAuditDomain-auditLog.Folder-3:DomainAuditEvent', $8 = 'DomainAuditDomain'
2016-04-07 12:53:32 CEST [3782-2940] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2941] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain ExperimentAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:28.709', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-auditLog.Folder-3:ExperimentAuditEvent', $8 = 'ExperimentAuditDomain'
2016-04-07 12:53:32 CEST [3782-2942] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2943] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain ExperimentAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:28.883', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-ExperimentAuditDomain-auditLog.Folder-3:ExperimentAuditEvent', $8 = 'ExperimentAuditDomain'
2016-04-07 12:53:32 CEST [3782-2944] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2945] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain SampleSetAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:28.918', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-auditLog.Folder-3:SampleSetAuditEvent', $8 = 'SampleSetAuditDomain'
2016-04-07 12:53:32 CEST [3782-2946] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2947] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain SampleSetAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:29.086', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SampleSetAuditDomain-auditLog.Folder-3:SampleSetAuditEvent', $8 = 'SampleSetAuditDomain'
2016-04-07 12:53:32 CEST [3782-2948] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2949] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain ListAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:29.69', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-auditLog.Folder-3:ListAuditEvent', $8 = 'ListAuditDomain'
2016-04-07 12:53:32 CEST [3782-2950] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2951] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain ListAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:29.833', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-ListAuditDomain-auditLog.Folder-3:ListAuditEvent', $8 = 'ListAuditDomain'
2016-04-07 12:53:32 CEST [3782-2952] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2953] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain AssayAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:30.442', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-auditLog.Folder-3:AssayPublishAuditEvent', $8 = 'AssayAuditDomain'
2016-04-07 12:53:32 CEST [3782-2954] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2955] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain AssayAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:30.711', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-AssayAuditDomain-auditLog.Folder-3:AssayPublishAuditEvent', $8 = 'AssayAuditDomain'
2016-04-07 12:53:32 CEST [3782-2956] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2957] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain DatasetAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:30.76', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-auditLog.Folder-3:DatasetAuditEvent', $8 = 'DatasetAuditDomain'
2016-04-07 12:53:32 CEST [3782-2958] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2959] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain DatasetAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:30.901', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-DatasetAuditDomain-auditLog.Folder-3:DatasetAuditEvent', $8 = 'DatasetAuditDomain'
2016-04-07 12:53:32 CEST [3782-2960] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2961] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain SpecimenCommentAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:30.928', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SpecimenCommentAuditDomain-auditLog.Folder-3:SpecimenCommentEvent', $8 = 'SpecimenCommentAuditDomain'
2016-04-07 12:53:32 CEST [3782-2962] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2963] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain SpecimenCommentAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:31.099', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SpecimenCommentAuditDomain-auditLog.Folder-3:SpecimenCommentEvent', $8 = 'SpecimenCommentAuditDomain'
2016-04-07 12:53:32 CEST [3782-2964] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2965] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain TargetedMsRepresentativeStateAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:31.283', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-TargetedMsRepresentativeStateAuditDomain-auditLog.Folder-3:TargetedMSRepresentativeStateEvent', $8 = 'TargetedMsRepresentativeStateAuditDomain'
2016-04-07 12:53:32 CEST [3782-2966] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2967] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The domain SiteSettingsAuditDomain was created', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:31.308', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SiteSettingsAuditDomain-auditLog.Folder-3:AppPropsEvent', $8 = 'SiteSettingsAuditDomain'
2016-04-07 12:53:32 CEST [3782-2968] postgres@labkey LOG:  execute S_1335: INSERT INTO audit.c3d14_domainauditdomain
		(container, comment, eventtype, created, createdby, impersonatedby, projectid, domainuri, domainname)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, $7, $8)
	RETURNING rowid
2016-04-07 12:53:32 CEST [3782-2969] postgres@labkey DETAIL:  parameters: $1 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $2 = 'The column(s) of domain SiteSettingsAuditDomain were modified', $3 = 'DomainAuditEvent', $4 = '2016-04-07 12:53:31.413', $5 = '0', $6 = 'aeef6763-dedc-1033-b8fa-6788989ded56', $7 = 'urn:lsid:ijs.si:Audit-SiteSettingsAuditDomain-auditLog.Folder-3:AppPropsEvent', $8 = 'SiteSettingsAuditDomain'
2016-04-07 12:53:32 CEST [3782-2970] postgres@labkey LOG:  execute <unnamed>: UPDATE core.Documents SET LastIndexed = NULL
2016-04-07 12:53:32 CEST [3782-2971] postgres@labkey LOG:  execute <unnamed>: UPDATE comm.pages SET lastIndexed=NULL
2016-04-07 12:53:32 CEST [3782-2972] postgres@labkey LOG:  execute <unnamed>: UPDATE issues.issues SET lastIndexed=NULL
2016-04-07 12:53:32 CEST [3782-2973] postgres@labkey LOG:  execute <unnamed>: UPDATE comm.announcements SET LastIndexed=NULL
2016-04-07 12:53:32 CEST [3782-2974] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.material SET LastIndexed = NULL WHERE LastIndexed IS NOT NULL
2016-04-07 12:53:32 CEST [3782-2975] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.list SET LastIndexed = NULL
2016-04-07 12:53:32 CEST [3782-2976] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlResources SET LastIndexed=NULL WHERE LastIndexed<$1
2016-04-07 12:53:32 CEST [3782-2977] postgres@labkey DETAIL:  parameters: $1 = '1967-10-04 00:00:00'
2016-04-07 12:53:32 CEST [3782-2978] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlResources SET LastIndexed=NULL WHERE Parent IN (SELECT id FROM search.CrawlCollections   WHERE Path LIKE $1)
2016-04-07 12:53:32 CEST [3782-2979] postgres@labkey DETAIL:  parameters: $1 = '/_webdav/%'
2016-04-07 12:53:32 CEST [3782-2980] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections SET LastCrawled=NULL, NextCrawl=$1 WHERE Path LIKE $2
2016-04-07 12:53:32 CEST [3782-2981] postgres@labkey DETAIL:  parameters: $1 = '1967-10-05 00:00:00', $2 = '/_webdav/%'
2016-04-07 12:53:32 CEST [3782-2982] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:32 CEST [3782-2983] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/'
2016-04-07 12:53:32 CEST [3782-2984] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:32 CEST [3782-2985] postgres@labkey DETAIL:  parameters: $1 = '0', $2 = '/', $3 = '/', $4 = '2016-04-07 12:53:32.346', $5 = '1899-12-31 00:00:00', $6 = '0', $7 = '/'
2016-04-07 12:53:32 CEST [3782-2986] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:32 CEST [3782-2987] postgres@labkey DETAIL:  parameters: $1 = '1', $2 = '_webdav', $3 = '/_webdav/', $4 = '2016-04-07 12:53:32.357', $5 = '1899-12-31 00:00:00', $6 = '1', $7 = '_webdav'
2016-04-07 12:53:32 CEST [3782-2988] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:32 CEST [3782-2989] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/'
2016-04-07 12:53:32 CEST [3782-2990] postgres@labkey LOG:  execute <unnamed>: UPDATE core.Documents SET LastIndexed = NULL
2016-04-07 12:53:32 CEST [3782-2991] postgres@labkey LOG:  execute <unnamed>: UPDATE comm.pages SET lastIndexed=NULL
2016-04-07 12:53:32 CEST [3782-2992] postgres@labkey LOG:  execute <unnamed>: UPDATE issues.issues SET lastIndexed=NULL
2016-04-07 12:53:32 CEST [3782-2993] postgres@labkey LOG:  execute <unnamed>: UPDATE comm.announcements SET LastIndexed=NULL
2016-04-07 12:53:32 CEST [3782-2994] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.material SET LastIndexed = NULL WHERE LastIndexed IS NOT NULL
2016-04-07 12:53:32 CEST [3782-2995] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.list SET LastIndexed = NULL
2016-04-07 12:53:32 CEST [3782-2996] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlResources SET LastIndexed=NULL WHERE LastIndexed<$1
2016-04-07 12:53:32 CEST [3782-2997] postgres@labkey DETAIL:  parameters: $1 = '1967-10-04 00:00:00'
2016-04-07 12:53:32 CEST [3782-2998] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlResources SET LastIndexed=NULL WHERE Parent IN (SELECT id FROM search.CrawlCollections   WHERE Path LIKE $1)
2016-04-07 12:53:32 CEST [3782-2999] postgres@labkey DETAIL:  parameters: $1 = '/_webdav/%'
2016-04-07 12:53:32 CEST [3782-3000] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections SET LastCrawled=NULL, NextCrawl=$1 WHERE Path LIKE $2
2016-04-07 12:53:32 CEST [3782-3001] postgres@labkey DETAIL:  parameters: $1 = '1967-10-05 00:00:00', $2 = '/_webdav/%'
2016-04-07 12:53:32 CEST [3782-3002] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:32 CEST [3782-3003] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/'
2016-04-07 12:53:32 CEST [3782-3004] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:32 CEST [3782-3005] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/'
2016-04-07 12:53:32 CEST [3787-74] postgres@labkey LOG:  execute <unnamed>: UPDATE comm.pages SET LastIndexed = $1 WHERE Container = $2 AND Name = $3
2016-04-07 12:53:32 CEST [3787-75] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:32', $2 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $3 = 'default'
2016-04-07 12:53:32 CEST [3787-76] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections 
	SET LastCrawled=$1 WHERE  (Parent=$2 AND Name=$3)
2016-04-07 12:53:32 CEST [3787-77] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:32.882', $2 = '1', $3 = '_webdav'
2016-04-07 12:53:32 CEST [3782-3006] postgres@labkey LOG:  execute <unnamed>: UPDATE comm.pages SET LastIndexed = $1 WHERE Container = $2 AND Name = $3
2016-04-07 12:53:32 CEST [3782-3007] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:32', $2 = 'aeef676b-dedc-1033-b8fa-6788989ded56', $3 = 'default'
2016-04-07 12:53:32 CEST [3787-78] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:32 CEST [3787-79] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:02', $3 = '/_webdav/@files/'
2016-04-07 12:53:32 CEST [3787-80] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:32 CEST [3787-81] postgres@labkey DETAIL:  parameters: $1 = '2', $2 = '@files', $3 = '/_webdav/@files/', $4 = '2016-04-07 12:53:32.991', $5 = '1899-12-31 00:00:00', $6 = '2', $7 = '@files'
2016-04-07 12:53:32 CEST [3787-82] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:32 CEST [3787-83] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:02', $3 = '/_webdav/@files/'
2016-04-07 12:53:33 CEST [3787-84] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:33 CEST [3787-85] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/Shared/'
2016-04-07 12:53:33 CEST [3787-86] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:33 CEST [3787-87] postgres@labkey DETAIL:  parameters: $1 = '2', $2 = 'Shared', $3 = '/_webdav/Shared/', $4 = '2016-04-07 12:53:33.014', $5 = '1899-12-31 00:00:00', $6 = '2', $7 = 'Shared'
2016-04-07 12:53:33 CEST [3787-88] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:33 CEST [3787-89] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/Shared/'
2016-04-07 12:53:33 CEST [3787-90] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:33 CEST [3787-91] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/home/'
2016-04-07 12:53:33 CEST [3787-92] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:33 CEST [3787-93] postgres@labkey DETAIL:  parameters: $1 = '2', $2 = 'home', $3 = '/_webdav/home/', $4 = '2016-04-07 12:53:33.036', $5 = '1899-12-31 00:00:00', $6 = '2', $7 = 'home'
2016-04-07 12:53:33 CEST [3787-94] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:33 CEST [3787-95] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/home/'
2016-04-07 12:53:33 CEST [3787-96] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:33 CEST [3787-97] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:32.907', $2 = '2016-04-08 00:50:17.842', $3 = '/_webdav/'
2016-04-07 12:53:34 CEST [3787-98] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections 
	SET LastCrawled=$1 WHERE  (Parent=$2 AND Name=$3) OR  (Parent=$4 AND Name=$5) OR  (Parent=$6 AND Name=$7)
2016-04-07 12:53:34 CEST [3787-99] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:34.913', $2 = '2', $3 = 'Shared', $4 = '2', $5 = 'home', $6 = '2', $7 = '@files'
2016-04-07 12:53:35 CEST [3787-100] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3787-101] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:03', $3 = '/_webdav/Shared/@files/'
2016-04-07 12:53:35 CEST [3787-102] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:35 CEST [3787-103] postgres@labkey DETAIL:  parameters: $1 = '4', $2 = '@files', $3 = '/_webdav/Shared/@files/', $4 = '2016-04-07 12:53:35.073', $5 = '1899-12-31 00:00:00', $6 = '4', $7 = '@files'
2016-04-07 12:53:35 CEST [3787-104] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3787-105] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:03', $3 = '/_webdav/Shared/@files/'
2016-04-07 12:53:35 CEST [3787-106] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3787-107] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:34.968', $2 = '2016-04-07 19:31:48.995', $3 = '/_webdav/Shared/'
2016-04-07 12:53:35 CEST [3782-3008] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3009] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:03', $3 = '/_webdav/home/@files/'
2016-04-07 12:53:35 CEST [3782-3010] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:35 CEST [3782-3011] postgres@labkey DETAIL:  parameters: $1 = '5', $2 = '@files', $3 = '/_webdav/home/@files/', $4 = '2016-04-07 12:53:35.14', $5 = '1899-12-31 00:00:00', $6 = '5', $7 = '@files'
2016-04-07 12:53:35 CEST [3782-3012] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3013] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:03', $3 = '/_webdav/home/@files/'
2016-04-07 12:53:35 CEST [3782-3014] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3015] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/home/support/'
2016-04-07 12:53:35 CEST [3782-3016] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:35 CEST [3782-3017] postgres@labkey DETAIL:  parameters: $1 = '5', $2 = 'support', $3 = '/_webdav/home/support/', $4 = '2016-04-07 12:53:35.159', $5 = '1899-12-31 00:00:00', $6 = '5', $7 = 'support'
2016-04-07 12:53:35 CEST [3782-3018] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3019] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:00', $3 = '/_webdav/home/support/'
2016-04-07 12:53:35 CEST [3782-3020] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3021] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.101', $2 = '2016-04-07 22:48:15.757', $3 = '/_webdav/home/'
2016-04-07 12:53:35 CEST [3782-3022] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections 
	SET LastCrawled=$1 WHERE  (Parent=$2 AND Name=$3) OR  (Parent=$4 AND Name=$5) OR  (Parent=$6 AND Name=$7)
2016-04-07 12:53:35 CEST [3782-3023] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.198', $2 = '5', $3 = 'support', $4 = '4', $5 = '@files', $6 = '5', $7 = '@files'
2016-04-07 12:53:35 CEST [3782-3024] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlResources SET LastIndexed=$1, Modified=CAST($2 AS TIMESTAMP) WHERE Parent=$3 AND Name=$4
2016-04-07 12:53:35 CEST [3782-3025] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35', $2 = '2016-04-05 02:00:00', $3 = '3', $4 = 'system_maintenance_2016-04-05_01-59-59.log'
2016-04-07 12:53:35 CEST [3782-3026] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.CrawlResources(Parent,Name,LastIndexed, Modified) VALUES ($1,$2,$3,CAST($4 AS TIMESTAMP))
2016-04-07 12:53:35 CEST [3782-3027] postgres@labkey DETAIL:  parameters: $1 = '3', $2 = 'system_maintenance_2016-04-05_01-59-59.log', $3 = '2016-04-07 12:53:35', $4 = '2016-04-05 02:00:00'
2016-04-07 12:53:35 CEST [3782-3028] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3029] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:04', $3 = '/_webdav/home/support/@files/'
2016-04-07 12:53:35 CEST [3782-3030] postgres@labkey LOG:  execute S_1418: INSERT INTO search.crawlcollections (parent, name, path, lastcrawled, nextcrawl)
	SELECT $1 as parent, $2 as name, $3 as path, $4 as lastcrawled, $5 as nextcrawl
	WHERE NOT EXISTS (SELECT * FROM search.crawlcollections WHERE parent=$6 and name=$7)
	RETURNING id
2016-04-07 12:53:35 CEST [3782-3031] postgres@labkey DETAIL:  parameters: $1 = '8', $2 = '@files', $3 = '/_webdav/home/support/@files/', $4 = '2016-04-07 12:53:35.239', $5 = '1899-12-31 00:00:00', $6 = '8', $7 = '@files'
2016-04-07 12:53:35 CEST [3787-108] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlResources SET LastIndexed=$1, Modified=CAST($2 AS TIMESTAMP) WHERE Parent=$3 AND Name=$4
2016-04-07 12:53:35 CEST [3787-109] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35', $2 = '2016-04-06 02:00:00', $3 = '3', $4 = 'system_maintenance_2016-04-06_01-59-59.log'
2016-04-07 12:53:35 CEST [3787-110] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.CrawlResources(Parent,Name,LastIndexed, Modified) VALUES ($1,$2,$3,CAST($4 AS TIMESTAMP))
2016-04-07 12:53:35 CEST [3787-111] postgres@labkey DETAIL:  parameters: $1 = '3', $2 = 'system_maintenance_2016-04-06_01-59-59.log', $3 = '2016-04-07 12:53:35', $4 = '2016-04-06 02:00:00'
2016-04-07 12:53:35 CEST [3782-3032] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3033] postgres@labkey DETAIL:  parameters: $1 = '1899-12-31 00:00:00', $2 = '1967-10-04 00:00:04', $3 = '/_webdav/home/support/@files/'
2016-04-07 12:53:35 CEST [3787-112] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlResources SET LastIndexed=$1, Modified=CAST($2 AS TIMESTAMP) WHERE Parent=$3 AND Name=$4
2016-04-07 12:53:35 CEST [3787-113] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35', $2 = '2016-04-07 02:00:00', $3 = '3', $4 = 'system_maintenance_2016-04-07_01-59-59.log'
2016-04-07 12:53:35 CEST [3787-114] postgres@labkey LOG:  execute <unnamed>: INSERT INTO search.CrawlResources(Parent,Name,LastIndexed, Modified) VALUES ($1,$2,$3,CAST($4 AS TIMESTAMP))
2016-04-07 12:53:35 CEST [3787-115] postgres@labkey DETAIL:  parameters: $1 = '3', $2 = 'system_maintenance_2016-04-07_01-59-59.log', $3 = '2016-04-07 12:53:35', $4 = '2016-04-07 02:00:00'
2016-04-07 12:53:35 CEST [3782-3034] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3035] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.268', $2 = '2016-04-08 03:03:03.875', $3 = '/_webdav/Shared/@files/'
2016-04-07 12:53:35 CEST [3787-116] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3787-117] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.19', $2 = '2016-04-08 08:54:06.176', $3 = '/_webdav/@files/'
2016-04-07 12:53:35 CEST [3782-3036] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3037] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.29', $2 = '2016-04-08 02:02:02.608', $3 = '/_webdav/home/@files/'
2016-04-07 12:53:35 CEST [3787-118] postgres@labkey LOG:  execute S_247: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3787-119] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.213', $2 = '2016-04-07 22:15:24.211', $3 = '/_webdav/home/support/'
2016-04-07 12:53:35 CEST [3782-3038] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections 
	SET LastCrawled=$1 WHERE  (Parent=$2 AND Name=$3)
2016-04-07 12:53:35 CEST [3782-3039] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.312', $2 = '8', $3 = '@files'
2016-04-07 12:53:35 CEST [3782-3040] postgres@labkey LOG:  execute S_1392: UPDATE search.CrawlCollections  SET LastCrawled=$1, NextCrawl=$2  WHERE  Path=$3 
2016-04-07 12:53:35 CEST [3782-3041] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:53:35.335', $2 = '2016-04-08 12:41:47.45', $3 = '/_webdav/home/support/@files/'
2016-04-07 12:54:32 CEST [3782-3042] postgres@labkey LOG:  execute S_69/C_1442: INSERT INTO prop.propertysets
		(objectid, category, userid, encryption)
		VALUES ($1, $2, $3, $4)
	RETURNING set
2016-04-07 12:54:32 CEST [3782-3043] postgres@labkey DETAIL:  parameters: $1 = 'aeef6761-dedc-1033-b8fa-6788989ded56', $2 = 'FifteenMinuteDigest', $3 = '0', $4 = 'None'
2016-04-07 12:55:35 CEST [3782-3044] postgres@labkey LOG:  execute <unnamed>: UPDATE pipeline.statusfiles SET Modified = $1, ModifiedBy = $2, FilePath = $3 WHERE FilePath = $4
2016-04-07 12:55:35 CEST [3782-3045] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.757', $2 = '1003', $3 = '/data0/labkey/files', $4 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3046] postgres@labkey LOG:  execute <unnamed>: UPDATE pipeline.statusfiles SET Modified = $1, ModifiedBy = $2, FilePath = $3 || substr(FilePath, 25, 5000) WHERE POSITION($4 IN FilePath) = 1
2016-04-07 12:55:35 CEST [3782-3047] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.757', $2 = '1003', $3 = '/data0/labkey/files/', $4 = '/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3048] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.data SET Modified = $1, ModifiedBy = $2, DataFileUrl = $3 WHERE DataFileUrl = $4
2016-04-07 12:55:35 CEST [3782-3049] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.768', $2 = '1003', $3 = 'file:/data0/labkey/files/', $4 = 'file:/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3050] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.data SET Modified = $1, ModifiedBy = $2, DataFileUrl = $3 || substr(DataFileUrl, 30, 5000) WHERE POSITION($4 IN DataFileUrl) = 1
2016-04-07 12:55:35 CEST [3782-3051] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.768', $2 = '1003', $3 = 'file:/data0/labkey/files/', $4 = 'file:/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3052] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.experimentrun SET Modified = $1, ModifiedBy = $2, FilePathRoot = $3 WHERE FilePathRoot = $4
2016-04-07 12:55:35 CEST [3782-3053] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.77', $2 = '1003', $3 = '/data0/labkey/files', $4 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3054] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.experimentrun SET Modified = $1, ModifiedBy = $2, FilePathRoot = $3 || substr(FilePathRoot, 25, 5000) WHERE POSITION($4 IN FilePathRoot) = 1
2016-04-07 12:55:35 CEST [3782-3055] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.77', $2 = '1003', $3 = '/data0/labkey/files/', $4 = '/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3056] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.objectproperty SET StringValue = $1  WHERE PropertyId IN (SELECT PropertyId FROM exp.propertydescriptor pd WHERE RangeURI = $2) AND StringValue = $3
2016-04-07 12:55:35 CEST [3782-3057] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files', $2 = 'http://cpas.fhcrc.org/exp/xml#fileLink', $3 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3058] postgres@labkey LOG:  execute <unnamed>: UPDATE exp.objectproperty SET StringValue = $1 || substr(StringValue, 25, 5000) WHERE PropertyId IN (SELECT PropertyId FROM exp.propertydescriptor pd WHERE RangeURI = $2) AND POSITION($3 IN StringValue) = 1
2016-04-07 12:55:35 CEST [3782-3059] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files/', $2 = 'http://cpas.fhcrc.org/exp/xml#fileLink', $3 = '/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3060] postgres@labkey LOG:  execute <unnamed>: UPDATE flow.object SET uri = $1 WHERE uri = $2
2016-04-07 12:55:35 CEST [3782-3061] postgres@labkey DETAIL:  parameters: $1 = 'file:/data0/labkey/files/', $2 = 'file:/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3062] postgres@labkey LOG:  execute <unnamed>: UPDATE flow.object SET uri = $1 || substr(uri, 30, 5000) WHERE POSITION($2 IN uri) = 1
2016-04-07 12:55:35 CEST [3782-3063] postgres@labkey DETAIL:  parameters: $1 = 'file:/data0/labkey/files/', $2 = 'file:/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3064] postgres@labkey LOG:  execute <unnamed>: UPDATE ms2.runs SET Modified = $1, ModifiedBy = $2, Path = $3 WHERE Path = $4
2016-04-07 12:55:35 CEST [3782-3065] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.828', $2 = '1003', $3 = '/data0/labkey/files', $4 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3066] postgres@labkey LOG:  execute <unnamed>: UPDATE ms2.runs SET Modified = $1, ModifiedBy = $2, Path = $3 || substr(Path, 25, 5000) WHERE POSITION($4 IN Path) = 1
2016-04-07 12:55:35 CEST [3782-3067] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 12:55:35.828', $2 = '1003', $3 = '/data0/labkey/files/', $4 = '/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3068] postgres@labkey LOG:  execute <unnamed>: UPDATE ms2.fractions SET MzXMLURL = $1 WHERE MzXMLURL = $2
2016-04-07 12:55:35 CEST [3782-3069] postgres@labkey DETAIL:  parameters: $1 = 'file:/data0/labkey/files/', $2 = 'file:/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3070] postgres@labkey LOG:  execute <unnamed>: UPDATE ms2.fractions SET MzXMLURL = $1 || substr(MzXMLURL, 30, 5000) WHERE POSITION($2 IN MzXMLURL) = 1
2016-04-07 12:55:35 CEST [3782-3071] postgres@labkey DETAIL:  parameters: $1 = 'file:/data0/labkey/files/', $2 = 'file:/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3072] postgres@labkey LOG:  execute <unnamed>: UPDATE ms2.proteinprophetfiles SET FilePath = $1 WHERE FilePath = $2
2016-04-07 12:55:35 CEST [3782-3073] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files', $2 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3074] postgres@labkey LOG:  execute <unnamed>: UPDATE ms2.proteinprophetfiles SET FilePath = $1 || substr(FilePath, 25, 5000) WHERE POSITION($2 IN FilePath) = 1
2016-04-07 12:55:35 CEST [3782-3075] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files/', $2 = '/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3076] postgres@labkey LOG:  execute <unnamed>: UPDATE prot.annotinsertions SET FileName = $1 WHERE FileName = $2
2016-04-07 12:55:35 CEST [3782-3077] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files', $2 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3078] postgres@labkey LOG:  execute <unnamed>: UPDATE prot.annotinsertions SET FileName = $1 || substr(FileName, 25, 5000) WHERE POSITION($2 IN FileName) = 1
2016-04-07 12:55:35 CEST [3782-3079] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files/', $2 = '/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3080] postgres@labkey LOG:  execute <unnamed>: UPDATE prot.fastafiles SET FileName = $1 WHERE FileName = $2
2016-04-07 12:55:35 CEST [3782-3081] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files', $2 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3082] postgres@labkey LOG:  execute <unnamed>: UPDATE prot.fastafiles SET FileName = $1 || substr(FileName, 25, 5000) WHERE POSITION($2 IN FileName) = 1
2016-04-07 12:55:35 CEST [3782-3083] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files/', $2 = '/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3084] postgres@labkey LOG:  execute <unnamed>: UPDATE ms1.files SET MzXMLURL = $1 WHERE MzXMLURL = $2
2016-04-07 12:55:35 CEST [3782-3085] postgres@labkey DETAIL:  parameters: $1 = 'file:/data0/labkey/files/', $2 = 'file:/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3086] postgres@labkey LOG:  execute <unnamed>: UPDATE ms1.files SET MzXMLURL = $1 || substr(MzXMLURL, 30, 5000) WHERE POSITION($2 IN MzXMLURL) = 1
2016-04-07 12:55:35 CEST [3782-3087] postgres@labkey DETAIL:  parameters: $1 = 'file:/data0/labkey/files/', $2 = 'file:/usr/share/labkey/files/'
2016-04-07 12:55:35 CEST [3782-3088] postgres@labkey LOG:  execute <unnamed>: UPDATE study.uploadlog SET FilePath = $1 WHERE FilePath = $2
2016-04-07 12:55:35 CEST [3782-3089] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files', $2 = '/usr/share/labkey/files'
2016-04-07 12:55:35 CEST [3782-3090] postgres@labkey LOG:  execute <unnamed>: UPDATE study.uploadlog SET FilePath = $1 || substr(FilePath, 25, 5000) WHERE POSITION($2 IN FilePath) = 1
2016-04-07 12:55:35 CEST [3782-3091] postgres@labkey DETAIL:  parameters: $1 = '/data0/labkey/files/', $2 = '/usr/share/labkey/files/'
2016-04-07 13:05:38 CEST [3782-3092] postgres@labkey LOG:  execute S_1611/C_1612: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=$6, permanent=$7, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$8
2016-04-07 13:05:38 CEST [3782-3093] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '1', $4 = 'Wiki', $5 = '!content', $6 = 'legacyPageAdded=true', $7 = 'f', $8 = '4'
2016-04-07 13:05:38 CEST [3782-3094] postgres@labkey LOG:  execute S_1611/C_1613: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=$6, permanent=$7, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$8
2016-04-07 13:05:38 CEST [3782-3095] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '2', $4 = 'Projects', $5 = '!content', $6 = 'legacyPageAdded=true', $7 = 'f', $8 = '7'
2016-04-07 13:05:38 CEST [3782-3096] postgres@labkey LOG:  execute S_1611/C_1614: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=$6, permanent=$7, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$8
2016-04-07 13:05:38 CEST [3782-3097] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '3', $4 = 'Wiki Table of Contents', $5 = 'right', $6 = 'legacyPageAdded=true', $7 = 'f', $8 = '5'
2016-04-07 13:05:38 CEST [3782-3098] postgres@labkey LOG:  execute S_1611/C_1615: UPDATE core.portalwebparts
		SET container=$1, pageid=$2, index=$3, name=$4, location=$5, properties=$6, permanent=$7, permission=NULL, permissioncontainer=NULL
		WHERE rowid=$8
2016-04-07 13:05:38 CEST [3782-3099] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'portal.default', $3 = '4', $4 = 'Messages', $5 = '!content', $6 = 'legacyPageAdded=true', $7 = 'f', $8 = '6'
2016-04-07 13:05:39 CEST [3782-3100] postgres@labkey LOG:  execute S_213/C_1618: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 13:05:39 CEST [3782-3101] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'DefaultDashboard', $3 = '1', $4 = 'Wiki', $5 = '!content', $6 = 'f'
2016-04-07 13:05:39 CEST [3782-3102] postgres@labkey LOG:  execute S_213/C_1619: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 13:05:39 CEST [3782-3103] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'DefaultDashboard', $3 = '2', $4 = 'Projects', $5 = '!content', $6 = 'f'
2016-04-07 13:05:39 CEST [3782-3104] postgres@labkey LOG:  execute S_213/C_1620: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 13:05:39 CEST [3782-3105] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'DefaultDashboard', $3 = '3', $4 = 'Wiki Table of Contents', $5 = 'right', $6 = 'f'
2016-04-07 13:05:39 CEST [3782-3106] postgres@labkey LOG:  execute S_213/C_1621: INSERT INTO core.portalwebparts
		(container, pageid, index, name, location, properties, permanent, permission, permissioncontainer)
		VALUES ($1, $2, $3, $4, $5, NULL, $6, NULL, NULL)
	RETURNING rowid
2016-04-07 13:05:39 CEST [3782-3107] postgres@labkey DETAIL:  parameters: $1 = 'aeef6762-dedc-1033-b8fa-6788989ded56', $2 = 'DefaultDashboard', $3 = '4', $4 = 'Messages', $5 = '!content', $6 = 'f'
2016-04-07 13:23:35 CEST [3782-3108] postgres@labkey LOG:  execute <unnamed>: UPDATE search.CrawlCollections 
	SET LastCrawled=$1 WHERE  (Parent=$2 AND Name=$3)
2016-04-07 13:23:35 CEST [3782-3109] postgres@labkey DETAIL:  parameters: $1 = '2016-04-07 13:23:35.406', $2 = '0', $3 = '/'
2016-04-07 13:23:36 CEST [3782-3110] postgres@labkey LOG:  execute <unnamed>: DELETE FROM search.CrawlResources WHERE Parent IN (SELECT id FROM search.CrawlCollections WHERE Path LIKE $1)
2016-04-07 13:23:36 CEST [3782-3111] postgres@labkey DETAIL:  parameters: $1 = '/%'
2016-04-07 13:23:36 CEST [3782-3112] postgres@labkey LOG:  execute <unnamed>: DELETE FROM search.CrawlCollections WHERE Path LIKE $1
2016-04-07 13:23:36 CEST [3782-3113] postgres@labkey DETAIL:  parameters: $1 = '/%'
