Alterando informações de perfil

This commit is contained in:
Matheus Albino Brunhara
2022-05-24 20:01:01 -05:00
parent 650d8ecef3
commit 4d2eac45d2
7 changed files with 52 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
import {MigrationInterface, QueryRunner, TableColumn} from "typeorm";
export class AlterUsersTableAddLastnameColumn1653437653433 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn('users', new TableColumn({
name: 'lastname',
type: 'varchar',
isNullable: true
}))
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn('users', 'lastname')
}
}