diff --git a/src/ctl/src/cmd_impl/meta/migration.rs b/src/ctl/src/cmd_impl/meta/migration.rs index db3e166c07a6f..66fde163eff55 100644 --- a/src/ctl/src/cmd_impl/meta/migration.rs +++ b/src/ctl/src/cmd_impl/meta/migration.rs @@ -816,14 +816,14 @@ pub async fn migrate(from: EtcdBackend, target: String, force_clean: bool) -> an .conn .execute(Statement::from_string( DatabaseBackend::Postgres, - "SELECT setval('object_oid_seq', SELECT MAX(oid) FROM object);", + "SELECT setval('object_oid_seq', (SELECT MAX(oid) FROM object));", )) .await?; meta_store_sql .conn .execute(Statement::from_string( DatabaseBackend::Postgres, - "SELECT setval('user_user_id_seq', SELECT MAX(user_id) FROM \"user\");", + "SELECT setval('user_user_id_seq', (SELECT MAX(user_id) FROM \"user\"));", )) .await?; }