update SYSPARAMETERS set VALUESTRING = '1'  where CONTEXT = 'SYSTEMINFO' and name = 'DBVersionHigh';
update SYSPARAMETERS set VALUESTRING = '158' where CONTEXT = 'SYSTEMINFO' and name = 'DBVersionLow';
update SYSPARAMETERS set VALUESTRING = '2005-09-04' where CONTEXT = 'SYSTEMINFO' and name = 'DBCreationDate';

alter table documents
	add creationdate timestamp;

insert into SYSPARAMETERS
            (SYSPARAMETERID, CONTEXT, CONTEXT_KEY, NAME, NAME_KEY, VALUESTRING, DESCRIPTION, DESCR_KEY, ALLOWNULL, READONLY, HIDE, DATATYPE)
     values (70, 'DOCUMENT', 'sysparam.context.document', 'EnableDocumentCreationDateCoverage', 'sysparam.context.document.enabledocumentcreationdatecoverage', '0', 'Enable input of document creation date', 'sysparam.context.document.enabledocumentcreationdatecoverage.descr', 0, 0, 0, 2);

insert into DOCUMENTVIEWFIELDS
            (FIELDID, NAME, NAMEKEY, DEFAULTFIELD)
     values (20, 'creationDate', 'vkc.creationdate', 0);

commit;