|
1 | 1 | <?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
2 | 2 | <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
3 |
| - <changeSet author="wagner.wutzke" id="1740060932516-1"> |
| 3 | + <property name="NOW" value="now() " dbms="mysql,h2"/> |
| 4 | + <property name="NOW" value="CURRENT_TIMESTAMP" dbms="postgresql"/> |
| 5 | + <property name="NOW" value="sysdate" dbms="oracle"/> |
| 6 | + |
| 7 | + <changeSet author="wagner.wutzke" id="1740266386086-1"> |
4 | 8 | <createTable tableName="meeting">
|
5 | 9 | <column name="id" type="UUID">
|
6 | 10 | <constraints nullable="false" primaryKey="true" primaryKeyName="meeting_pkey"/>
|
|
12 | 16 | <column name="start_time" type="TIMESTAMP WITH TIME ZONE"/>
|
13 | 17 | <column name="end_time" type="TIMESTAMP WITH TIME ZONE"/>
|
14 | 18 | <column name="owner_id" type="VARCHAR(127)"/>
|
15 |
| - <column defaultValueComputed="now()" name="created_at" type="TIMESTAMP WITH TIME ZONE"> |
| 19 | + <column defaultValueComputed="${NOW}" name="created_at" type="TIMESTAMP WITH TIME ZONE"> |
16 | 20 | <constraints nullable="false"/>
|
17 | 21 | </column>
|
18 |
| - <column defaultValueComputed="now()" name="updated_at" type="TIMESTAMP WITH TIME ZONE"> |
| 22 | + <column defaultValueComputed="${NOW}" name="updated_at" type="TIMESTAMP WITH TIME ZONE"> |
19 | 23 | <constraints nullable="false"/>
|
20 | 24 | </column>
|
21 | 25 | <column defaultValueBoolean="false" name="password_restricted" type="BOOLEAN"/>
|
|
46 | 50 | <column name="series_end_time" type="TIMESTAMP WITH TIME ZONE"/>
|
47 | 51 | </createTable>
|
48 | 52 | </changeSet>
|
49 |
| - <changeSet author="wagner.wutzke" id="1740060932516-2"> |
| 53 | + <changeSet author="wagner.wutzke" id="1740266386086-2"> |
50 | 54 | <createTable tableName="notification">
|
51 | 55 | <column name="id" type="UUID">
|
52 | 56 | <constraints nullable="false" primaryKey="true" primaryKeyName="notification_pkey"/>
|
53 | 57 | </column>
|
54 | 58 | <column name="message" type="VARCHAR(1024)"/>
|
55 | 59 | <column name="user_id" type="VARCHAR(255)"/>
|
56 | 60 | <column name="meeting_id" type="UUID"/>
|
57 |
| - <column defaultValueComputed="now()" name="created_at" type="TIMESTAMP WITH TIME ZONE"> |
| 61 | + <column defaultValueComputed="${NOW}" name="created_at" type="TIMESTAMP WITH TIME ZONE"> |
58 | 62 | <constraints nullable="false"/>
|
59 | 63 | </column>
|
60 | 64 | <column name="viewed_at" type="TIMESTAMP WITH TIME ZONE"/>
|
|
65 | 69 | <column name="room_deletion_due_date" type="TIMESTAMP WITH TIME ZONE"/>
|
66 | 70 | </createTable>
|
67 | 71 | </changeSet>
|
68 |
| - <changeSet author="wagner.wutzke" id="1740060932516-3"> |
| 72 | + <changeSet author="wagner.wutzke" id="1740266386086-3"> |
69 | 73 | <createTable tableName="meeting_participant">
|
70 | 74 | <column name="id" type="UUID">
|
71 | 75 | <constraints nullable="false" primaryKey="true" primaryKeyName="meeting_participant_pkey"/>
|
|
76 | 80 | </column>
|
77 | 81 | <column name="role" type="VARCHAR(127)"/>
|
78 | 82 | <column name="email" type="VARCHAR(255)"/>
|
79 |
| - <column defaultValueComputed="now()" name="created_at" type="TIMESTAMP WITH TIME ZONE"> |
| 83 | + <column defaultValueComputed="${NOW}" name="created_at" type="TIMESTAMP WITH TIME ZONE"> |
80 | 84 | <constraints nullable="false"/>
|
81 | 85 | </column>
|
82 |
| - <column defaultValueComputed="now()" name="updated_at" type="TIMESTAMP WITH TIME ZONE"> |
| 86 | + <column defaultValueComputed="${NOW}" name="updated_at" type="TIMESTAMP WITH TIME ZONE"> |
83 | 87 | <constraints nullable="false"/>
|
84 | 88 | </column>
|
85 | 89 | </createTable>
|
86 | 90 | </changeSet>
|
87 |
| - <changeSet author="wagner.wutzke" id="1740060932516-4"> |
| 91 | + <changeSet author="wagner.wutzke" id="1740266386086-4"> |
88 | 92 | <createTable tableName="batch_job_instance">
|
89 | 93 | <column name="job_instance_id" type="BIGINT">
|
90 | 94 | <constraints nullable="false" primaryKey="true" primaryKeyName="batch_job_instance_pkey"/>
|
|
98 | 102 | </column>
|
99 | 103 | </createTable>
|
100 | 104 | </changeSet>
|
101 |
| - <changeSet author="wagner.wutzke" id="1740060932516-5"> |
| 105 | + <changeSet author="wagner.wutzke" id="1740266386086-5"> |
102 | 106 | <createIndex indexName="meeting_end_time_idx" tableName="meeting">
|
103 | 107 | <column name="end_time"/>
|
104 | 108 | </createIndex>
|
105 | 109 | </changeSet>
|
106 |
| - <changeSet author="wagner.wutzke" id="1740060932516-6"> |
| 110 | + <changeSet author="wagner.wutzke" id="1740266386086-6"> |
107 | 111 | <createIndex indexName="meeting_created_at_idx" tableName="meeting">
|
108 |
| - <column defaultValueComputed="now()" name="created_at"/> |
| 112 | + <column defaultValueComputed="${NOW}" name="created_at"/> |
109 | 113 | </createIndex>
|
110 | 114 | </changeSet>
|
111 |
| - <changeSet author="wagner.wutzke" id="1740060932516-7"> |
| 115 | + <changeSet author="wagner.wutzke" id="1740266386086-7"> |
112 | 116 | <createIndex indexName="notification_user_id_idx" tableName="notification">
|
113 | 117 | <column name="user_id"/>
|
114 | 118 | </createIndex>
|
115 | 119 | </changeSet>
|
116 |
| - <changeSet author="wagner.wutzke" id="1740060932516-8"> |
| 120 | + <changeSet author="wagner.wutzke" id="1740266386086-8"> |
117 | 121 | <createIndex indexName="meeting_participant_meeting_id_idx" tableName="meeting_participant">
|
118 | 122 | <column name="meeting_id"/>
|
119 | 123 | </createIndex>
|
120 | 124 | </changeSet>
|
121 |
| - <changeSet author="wagner.wutzke" id="1740060932516-9"> |
| 125 | + <changeSet author="wagner.wutzke" id="1740266386086-9" dbms="postgresql"> |
122 | 126 | <createIndex indexName="meeting_participant_email_upper_idx" tableName="meeting_participant">
|
123 | 127 | <column computed="true" name="upper((email)::text)"/>
|
124 | 128 | </createIndex>
|
125 | 129 | </changeSet>
|
126 |
| - <changeSet author="wagner.wutzke" id="1740060932516-10"> |
| 130 | + <changeSet author="wagner.wutzke" id="1740266386086-10"> |
127 | 131 | <addUniqueConstraint columnNames="job_name, job_key" constraintName="job_inst_un" tableName="batch_job_instance"/>
|
128 | 132 | </changeSet>
|
129 |
| - <changeSet author="wagner.wutzke" id="1740060932516-11"> |
| 133 | + <changeSet author="wagner.wutzke" id="1740266386086-11"> |
130 | 134 | <createSequence cacheSize="1" cycle="false" dataType="bigint" incrementBy="1" maxValue="9223372036854775807" minValue="1" sequenceName="batch_job_execution_seq" startValue="1"/>
|
131 | 135 | </changeSet>
|
132 |
| - <changeSet author="wagner.wutzke" id="1740060932516-12"> |
| 136 | + <changeSet author="wagner.wutzke" id="1740266386086-12"> |
133 | 137 | <createSequence cacheSize="1" cycle="false" dataType="bigint" incrementBy="1" maxValue="9223372036854775807" minValue="1" sequenceName="batch_job_seq" startValue="1"/>
|
134 | 138 | </changeSet>
|
135 |
| - <changeSet author="wagner.wutzke" id="1740060932516-13"> |
| 139 | + <changeSet author="wagner.wutzke" id="1740266386086-13"> |
136 | 140 | <createSequence cacheSize="1" cycle="false" dataType="bigint" incrementBy="1" maxValue="9223372036854775807" minValue="1" sequenceName="batch_step_execution_seq" startValue="1"/>
|
137 | 141 | </changeSet>
|
138 |
| - <changeSet author="wagner.wutzke" id="1740060932516-14"> |
| 142 | + <changeSet author="wagner.wutzke" id="1740266386086-14"> |
139 | 143 | <createTable tableName="batch_job_execution">
|
140 | 144 | <column name="job_execution_id" type="BIGINT">
|
141 | 145 | <constraints nullable="false" primaryKey="true" primaryKeyName="batch_job_execution_pkey"/>
|
|
155 | 159 | <column name="last_updated" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
156 | 160 | </createTable>
|
157 | 161 | </changeSet>
|
158 |
| - <changeSet author="wagner.wutzke" id="1740060932516-15"> |
| 162 | + <changeSet author="wagner.wutzke" id="1740266386086-15"> |
159 | 163 | <createTable tableName="batch_job_execution_context">
|
160 | 164 | <column name="job_execution_id" type="BIGINT">
|
161 | 165 | <constraints nullable="false" primaryKey="true" primaryKeyName="batch_job_execution_context_pkey"/>
|
|
166 | 170 | <column name="serialized_context" type="TEXT"/>
|
167 | 171 | </createTable>
|
168 | 172 | </changeSet>
|
169 |
| - <changeSet author="wagner.wutzke" id="1740060932516-16"> |
| 173 | + <changeSet author="wagner.wutzke" id="1740266386086-16"> |
170 | 174 | <createTable tableName="batch_job_execution_params">
|
171 | 175 | <column name="job_execution_id" type="BIGINT">
|
172 | 176 | <constraints nullable="false"/>
|
|
183 | 187 | </column>
|
184 | 188 | </createTable>
|
185 | 189 | </changeSet>
|
186 |
| - <changeSet author="wagner.wutzke" id="1740060932516-17"> |
| 190 | + <changeSet author="wagner.wutzke" id="1740266386086-17"> |
187 | 191 | <createTable tableName="batch_step_execution">
|
188 | 192 | <column name="step_execution_id" type="BIGINT">
|
189 | 193 | <constraints nullable="false" primaryKey="true" primaryKeyName="batch_step_execution_pkey"/>
|
|
216 | 220 | <column name="last_updated" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
217 | 221 | </createTable>
|
218 | 222 | </changeSet>
|
219 |
| - <changeSet author="wagner.wutzke" id="1740060932516-18"> |
| 223 | + <changeSet author="wagner.wutzke" id="1740266386086-18"> |
220 | 224 | <createTable tableName="batch_step_execution_context">
|
221 | 225 | <column name="step_execution_id" type="BIGINT">
|
222 | 226 | <constraints nullable="false" primaryKey="true" primaryKeyName="batch_step_execution_context_pkey"/>
|
|
227 | 231 | <column name="serialized_context" type="TEXT"/>
|
228 | 232 | </createTable>
|
229 | 233 | </changeSet>
|
230 |
| - <changeSet author="wagner.wutzke" id="1740060932516-19"> |
| 234 | + <changeSet author="wagner.wutzke" id="1740266386086-19"> |
231 | 235 | <createTable tableName="shedlock">
|
232 | 236 | <column name="name" type="VARCHAR(64)">
|
233 | 237 | <constraints nullable="false" primaryKey="true" primaryKeyName="shedlock_pkey"/>
|
|
243 | 247 | </column>
|
244 | 248 | </createTable>
|
245 | 249 | </changeSet>
|
246 |
| - <changeSet author="wagner.wutzke" id="1740060932516-20"> |
| 250 | + <changeSet author="wagner.wutzke" id="1740266386086-20"> |
247 | 251 | <addForeignKeyConstraint baseColumnNames="parent_id" baseTableName="meeting" constraintName="fk_child_meeting_on_parent_meeting" deferrable="false" initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="meeting" validate="true"/>
|
248 | 252 | </changeSet>
|
249 |
| - <changeSet author="wagner.wutzke" id="1740060932516-21"> |
| 253 | + <changeSet author="wagner.wutzke" id="1740266386086-21"> |
250 | 254 | <addForeignKeyConstraint baseColumnNames="meeting_id" baseTableName="meeting_participant" constraintName="fk_meeting_participant_on_meeting" deferrable="false" initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="meeting" validate="true"/>
|
251 | 255 | </changeSet>
|
252 |
| - <changeSet author="wagner.wutzke" id="1740060932516-22"> |
| 256 | + <changeSet author="wagner.wutzke" id="1740266386086-22"> |
253 | 257 | <addForeignKeyConstraint baseColumnNames="meeting_id" baseTableName="notification" constraintName="fk_notification_on_meeting" deferrable="false" initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="meeting" validate="true"/>
|
254 | 258 | </changeSet>
|
255 |
| - <changeSet author="wagner.wutzke" id="1740060932516-23"> |
| 259 | + <changeSet author="wagner.wutzke" id="1740266386086-23"> |
256 | 260 | <addForeignKeyConstraint baseColumnNames="job_execution_id" baseTableName="batch_job_execution_context" constraintName="job_exec_ctx_fk" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="job_execution_id" referencedTableName="batch_job_execution" validate="true"/>
|
257 | 261 | </changeSet>
|
258 |
| - <changeSet author="wagner.wutzke" id="1740060932516-24"> |
| 262 | + <changeSet author="wagner.wutzke" id="1740266386086-24"> |
259 | 263 | <addForeignKeyConstraint baseColumnNames="job_execution_id" baseTableName="batch_job_execution_params" constraintName="job_exec_params_fk" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="job_execution_id" referencedTableName="batch_job_execution" validate="true"/>
|
260 | 264 | </changeSet>
|
261 |
| - <changeSet author="wagner.wutzke" id="1740060932516-25"> |
| 265 | + <changeSet author="wagner.wutzke" id="1740266386086-25"> |
262 | 266 | <addForeignKeyConstraint baseColumnNames="job_execution_id" baseTableName="batch_step_execution" constraintName="job_exec_step_fk" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="job_execution_id" referencedTableName="batch_job_execution" validate="true"/>
|
263 | 267 | </changeSet>
|
264 |
| - <changeSet author="wagner.wutzke" id="1740060932516-26"> |
| 268 | + <changeSet author="wagner.wutzke" id="1740266386086-26"> |
265 | 269 | <addForeignKeyConstraint baseColumnNames="job_instance_id" baseTableName="batch_job_execution" constraintName="job_inst_exec_fk" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="job_instance_id" referencedTableName="batch_job_instance" validate="true"/>
|
266 | 270 | </changeSet>
|
267 |
| - <changeSet author="wagner.wutzke" id="1740060932516-27"> |
| 271 | + <changeSet author="wagner.wutzke" id="1740266386086-27"> |
268 | 272 | <addForeignKeyConstraint baseColumnNames="step_execution_id" baseTableName="batch_step_execution_context" constraintName="step_exec_ctx_fk" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="step_execution_id" referencedTableName="batch_step_execution" validate="true"/>
|
269 | 273 | </changeSet>
|
270 | 274 | </databaseChangeLog>
|
0 commit comments