Skip to content

Commit

Permalink
fix: migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhcyb2611 committed Jul 25, 2024
1 parent 23aeb08 commit e72ada6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
14 changes: 0 additions & 14 deletions src/infrastructure/migrations/1720783675512-migration.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/infrastructure/migrations/1720784072178-migration.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class Migration1720782119274 implements MigrationInterface {
name = 'Migration1720782119274'
export class Migration1721905386635 implements MigrationInterface {
name = 'Migration1721905386635'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`CREATE TABLE "user" ("id" SERIAL NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT ('now'::text)::timestamp(6) with time zone, "updatedAt" TIMESTAMP NOT NULL DEFAULT ('now'::text)::timestamp(6) with time zone, "email" character varying NOT NULL, "images" text array NOT NULL, CONSTRAINT "PK_cace4a159ff9f2512dd42373760" PRIMARY KEY ("id"))`);
await queryRunner.query(`CREATE TABLE "user" ("id" SERIAL NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT ('now'::text)::timestamp(6) with time zone, "updatedAt" TIMESTAMP NOT NULL DEFAULT ('now'::text)::timestamp(6) with time zone, "email" character varying NOT NULL, "images" character varying, CONSTRAINT "UQ_e12875dfb3b1d92d7d7c5377e22" UNIQUE ("email"), CONSTRAINT "PK_cace4a159ff9f2512dd42373760" PRIMARY KEY ("id"))`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
Expand Down

0 comments on commit e72ada6

Please sign in to comment.