Skip to content

Commit

Permalink
Merge bc447f4 into a7600d3
Browse files Browse the repository at this point in the history
  • Loading branch information
mddubey committed Oct 21, 2019
2 parents a7600d3 + bc447f4 commit 90279ad
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
12 changes: 12 additions & 0 deletions api/src/main/resources/liquibase-update-to-2.3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,16 @@
<column name="description" type="varchar(1)" />
</createTable>
</changeSet>
<changeSet id="TRUNK-5672-201910211105" author="Mritunjay">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT COUNT(*) FROM users where username = 'admin'
</sqlCheck>
</preConditions>
<comment>Populate username for admin user</comment>
<update tableName="users">
<column name="username" value="admin"/>
<where>system_id='admin'</where>
</update>
</changeSet>
</databaseChangeLog>
35 changes: 35 additions & 0 deletions api/src/main/resources/liquibase-update-to-2.4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This Source Code Form is subject to the terms of the Mozilla Public License,
v. 2.0. If a copy of the MPL was not distributed with this file, You can
obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
graphic logo is a trademark of OpenMRS Inc.
-->
<!--
This file contains all changesets that have been introduced on top of liquibase-update-to-2.0.xml exclusively.
If you intend for a changeset to be backported to older releases, you must put such a changeset in the
liquibase-update-to-2.0.xml, which have been used for older releases.
-->
<databaseChangeLog logicalFilePath="liquibase-update-to-latest.xml" xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<changeSet id="TRUNK-5672-201910211120" author="Mritunjay">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT COUNT(*) FROM users where username = 'admin'
</sqlCheck>
</preConditions>
<comment>Populate username for admin user</comment>
<update tableName="users">
<column name="username" value="admin"/>
<where>system_id='admin'</where>
</update>
</changeSet>
</databaseChangeLog>
3 changes: 2 additions & 1 deletion api/src/main/resources/liquibase-update-to-latest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
<include file="liquibase-update-to-2.1.xml"/>
<include file="liquibase-update-to-2.2.xml"/>
<include file="liquibase-update-to-2.3.xml"/>
<include file="liquibase-update-to-2.4.xml"/>

</databaseChangeLog>
</databaseChangeLog>

0 comments on commit 90279ad

Please sign in to comment.