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 {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ export default class Settings {
|
|||
darkColor: string | null;
|
||||
|
||||
@Column("boolean")
|
||||
steps = true;
|
||||
steps = false;
|
||||
|
||||
@Column("text")
|
||||
date: string | null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user