Skip to content

Commit

Permalink
Merge pull request #697 from openelisglobal/develop
Browse files Browse the repository at this point in the history
OE 6.2 Final
  • Loading branch information
caseyi authored Dec 7, 2016
2 parents 2867a1c + 4808b5e commit 6230296
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions liquibase/OE6.1.x/ci_regional/Site_information.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
id, name, description)
VALUES (nextval('clinlims.site_information_domain_seq'),'MenuStatementConfig','Manage menu Item');

INSERT INTO clinlims.site_information(
id, name, lastupdated, description, value, encrypted, domain_id,
value_type, instruction_key, "group", schedule_id, tag, dictionary_category_id,
description_key, name_key)
VALUES (nextval('clinlims.site_information_seq'),'siteNumber',now(),'site Id Number','lnsp',default,1,'text',default,0,default,default,default,'siteInfo.siteNumber',default);



INSERT INTO clinlims.site_information(
id, name, lastupdated, description, value, encrypted, domain_id,
value_type, instruction_key, "group", schedule_id, tag, dictionary_category_id,
Expand All @@ -31,10 +25,47 @@ UPDATE clinlims.site_information
SET value = 'CI'
WHERE name='stringContext';


UPDATE clinlims.site_information
SET value = 'CDI'
WHERE name='passwordRequirements';

</sql>
</changeSet>



<changeSet author="CI OpenELIS developers group" id="2" context="ci_regional,ci_general">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">select count(*) from clinlims.site_information where name = 'siteNumber';
</sqlCheck>
</preConditions>
<comment>Insert in clinlims new site information</comment>
<sql>INSERT INTO clinlims.site_information(
id, name, lastupdated, description, value, encrypted, domain_id,
value_type, instruction_key, "group", schedule_id, tag, dictionary_category_id,
description_key, name_key)
VALUES (nextval('clinlims.site_information_seq'),'siteNumber',now(),'site Id Number','lnsp',default,1,'text',default,0,default,default,default,'siteInfo.siteNumber',default);

</sql>
</changeSet>


<changeSet author="CI OpenELIS developers group" id="3" context="ci_regional,ci_general">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">select count(*) from clinlims.site_information where name = 'Accession number prefix';
</sqlCheck>
</preConditions>
<comment>Insert in clinlims new site information</comment>
<sql>INSERT INTO clinlims.site_information(
id, name, lastupdated, description, value, encrypted, domain_id,
value_type, instruction_key, "group", schedule_id, tag, dictionary_category_id,
description_key, name_key)
VALUES (nextval('clinlims.site_information_seq'),'Accession number prefix',now(),'Prefix for SITEYEARNUM format. Can not be changed if there are samples',(select value from clinlims.site_information where name = 'siteNumber'),default,1,'text',default,0,default,default,default,'siteInfo.Accession.number.prefix',default);

</sql>
</changeSet>



</databaseChangeLog>

0 comments on commit 6230296

Please sign in to comment.