Skip to content

Commit 7dcfc5b

Browse files
committed
Anjaly | BDSHR-1326 | changing prescribed_drugs_id column to
prescribed_drug_id in prescribed_drug table.
1 parent cfc9114 commit 7dcfc5b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/resources/db/changelog/db-changelog.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,5 +1057,14 @@
10571057
<comment>Renaming the table prescribed_drugs to prescribed_drug</comment>
10581058
<renameTable newTableName="prescribed_drug" oldTableName="prescribed_drugs"/>
10591059
</changeSet>
1060+
<changeSet id="sharedhealth-datasense-20160802-1356" author="Anjaly" context="setup">
1061+
<preConditions onFail="MARK_RAN">
1062+
<columnExists columnName="prescribed_drugs_id" tableName="prescribed_drug"/>
1063+
</preConditions>
1064+
<comment>change prescribed_drug table, prescribed_drugs_id column to prescribed_drug_id</comment>
1065+
<sql>
1066+
ALTER TABLE prescribed_drug CHANGE prescribed_drugs_id prescribed_drug_id int auto_increment;
1067+
</sql>
1068+
</changeSet>
10601069

10611070
</databaseChangeLog>

0 commit comments

Comments
 (0)