We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Package
Describe the bug
No database index is created when using the Index decorator. see example below.
To Reproduce
The following should create an index like CREATE INDEX ON "Investment" ("projectId");, but the index is not created:
CREATE INDEX ON "Investment" ("projectId");
import { Entity, ManyToOne, PrimaryGeneratedColumn, BaseEntity, Index } from "@fullstack-one/db"; import { Emission } from "./Emission"; @Entity() export default class Investment extends BaseEntity { @PrimaryGeneratedColumn() public readonly id!: string; @ManyToOne((type) => Emission, "investments", { nullable: false, lazy: true }) @Index() public emission!: Promise<Emission>; }
Expected behavior Index should be created.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Package
Describe the bug
No database index is created when using the Index decorator. see example below.
To Reproduce
The following should create an index like
CREATE INDEX ON "Investment" ("projectId");
, but the index is not created:Expected behavior
Index should be created.
The text was updated successfully, but these errors were encountered: