We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 673ac4d commit f44d1baCopy full SHA for f44d1ba
components/gitpod-db/src/typeorm/migration/1686907204398-FreeCredits.ts
@@ -5,9 +5,14 @@
5
*/
6
7
import { MigrationInterface, QueryRunner } from "typeorm";
8
+import { tableExists } from "./helper/helper";
9
10
export class FreeCredits1686907204398 implements MigrationInterface {
11
public async up(queryRunner: QueryRunner): Promise<void> {
12
+ if (await tableExists(queryRunner, "d_b_free_credits")) {
13
+ return;
14
+ }
15
+
16
await queryRunner.query(
17
`
18
CREATE TABLE d_b_free_credits (
0 commit comments