Some checks failed
Queue Release Build / prepare (push) Successful in 27s
Deploy Web Apps / deploy (push) Failing after 4m58s
Queue Release Build / build-linux (push) Failing after 10m55s
Queue Release Build / build-windows (push) Successful in 16m14s
Queue Release Build / finalize (push) Has been skipped
16 lines
733 B
TypeScript
16 lines
733 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.
|
|
}
|
|
} |