mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-24 18:24:52 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			504 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			504 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export class AddUserEnableRss1733748798177 {
 | |
|     name = 'AddUserEnableRss1733748798177'
 | |
| 
 | |
|     async up(queryRunner) {
 | |
| 				// Disable by default, then specifically enable for all existing local users.
 | |
| 				await queryRunner.query(`ALTER TABLE "user" ADD "enable_rss" boolean NOT NULL DEFAULT false`);
 | |
| 				await queryRunner.query(`UPDATE "user" SET "enable_rss" = true WHERE host IS NULL;`)
 | |
| 		}
 | |
| 
 | |
|     async down(queryRunner) {
 | |
| 				await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "enable_rss"`);
 | |
| 		}
 | |
| }
 |