Merge 62acdf3858
into 3334d140be
commit
f2290bd1f7
@ -0,0 +1,16 @@
|
|||||||
|
import { MigrationInterface, QueryRunner, TableColumn} from 'typeorm';
|
||||||
|
|
||||||
|
export class UserLastConnection1713186031023 implements MigrationInterface {
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||||
|
await queryRunner.addColumn('users', new TableColumn({
|
||||||
|
name: 'last_connection_at',
|
||||||
|
type: "date",
|
||||||
|
isNullable: true
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||||
|
await queryRunner.dropColumn('users', 'last_connection_at');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue