chore: import DH V2 D5.6.4 production baseline
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class PhaseA2SessionSecurityIndexes1786548005000
|
||||
implements MigrationInterface
|
||||
{
|
||||
name = 'PhaseA2SessionSecurityIndexes1786548005000';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`
|
||||
CREATE INDEX idx_users_locked_until ON users (locked_until)
|
||||
`);
|
||||
await queryRunner.query(`
|
||||
CREATE INDEX idx_auth_sessions_replaced_by_session_id
|
||||
ON auth_sessions (replaced_by_session_id)
|
||||
`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'DROP INDEX idx_auth_sessions_replaced_by_session_id',
|
||||
);
|
||||
await queryRunner.query('DROP INDEX idx_users_locked_until');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user