-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename typeorm metadata table #7473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request renames the TypeORM metadata table to '_typeorm_generated_columns_and_materialized_views' and introduces a new migration to create this table, addressing issue #7453 which requested dropping the 'typeorm_metadata' table and handling generated columns differently.
- Modified
core.datasource.ts
to include 'metadataTableName' option in TypeORM configuration - Added new migration file
1728314605995-add_typeormGeneratedColumnsAndMaterializedViews.ts
to create the renamed metadata table - Removed old migration file
1726848397026-addTypeOrmMetadata.ts
- Updated
typeorm.service.ts
to use the new metadata table name in DataSource configuration
4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
CREATE TABLE "core"."_typeorm_generated_columns_and_materialized_views" ( | ||
"type" character varying NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Define specific character varying length for 'type' column
Fixes #7453