File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
services/apps/alcs/src/providers/typeorm/migrations Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments