From d6df92d01fdc036c226241b695bf1cef9c65981d Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 8 Sep 2022 18:59:27 +1000 Subject: migrations for notes pr --- src/util/migrations/postgres/1662626234189-notes.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/util/migrations/postgres/1662626234189-notes.ts (limited to 'src/util/migrations/postgres') diff --git a/src/util/migrations/postgres/1662626234189-notes.ts b/src/util/migrations/postgres/1662626234189-notes.ts new file mode 100644 index 00000000..57aaecbd --- /dev/null +++ b/src/util/migrations/postgres/1662626234189-notes.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner, TableColumn } from "typeorm"; + +export class notes1662626234189 implements MigrationInterface { + name = 'notes1662626234189' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.dropColumn("users", "notes"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.addColumn("users", new TableColumn({ name: "notes", type: "simple-json" })); + } + +} -- cgit 1.5.1