diff options
Diffstat (limited to 'util/src/entities/Migration.ts')
-rw-r--r-- | util/src/entities/Migration.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/util/src/entities/Migration.ts b/util/src/entities/Migration.ts deleted file mode 100644 index 3f39ae72..00000000 --- a/util/src/entities/Migration.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Column, Entity, ObjectIdColumn, PrimaryGeneratedColumn } from "typeorm"; -import { BaseClassWithoutId } from "."; - -export const PrimaryIdAutoGenerated = process.env.DATABASE?.startsWith("mongodb") - ? ObjectIdColumn - : PrimaryGeneratedColumn; - -@Entity("migrations") -export class Migration extends BaseClassWithoutId { - @PrimaryIdAutoGenerated() - id: number; - - @Column({ type: "bigint" }) - timestamp: number; - - @Column() - name: string; -} |