Default showing of steps to false
This commit is contained in:
parent
610d55c932
commit
c18072bdc0
|
@ -1,13 +1,13 @@
|
||||||
import {MigrationInterface, QueryRunner} from 'typeorm'
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
export class addSteps1667186211251 implements MigrationInterface {
|
export class addSteps1667186211251 implements MigrationInterface {
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
await queryRunner
|
await queryRunner
|
||||||
.query('ALTER TABLE settings ADD COLUMN steps BOOLEAN DEFAULT true')
|
.query("ALTER TABLE settings ADD COLUMN steps BOOLEAN DEFAULT false")
|
||||||
.catch(() => null)
|
.catch(() => null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
await queryRunner.dropColumn('settings', 'steps')
|
await queryRunner.dropColumn("settings", "steps");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ export default class Settings {
|
||||||
darkColor: string | null;
|
darkColor: string | null;
|
||||||
|
|
||||||
@Column("boolean")
|
@Column("boolean")
|
||||||
steps = true;
|
steps = false;
|
||||||
|
|
||||||
@Column("text")
|
@Column("text")
|
||||||
date: string | null;
|
date: string | null;
|
||||||
|
|
Loading…
Reference in New Issue