Default showing of steps to false

This commit is contained in:
Brandon Presley 2023-11-21 19:25:18 +13:00
parent 610d55c932
commit c18072bdc0
2 changed files with 5 additions and 5 deletions

View File

@ -1,13 +1,13 @@
import {MigrationInterface, QueryRunner} from 'typeorm'
import { MigrationInterface, QueryRunner } from "typeorm";
export class addSteps1667186211251 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner
.query('ALTER TABLE settings ADD COLUMN steps BOOLEAN DEFAULT true')
.catch(() => null)
.query("ALTER TABLE settings ADD COLUMN steps BOOLEAN DEFAULT false")
.catch(() => null);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn('settings', 'steps')
await queryRunner.dropColumn("settings", "steps");
}
}

View File

@ -27,7 +27,7 @@ export default class Settings {
darkColor: string | null;
@Column("boolean")
steps = true;
steps = false;
@Column("text")
date: string | null;