17 lines
734 B
TypeScript
17 lines
734 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddUserProfileMetadata1000000000007 implements MigrationInterface {
|
|
name = 'AddUserProfileMetadata1000000000007';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "users" ADD COLUMN "description" TEXT`);
|
|
await queryRunner.query(`ALTER TABLE "users" ADD COLUMN "profileUpdatedAt" INTEGER`);
|
|
await queryRunner.query(`ALTER TABLE "room_members" ADD COLUMN "description" TEXT`);
|
|
await queryRunner.query(`ALTER TABLE "room_members" ADD COLUMN "profileUpdatedAt" INTEGER`);
|
|
}
|
|
|
|
public async down(): Promise<void> {
|
|
// SQLite column removal requires table rebuilds. Keep rollback no-op.
|
|
}
|
|
}
|