mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-28 20:14:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			549 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			549 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 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"`);
 | |
|     }
 | |
| 
 | |
| }
 |