File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed
cerberus/src/database/entities
evoting-api/src/database/entities Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ export class Group {
28
28
@Column ( "simple-array" , { nullable : true } )
29
29
admins ! : string [ ] ;
30
30
31
+ @Column ( { nullable : true } )
32
+ ename ! : string
33
+
31
34
@Column ( { type : "text" , nullable : true } )
32
35
charter ! : string ; // Markdown content for the group charter
33
36
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ export class Group {
58
58
} )
59
59
participants ! : User [ ] ;
60
60
61
+ @Column ( { nullable : true } )
62
+ ename : string
63
+
61
64
@Column ( { nullable : true } )
62
65
avatarUrl ! : string ;
63
66
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ export class Chat {
30
30
} )
31
31
participants ! : User [ ] ;
32
32
33
+ @Column ( { nullable : true } )
34
+ ename ! : string ;
35
+
33
36
@CreateDateColumn ( )
34
37
createdAt ! : Date ;
35
38
Original file line number Diff line number Diff line change
1
+ import { MigrationInterface , QueryRunner } from "typeorm" ;
2
+
3
+ export class Migration1756065162697 implements MigrationInterface {
4
+ name = 'Migration1756065162697'
5
+
6
+ public async up ( queryRunner : QueryRunner ) : Promise < void > {
7
+ await queryRunner . query ( `ALTER TABLE "chat" ADD "ename" character varying` ) ;
8
+ }
9
+
10
+ public async down ( queryRunner : QueryRunner ) : Promise < void > {
11
+ await queryRunner . query ( `ALTER TABLE "chat" DROP COLUMN "ename"` ) ;
12
+ }
13
+
14
+ }
You can’t perform that action at this time.
0 commit comments