お知らせメールを受け取るかどうかの設定を追加
This commit is contained in:
		
							parent
							
								
									4ecd036d0a
								
							
						
					
					
						commit
						547da89c7d
					
				
					 6 changed files with 37 additions and 1 deletions
				
			
		
							
								
								
									
										14
									
								
								migration/1612619156584-announcement-email.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								migration/1612619156584-announcement-email.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| import {MigrationInterface, QueryRunner} from "typeorm"; | ||||
| 
 | ||||
| export class announcementEmail1612619156584 implements MigrationInterface { | ||||
|     name = 'announcementEmail1612619156584' | ||||
| 
 | ||||
|     public async up(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "user_profile" ADD "receiveAnnouncementEmail" boolean NOT NULL DEFAULT true`); | ||||
|     } | ||||
| 
 | ||||
|     public async down(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "receiveAnnouncementEmail"`); | ||||
|     } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue