Files
teamwallet/myteamwallet_backend/src/database/migrations/1785520800000-AddHelpTextsEnabled.ts
2026-08-02 09:22:16 +02:00

18 lines
531 B
TypeScript

import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddHelpTextsEnabled1785520800000 implements MigrationInterface {
name = 'AddHelpTextsEnabled1785520800000';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
'ALTER TABLE "user" ADD "helpTextsEnabled" boolean NOT NULL DEFAULT true',
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
'ALTER TABLE "user" DROP COLUMN "helpTextsEnabled"',
);
}
}