summary refs log tree commit diff
path: root/src/util/migrations/postgres/1662626234189-notes.ts
blob: 57aaecbdf124f8be6d54128acc074642177ae2d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";

export class notes1662626234189 implements MigrationInterface {
    name = 'notes1662626234189'

    public async up(queryRunner: QueryRunner): Promise<void> {
		await queryRunner.dropColumn("users", "notes");
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
		await queryRunner.addColumn("users", new TableColumn({ name: "notes", type: "simple-json" }));
    }

}