You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
NestJS_Basic/nest-user-api/src/database/migrations/1750406841786-Migration.ts

14 lines
487 B

import { MigrationInterface, QueryRunner } from "typeorm";
export class Migration1750406841786 implements MigrationInterface {
name = 'Migration1750406841786'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`user\` ADD \`password\` varchar(255) NOT NULL`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`user\` DROP COLUMN \`password\``);
}
}