fix: setup to allow login to Medusa Cloud

This commit is contained in:
Sebastian Rindom
2021-04-22 18:44:55 +02:00
parent 7343a4e841
commit bbd2f02d54
13 changed files with 355 additions and 6966 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`
)
}
}