* refactor: flatten infra folders * fix: database migrations * fix: test related import * fix: github actions workflow * chore: rename schemas to typesense-schemas
15 lines
499 B
TypeScript
15 lines
499 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class DropSaltColumn1672109862870 implements MigrationInterface {
|
|
name = 'DropSaltColumn1672109862870'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "salt"`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "users" ADD "salt" character varying NOT NULL DEFAULT ''`);
|
|
}
|
|
|
|
}
|