mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			530 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			530 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /* tslint:disable:quotemark class-name indent */
 | |
| import {MigrationInterface, QueryRunner} from "typeorm";
 | |
| 
 | |
| export class apUrl1585772678853 implements MigrationInterface {
 | |
|     name = 'apUrl1585772678853'
 | |
| 
 | |
|     public async up(queryRunner: QueryRunner): Promise<any> {
 | |
|         await queryRunner.query(`ALTER TABLE "note" ADD "url" character varying(512)`, undefined);
 | |
|      }
 | |
| 
 | |
|     public async down(queryRunner: QueryRunner): Promise<any> {
 | |
|         await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "url"`, undefined);
 | |
|     }
 | |
| 
 | |
| }
 |