-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Description
running last release of typeorm.
Adding@Index()to a @ViewColumn() of a materialized view doesn't create the index. has to create it manually
@ViewEntity({
name: "vw_all_articles",
expression: sqlExpression,
materialized: true,
})
class AllArticlesView implements TALLArticlesWiew {
@Index("idxAllArticleVW_Article_id", {
unique: true,
})
@ViewColumn()
article_id: IArticles["id"];
}
Can see that the materialized view is well created but not the index.

AmauryLiet, ghtaylor and lcsaguiar