Skip to content

Commit 39aea00

Browse files
Brutus5000claude
andauthored
Adapt map_version test data to folder_name column (#18)
faf-db V144 makes map_version.folder_name the source-of-truth column and turns filename into a generated column (CONCAT('maps/', folder_name, '.zip')). The test fixture can no longer insert filename, so it now provides folder_name; the generated filename selected by get_game_stat_row is unchanged, so the existing Rust expectations still hold. Bump the migrations image v136 -> v144. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 185914d commit 39aea00

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
- "3306:3306"
1515

1616
faf-db-migrations:
17-
image: faforever/faf-db-migrations:v136
17+
image: faforever/faf-db-migrations:v144
1818
command: migrate
1919
environment:
2020
FLYWAY_URL: jdbc:mysql://faf-db/faf?useSSL=false

test/db_unit_test_data.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ values (11, 'SCMP_001', 'FFA', 'skirmish', 1, 1),
2222
(14, 'SCMP_004', 'FFA', 'skirmish', 4, 1);
2323

2424
insert into map_version
25-
(id, description, max_players, width, height, version, filename, hidden, map_id)
26-
values (21, 'SCMP 001', 8, 1024, 1024, 1, 'maps/scmp_001.zip', 0, 11),
27-
(22, 'SCMP 002', 8, 1024, 1024, 1, 'maps/scmp_002.zip', 0, 12),
28-
(23, NULL, 8, 1024, 1024, 1, 'maps/scmp_000.zip', 0, 14),
29-
(24, 'SCMP 003', 8, 1024, 1024, 1, 'maps/scmp_003.zip', 0, 13),
30-
(25, 'SCMP 003', 8, 512, 512, 2, 'maps/scmp_003.v0002.zip', 0, 13),
31-
(26, 'SCMP 003', 8, 512, 512, 3, 'maps/scmp_003.v0003.zip', 0, 13);
25+
(id, description, max_players, width, height, version, folder_name, hidden, map_id)
26+
values (21, 'SCMP 001', 8, 1024, 1024, 1, 'scmp_001', 0, 11),
27+
(22, 'SCMP 002', 8, 1024, 1024, 1, 'scmp_002', 0, 12),
28+
(23, NULL, 8, 1024, 1024, 1, 'scmp_000', 0, 14),
29+
(24, 'SCMP 003', 8, 1024, 1024, 1, 'scmp_003', 0, 13),
30+
(25, 'SCMP 003', 8, 512, 512, 2, 'scmp_003.v0002', 0, 13),
31+
(26, 'SCMP 003', 8, 512, 512, 3, 'scmp_003.v0003', 0, 13);
3232

3333
insert into game_featuredMods
3434
(id, gamemod, name, description, publish, git_url, git_branch, file_extension, allow_override)

0 commit comments

Comments
 (0)