Skip to content

Commit 7fa6f7d

Browse files
committed
feat: specify database type for v7 to v8 migration changeSets in XML files
1 parent 2915b42 commit 7fa6f7d

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

Core/src/main/resources/db/changelog/v7-to-v8-migration.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">
77

88
<!-- v7 to v8 Migration: Add ID column to existing plot table (MySQL only) -->
9-
<changeSet id="v7-to-v8-add-plot-id" author="plotsquared">
9+
<changeSet id="v7-to-v8-add-plot-id" author="plotsquared" dbms="mysql">
1010
<preConditions onFail="MARK_RAN">
1111
<and>
1212
<dbms type="mysql"/>
@@ -35,7 +35,7 @@
3535
</changeSet>
3636

3737
<!-- v7 to v8 Migration: Create plot_settings if it doesn't exist (MySQL only) -->
38-
<changeSet id="v7-to-v8-create-plot-settings" author="plotsquared">
38+
<changeSet id="v7-to-v8-create-plot-settings" author="plotsquared" dbms="mysql">
3939
<preConditions onFail="MARK_RAN">
4040
<and>
4141
<dbms type="mysql"/>
@@ -88,7 +88,7 @@
8888
</changeSet>
8989

9090
<!-- v7 to v8 Migration: Update plot membership tables to use new plot IDs (MySQL only) -->
91-
<changeSet id="v7-to-v8-update-plot-trusted-fk" author="plotsquared">
91+
<changeSet id="v7-to-v8-update-plot-trusted-fk" author="plotsquared" dbms="mysql">
9292
<preConditions onFail="MARK_RAN">
9393
<and>
9494
<dbms type="mysql"/>
@@ -111,7 +111,7 @@
111111
onDelete="CASCADE"/>
112112
</changeSet>
113113

114-
<changeSet id="v7-to-v8-update-plot-helpers-fk" author="plotsquared">
114+
<changeSet id="v7-to-v8-update-plot-helpers-fk" author="plotsquared" dbms="mysql">
115115
<preConditions onFail="MARK_RAN">
116116
<and>
117117
<dbms type="mysql"/>
@@ -134,7 +134,7 @@
134134
onDelete="CASCADE"/>
135135
</changeSet>
136136

137-
<changeSet id="v7-to-v8-update-plot-denied-fk" author="plotsquared">
137+
<changeSet id="v7-to-v8-update-plot-denied-fk" author="plotsquared" dbms="mysql">
138138
<preConditions onFail="MARK_RAN">
139139
<and>
140140
<dbms type="mysql"/>
@@ -157,7 +157,7 @@
157157
onDelete="CASCADE"/>
158158
</changeSet>
159159

160-
<changeSet id="v7-to-v8-update-plot-rating-fk" author="plotsquared">
160+
<changeSet id="v7-to-v8-update-plot-rating-fk" author="plotsquared" dbms="mysql">
161161
<preConditions onFail="MARK_RAN">
162162
<and>
163163
<dbms type="mysql"/>
@@ -181,7 +181,7 @@
181181
</changeSet>
182182

183183
<!-- v7 to v8 Migration: Add ID column to cluster table (MySQL only) -->
184-
<changeSet id="v7-to-v8-add-cluster-id" author="plotsquared">
184+
<changeSet id="v7-to-v8-add-cluster-id" author="plotsquared" dbms="mysql">
185185
<preConditions onFail="MARK_RAN">
186186
<and>
187187
<dbms type="mysql"/>
@@ -206,7 +206,7 @@
206206
</changeSet>
207207

208208
<!-- v7 to v8 Migration: Update cluster membership tables (MySQL only) -->
209-
<changeSet id="v7-to-v8-update-cluster-helpers-fk" author="plotsquared">
209+
<changeSet id="v7-to-v8-update-cluster-helpers-fk" author="plotsquared" dbms="mysql">
210210
<preConditions onFail="MARK_RAN">
211211
<and>
212212
<dbms type="mysql"/>
@@ -229,7 +229,7 @@
229229
onDelete="CASCADE"/>
230230
</changeSet>
231231

232-
<changeSet id="v7-to-v8-update-cluster-invited-fk" author="plotsquared">
232+
<changeSet id="v7-to-v8-update-cluster-invited-fk" author="plotsquared" dbms="mysql">
233233
<preConditions onFail="MARK_RAN">
234234
<and>
235235
<dbms type="mysql"/>
@@ -252,7 +252,7 @@
252252
onDelete="CASCADE"/>
253253
</changeSet>
254254

255-
<changeSet id="v7-to-v8-update-cluster-settings-fk" author="plotsquared">
255+
<changeSet id="v7-to-v8-update-cluster-settings-fk" author="plotsquared" dbms="mysql">
256256
<preConditions onFail="MARK_RAN">
257257
<and>
258258
<dbms type="mysql"/>
@@ -276,7 +276,7 @@
276276
</changeSet>
277277

278278
<!-- Add meta_id to player_meta if missing (MySQL only) -->
279-
<changeSet id="v7-to-v8-add-player-meta-id" author="plotsquared">
279+
<changeSet id="v7-to-v8-add-player-meta-id" author="plotsquared" dbms="mysql">
280280
<preConditions onFail="MARK_RAN">
281281
<and>
282282
<dbms type="mysql"/>
@@ -301,7 +301,7 @@
301301
</changeSet>
302302

303303
<!-- Create missing tables for v8 if they don't exist (MySQL only) -->
304-
<changeSet id="v7-to-v8-create-plot-flags" author="plotsquared">
304+
<changeSet id="v7-to-v8-create-plot-flags" author="plotsquared" dbms="mysql">
305305
<preConditions onFail="MARK_RAN">
306306
<and>
307307
<dbms type="mysql"/>

Core/src/main/resources/db/changelog/v7-to-v8-sqlite-migration.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">
77

88
<!-- v7 to v8 Migration for SQLite: Recreate plot table with ID column -->
9-
<changeSet id="v7-to-v8-sqlite-recreate-plot-table" author="plotsquared">
9+
<changeSet id="v7-to-v8-sqlite-recreate-plot-table" author="plotsquared" dbms="sqlite">
1010
<preConditions onFail="MARK_RAN">
1111
<and>
1212
<dbms type="sqlite"/>
@@ -59,7 +59,7 @@
5959
</changeSet>
6060

6161
<!-- v7 to v8 Migration for SQLite: Create plot_settings if it doesn't exist -->
62-
<changeSet id="v7-to-v8-sqlite-create-plot-settings" author="plotsquared">
62+
<changeSet id="v7-to-v8-sqlite-create-plot-settings" author="plotsquared" dbms="sqlite">
6363
<preConditions onFail="MARK_RAN">
6464
<and>
6565
<dbms type="sqlite"/>
@@ -109,7 +109,7 @@
109109
</changeSet>
110110

111111
<!-- v7 to v8 Migration for SQLite: Update plot membership tables -->
112-
<changeSet id="v7-to-v8-sqlite-update-plot-trusted" author="plotsquared">
112+
<changeSet id="v7-to-v8-sqlite-update-plot-trusted" author="plotsquared" dbms="sqlite">
113113
<preConditions onFail="MARK_RAN">
114114
<and>
115115
<dbms type="sqlite"/>
@@ -148,7 +148,7 @@
148148
onDelete="CASCADE"/>
149149
</changeSet>
150150

151-
<changeSet id="v7-to-v8-sqlite-update-plot-helpers" author="plotsquared">
151+
<changeSet id="v7-to-v8-sqlite-update-plot-helpers" author="plotsquared" dbms="sqlite">
152152
<preConditions onFail="MARK_RAN">
153153
<and>
154154
<dbms type="sqlite"/>
@@ -185,7 +185,7 @@
185185
onDelete="CASCADE"/>
186186
</changeSet>
187187

188-
<changeSet id="v7-to-v8-sqlite-update-plot-denied" author="plotsquared">
188+
<changeSet id="v7-to-v8-sqlite-update-plot-denied" author="plotsquared" dbms="sqlite">
189189
<preConditions onFail="MARK_RAN">
190190
<and>
191191
<dbms type="sqlite"/>
@@ -222,7 +222,7 @@
222222
onDelete="CASCADE"/>
223223
</changeSet>
224224

225-
<changeSet id="v7-to-v8-sqlite-update-plot-rating" author="plotsquared">
225+
<changeSet id="v7-to-v8-sqlite-update-plot-rating" author="plotsquared" dbms="sqlite">
226226
<preConditions onFail="MARK_RAN">
227227
<and>
228228
<dbms type="sqlite"/>
@@ -267,7 +267,7 @@
267267
</changeSet>
268268

269269
<!-- v7 to v8 Migration for SQLite: Recreate cluster table with ID column -->
270-
<changeSet id="v7-to-v8-sqlite-recreate-cluster-table" author="plotsquared">
270+
<changeSet id="v7-to-v8-sqlite-recreate-cluster-table" author="plotsquared" dbms="sqlite">
271271
<preConditions onFail="MARK_RAN">
272272
<and>
273273
<dbms type="sqlite"/>
@@ -316,7 +316,7 @@
316316
</changeSet>
317317

318318
<!-- v7 to v8 Migration for SQLite: Update cluster membership tables -->
319-
<changeSet id="v7-to-v8-sqlite-update-cluster-helpers" author="plotsquared">
319+
<changeSet id="v7-to-v8-sqlite-update-cluster-helpers" author="plotsquared" dbms="sqlite">
320320
<preConditions onFail="MARK_RAN">
321321
<and>
322322
<dbms type="sqlite"/>
@@ -354,7 +354,7 @@
354354
</changeSet>
355355

356356
<!-- Add meta_id to player_meta if missing (SQLite) -->
357-
<changeSet id="v7-to-v8-sqlite-add-player-meta-id" author="plotsquared">
357+
<changeSet id="v7-to-v8-sqlite-add-player-meta-id" author="plotsquared" dbms="sqlite">
358358
<preConditions onFail="MARK_RAN">
359359
<and>
360360
<dbms type="sqlite"/>
@@ -395,7 +395,7 @@
395395
</changeSet>
396396

397397
<!-- Create missing tables for v8 if they don't exist (SQLite) -->
398-
<changeSet id="v7-to-v8-sqlite-create-plot-flags" author="plotsquared">
398+
<changeSet id="v7-to-v8-sqlite-create-plot-flags" author="plotsquared" dbms="sqlite">
399399
<preConditions onFail="MARK_RAN">
400400
<and>
401401
<dbms type="sqlite"/>

0 commit comments

Comments
 (0)