add(migration): add two new columns to user for ID Check
This commit is contained in:
parent
531e4a43ad
commit
a56066ce53
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: marie and other Sharkey contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export class idCheck1724044488000 {
|
||||
name = 'idCheck1724044488000';
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user" ADD "idCheckRequired" boolean NOT NULL DEFAULT false`);
|
||||
await queryRunner.query(`ALTER TABLE "user" ADD "idVerified" boolean NOT NULL DEFAULT false`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "idCheckRequired"`);
|
||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "idVerified"`);
|
||||
}
|
||||
}
|
|
@ -108,6 +108,8 @@ type Source = {
|
|||
maxFileSize: number;
|
||||
};
|
||||
|
||||
stripeverify?: boolean;
|
||||
|
||||
pidFile: string;
|
||||
};
|
||||
|
||||
|
@ -197,6 +199,8 @@ export type Config = {
|
|||
maxFileSize: number;
|
||||
} | undefined;
|
||||
|
||||
stripeverify: boolean | undefined;
|
||||
|
||||
pidFile: string;
|
||||
};
|
||||
|
||||
|
@ -319,6 +323,7 @@ export function loadConfig(): Config {
|
|||
perUserNotificationsMaxCount: config.perUserNotificationsMaxCount ?? 500,
|
||||
deactivateAntennaThreshold: config.deactivateAntennaThreshold ?? (1000 * 60 * 60 * 24 * 7),
|
||||
import: config.import,
|
||||
stripeverify: config.stripeverify ?? false,
|
||||
pidFile: config.pidFile,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue