Skip to content

How to generate migration? #53

Description

@mogafk

I added PolymorphicParent and PolymorphicChildren decorators to entities but when i try to generate migration like this

typeorm-ts-node-esm migration:generate -d src/migrations-data-source.ts src/migrations/$PG_MIGRATION_NAME

and my migrations generated without new table and columns for polymoprh relations.

My migrations-data-source.ts looks like

import { DataSource } from "typeorm";
export const PGDataSource = new DataSource({
....
})

should i change migrations-data-source.ts for example or something else? i dont understand :(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions