Skip to content

Commit d3a3047

Browse files
authored
Merge pull request #2298 from bcgov/feature/ALCS-2225-change-soil-badges
ALCS-2225 Badges new labels and colors
2 parents 10a5101 + 9ce7f1b commit d3a3047

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { MigrationInterface, QueryRunner } from "typeorm";
2+
3+
export class ChangeSoilBadges1743115625509 implements MigrationInterface {
4+
5+
public async up(queryRunner: QueryRunner): Promise<void> {
6+
await queryRunner.query(`UPDATE alcs.application_type
7+
SET
8+
short_label = 'ROSO',
9+
background_color = '#674CD4'
10+
WHERE code = 'ROSO';`);
11+
await queryRunner.query(`UPDATE alcs.application_type
12+
SET
13+
short_label = 'PFRS',
14+
background_color = '#084299'
15+
WHERE code = 'PFRS';`);
16+
await queryRunner.query(`UPDATE alcs.application_type
17+
SET
18+
short_label = 'POFO',
19+
background_color = '#3E7D8E'
20+
WHERE code = 'POFO';`);
21+
}
22+
23+
public async down(queryRunner: QueryRunner): Promise<void> {
24+
await queryRunner.query(`UPDATE alcs.application_type
25+
SET
26+
short_label = 'SOIL',
27+
background_color = '#084299'
28+
WHERE code = 'ROSO';`);
29+
await queryRunner.query(`UPDATE alcs.application_type
30+
SET
31+
short_label = 'SOIL',
32+
background_color = '#084299'
33+
WHERE code = 'PFRS';`);
34+
await queryRunner.query(`UPDATE alcs.application_type
35+
SET
36+
short_label = 'SOIL',
37+
background_color = '#084299'
38+
WHERE code = 'POFO';`);
39+
}
40+
41+
}

0 commit comments

Comments
 (0)