Skip to content

Commit

Permalink
remove unneeded field
Browse files Browse the repository at this point in the history
  • Loading branch information
zorancv committed Jun 13, 2024
1 parent 5a4acef commit 0bb1624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions store/postgres/src/relational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1440,10 +1440,6 @@ pub struct Table {
/// `Stats_hour`, not the overall aggregation type `Stats`.
pub object: EntityType,

/// The name of the database table for this type ('thing'), snakecased
/// version of `object`
pub namespace: SqlName,

/// The name of the database table for this type ('thing'), snakecased
/// version of `object`
pub name: SqlName,
Expand Down
3 changes: 2 additions & 1 deletion store/postgres/src/relational/ddl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ impl Table {
self.create_table(out)?;
self.create_time_travel_indexes(catalog, out)?;
if index_def.is_some() && ENV_VARS.postpone_attribute_index_creation {
let namespace = Namespace::new(self.namespace.to_string()).map_err(|_| fmt::Error)?;
let namespace =
Namespace::new(catalog.site.namespace.to_string()).map_err(|_| fmt::Error)?;
let arr = index_def.unwrap().indexes_for_table(
&namespace,
&self.name.to_string(),
Expand Down

0 comments on commit 0bb1624

Please sign in to comment.