smaiya

Untitled

Aug 30th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. <changeSet id="TRUNK-5413" author="odorajonathan">
  2. <preConditions onFail="MARK_RAN">
  3. <not><columnExists tableName="order_set" columnName="category"/></not>
  4. </preConditions>
  5. <comment>
  6. Add a category field to the order_set table
  7. </comment>
  8. <addColumn tableName="order_set">
  9. <column name="category" type="int"/>
  10. </addColumn>
  11. <addForeignKeyConstraint constraintName="category_order_set_fk" referencedTableName="concept"
  12. baseColumnNames="category" baseTableName="order_set" referencedColumnNames="concept_id"/>
  13. </changeSet>
  14.  
  15. <changeSet id="" author="">
  16. <addColumn tableName="drug">
  17. <column name="pre_conditions" type="varchar(50)" >
  18. <constraints nullable="false"/>
  19. </column>
  20. <column name="blood_group" type="varchar(50)">
  21. <constraints nullable="false"/>
  22. </column>
  23. <column name="rh_type" type="varchar(50)">
  24. <constraints nullable="false"/>
  25. </column>
  26. <column name="habits" type="varchar(50)">
  27. <constraints nullable="false"/>
  28. </column>
  29. <column name="ethnicity" type="varchar(50)">
  30. <constraints nullable="false"/>
  31. </column>
  32. </addColumn>
  33. </changeSet>
Add Comment
Please, Sign In to add comment