gauravpaliwal

liquibase.xml

Jul 6th, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 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.  
  10. <changeSet id="feedback-2011-05-28-10:59" author="gauravpaliwal">
  11. <preConditions onFail="MARK_RAN">
  12. <not><tableExists tableName="feedback_severity"/></not>
  13. <not><tableExists tableName="feedback_status"/></not>
  14. <not><tableExists tableName="feedback_predefined_subject"/></not>
  15. <not><tableExists tableName="feedback_feedback"/></not>
  16. </preConditions>
  17. <comment>
  18. Creating the tables for feedback Module
  19. </comment>
  20. <createTable tableName="feedback_severity">
  21. <column name="feedback_severity_id" type="int">
  22. <constraints primaryKey="true" nullable="false"/>
  23. </column>
  24. <column name="severity" type="varchar(50)"/>
  25. <column name="uuid" type="varchar(38)"/>
  26.  
  27. </createTable>
  28. <createTable tableName="feedback_status">
  29. <column name="feedback_status_id" type="int">
  30. <constraints primaryKey="true" nullable="false"/>
  31. </column>
  32. <column name="status" type="varchar(50)"/>
  33. <column name="uuid" type="varchar(38)"/>
  34.  
  35. </createTable>
  36. <createTable tableName="feedback_predefined_subject">
  37. <column name="feedback_predefined_subject_id" type="int">
  38. <constraints primaryKey="true" nullable="false"/>
  39. </column>
  40. <column name="subject" type="varchar(50)"/>
  41. <column name="uuid" type="varchar(38)"/>
  42. </createTable>
  43. <createTable tableName="feedback_feedback">
  44. <column name="feedback_id" type="int">
  45. <constraints primaryKey="true" nullable="false"/>
  46. </column>
  47. <column name="creator" type="int">
  48. <constraints nullable="false"/>
  49. </column>
  50. <column name="changed_by" type="int">
  51. <constraints nullable="true"/>
  52. </column>
  53. <column name="subject" type="varchar(255)">
  54. <constraints nullable="false"/>
  55. </column>
  56. <column name="content" type="varchar(65000)">
  57. <constraints nullable="false"/>
  58. </column>
  59. <column name="severity" type="varchar(25)">
  60. <constraints nullable="false"/>
  61. </column>
  62. <column name="comment" type="varchar(5000)"/>
  63. <column name="status" type="varchar(25)"/>
  64. <column name="date_created" type="date">
  65. <constraints nullable="false"/>
  66. </column>
  67. <column name="date_changed" type="date" />
  68. <column name="uuid" type="varchar(38)"/>
  69. <column name="attachment" type="blob"/>
  70. </createTable>
  71. <addAutoIncrement tableName="feedback_feedback" columnName="feedback_id" columnDataType="int"/>
  72. <addAutoIncrement tableName="feedback_predefined_subject" columnName="feedback_predefined_subject_id" columnDataType="int"/>
  73. <addAutoIncrement tableName="feedback_severity" columnName="feedback_severity_id" columnDataType="int"/>
  74. <addAutoIncrement tableName="feedback_status" columnName="feedback_status_id" columnDataType="int"/>
  75. </changeSet>
  76.  
  77.  
  78. </databaseChangeLog>
Advertisement
Add Comment
Please, Sign In to add comment