diff options
Diffstat (limited to 'src/util/migrations/mariadb/1662626234189-notes.ts')
-rw-r--r-- | src/util/migrations/mariadb/1662626234189-notes.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util/migrations/mariadb/1662626234189-notes.ts b/src/util/migrations/mariadb/1662626234189-notes.ts new file mode 100644 index 00000000..57aaecbd --- /dev/null +++ b/src/util/migrations/mariadb/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<void> { + await queryRunner.dropColumn("users", "notes"); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.addColumn("users", new TableColumn({ name: "notes", type: "simple-json" })); + } + +} |