Skip to content

Conversation

@dankimio
Copy link

@dankimio dankimio commented Nov 5, 2025

resolves #200

this PR drops support for 7.1 column synthesizing

@omohokcoj curious to hear your thoughts since i have limited understanding of what's going on

Comment on lines 128 to 136
# Persist only real DB columns; exclude synthesized custom_sql aliases
def column_names
connection.schema_cache.columns_hash(table_name).keys
end

# Ensure columns list reflects only real DB columns
def columns
connection.schema_cache.columns(table_name)
end
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ensure only real columns are updated when using motor admin UI

Comment on lines -126 to -133
else
ActiveRecord::ConnectionAdapters::Column.new(
column[:name],
nil,
ActiveRecord::ConnectionAdapters::SqlTypeMetadata.new(sql_type: column[:column_type],
type: column[:column_type].to_sym)
)
end
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drops support for <7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError (no _dump_data is defined for class PG::Result)

1 participant