Merge branch 'develop' into feat/draft-orders

This commit is contained in:
Sebastian Rindom
2021-06-08 15:48:17 +02:00
committed by GitHub
34 changed files with 879 additions and 7196 deletions
@@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from "typeorm"
export class nullablePassword1619108646647 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "user" ALTER COLUMN "password_hash" DROP NOT NULL`
)
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "user" ALTER COLUMN "password_hash" TYPE character varying, ALTER COLUMN "password_hash" NOT NULL`
)
}
}