Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
  6. http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
  7.  
  8. <!--
  9. See http://wiki.openmrs.org/display/docs/Module+liquibase+File for
  10. documentation on this file.
  11.  
  12. See http://www.liquibase.org/manual/home#available_database_refactorings
  13. for a list of supported elements and attributes
  14. -->
  15.  
  16. <!-- Uncomment the changeset below if you want to make the Item class persistable, see also Item and PatientvitalsDaoTest -->
  17.  
  18. <!-- <changeSet id="patientvitals-2016-08-02-12-21" author="raff">
  19. <preConditions onFail="MARK_RAN">
  20. <not><tableExists tableName="patientvitals_item"/></not>
  21. </preConditions>
  22. <comment>
  23. Creating the patientvitals_item table
  24. </comment>
  25. <createTable tableName="patientvitals_item">
  26. <column name="patientvitals_item_id" type="int" autoIncrement="true">
  27. <constraints primaryKey="true" nullable="false"/>
  28. </column>
  29. <column name="uuid" type="char(38)">
  30. <constraints nullable="false" unique="true"></constraints>
  31. </column>
  32. <column name="owner" type="int" />
  33. <column name="description" type="varchar(255)" />
  34. </createTable>
  35. <addForeignKeyConstraint constraintName="patientvitals_item_owner_fk" baseTableName="patientvitals_item" baseColumnNames="owner" referencedTableName="users"
  36. referencedColumnNames="user_id" />
  37.  
  38. </changeSet> -->
  39.  
  40.  
  41. <changeSet id="patientvitals-2016-08-02-12-21" author="Tendo Kiiza Martyn">
  42. <preConditions onFail="MARK_RAN">
  43. <not><tableExists tableName="PATIENTVITALS"/></not>
  44. </preConditions>
  45. <createTable tableName="patientvitals_item">
  46. <column name="patientvitals_item_id" type="int" autoIncrement="true">
  47. <constraints primaryKey="true" nullable="false"/> <column/>
  48. <column name="blood_pressure" type="varchar(255)"/>
  49. <column name="bmi" type="float"/>
  50. <column name="description" type="String"/>
  51. <column name="height" type="float"/>
  52. <column name="owner" type="User"/>
  53. <column name="pulse_rate" type="int"/>
  54. <column name="temperature" type="int"/>
  55. <column name="weight" type="int"/>
  56. </createTable>
  57. <addForeignKeyConstraint constraintName="patientvitals_item_owner_fk" baseTableName="patientvitals_item" baseColumnNames="owner" referencedTableName="users"
  58. referencedColumnNames="user_id" />
  59. </changeSet>
  60. </databaseChangeLog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement