Skip to content

Conversation

@wpolicarpo
Copy link
Member

This PR refactors SQLServer::Column (former SQLServerColumn) and SQLServer::TypeMetadata so it includes the SQL Server's specific attributes.

Instead of having a Hash with all SQL Server attributes, the logic was changed to handle named attributes the same way the Postgres adapter does. This is to make sure all attributes are dumped into the schema cache once necessary and to make it more compliant with what Rails does internally.

Important

This is a breaking change comparing to older versions and if you have a schema_cache.{yml,dump}, a fresh dump will be necessary.

Fix #696.

@wpolicarpo wpolicarpo merged commit e4d91fc into main Aug 6, 2021
@wpolicarpo wpolicarpo deleted the fix-schema-cache branch August 6, 2021 22:16
lavika pushed a commit to lavika/activerecord-sqlserver-adapter that referenced this pull request Sep 26, 2023
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.

db:schema:cache:dump skips column @sqlserver_options

2 participants