Skip to content

Commit

Permalink
added migration to add the avatar_base64 column to the user settings …
Browse files Browse the repository at this point in the history
…table.
  • Loading branch information
SidorovVladimir committed Jan 10, 2025
1 parent 108de8e commit 3be6d03
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';

export class Migrations1736348297179 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn(
'user_settings',
new TableColumn({
name: 'avatar_base64',
type: 'text',
isNullable: true,
}),
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn('user_settings', 'avatar_base64');
}
}

0 comments on commit 3be6d03

Please sign in to comment.