Skip to content

Commit

Permalink
fix(meta): fix migration query under postgres meta store for #18753 (#…
Browse files Browse the repository at this point in the history
…19151)

Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Oct 28, 2024
1 parent 4443c63 commit 1bb0eba
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ impl MigrationTrait for Migration {
UpdateStatement::new()
.table(Table::Table)
.values([(Table::VnodeCount, Expr::value(1))])
.and_where(Expr::col(Table::DistributionKey).eq(Expr::value("[]")))
.and_where(Expr::col(Table::DistKeyInPk).eq(Expr::value("[]")))
.and_where(
Expr::col(Table::DistributionKey)
.cast_as(Alias::new("varchar"))
.eq(Expr::value("[]")),
)
.and_where(
Expr::col(Table::DistKeyInPk)
.cast_as(Alias::new("varchar"))
.eq(Expr::value("[]")),
)
.and_where(Expr::col(Table::VnodeColIndex).is_null())
.to_owned(),
)
Expand Down

0 comments on commit 1bb0eba

Please sign in to comment.