Skip to content

Latest commit

 

History

History
337 lines (225 loc) · 9.78 KB

HISTORY.md

File metadata and controls

337 lines (225 loc) · 9.78 KB

1.2.0

  • July 28, 2016
  • Official Rails 5 support

1.1.0

  • May 26, 2016

1.0.2

  • July 2, 2015
  • Fix pg_dump env vars - pull/208 [MitinPavel]
  • Allow custom seed data file - pull/234 [typeoneerror]

1.0.1

  • April 28, 2015
  • Fix Apartment::Deprecation which was rescuing all exceptions

1.0.0

  • Feb 3, 2015
  • [BREAKING CHANGE] Apartment::Tenant.process is deprecated in favour of Apartment::Tenant.switch
  • [BREAKING CHANGE] Apartment::Tenant.switch without a block is deprecated in favour of Apartment::Tenant.switch!
  • Raise proper TenantNotFound, TenantExists exceptions
  • Deprecate old SchemaNotFound, DatabaseNotFound exceptions

0.26.1

  • Jan 13, 2015

0.26.0

  • Jan 5, 2015
  • Rails 4.2 support

0.25.2

  • Sept 8, 2014
  • Heroku fix on assets:precompile - pull/169 [rabbitt]

0.25.1

  • July 17, 2014
  • Fixed a few vestiges of Apartment::Database

0.25.0

  • July 3, 2014
  • [BREAKING CHANGE] - Apartment::Database is not deprecated in favour of Apartment::Tenant
  • ActiveRecord (and Rails) 4.1 now supported
  • A new sql based adapter that dumps the schema using sql

0.24.3

  • March 5, 2014
  • Rake enhancements weren't removed from the generator template

0.24.2

  • February 24, 2014
  • Better warnings if apartment:migrate is run

0.24.1

  • February 21, 2014
  • requiring apartment/tasks/enhancements in an initializer doesn't work
  • One can disable tenant migrations using Apartment.db_migrate_tenants = false in the Rakefile

0.24

  • February 21, 2014 (In honour of the Women's Gold Medal in Hockey at Sochi)
  • [BREAKING CHANGE] apartment:migrate task no longer depends on db:migrate
    • Instead, you can require 'apartment/tasks/enhancements' in your Apartment initializer
    • This will enhance rake db:migrate to also run apartment:migrate
    • You can now forget about ever running apartment:migrate again
  • Numerous deprecations for things referencing the word 'database'
    • This is an ongoing effort to completely replace 'database' with 'tenant' as a better abstraction
    • Note the obvious Apartment::Database still exists but will hopefully become Apartment::Tenant soon

0.23.2

  • January 9, 2014
  • Increased visibility of #parse_database_name warning

0.23.1

  • January 8, 2014
  • Schema adapters now initialize with default and persistent schemas
  • Deprecated Apartment::Elevators#parse_database_name

0.23.0

  • August 21, 2013
  • Subdomain Elevator now allows for exclusions
  • Delayed::Job has been completely removed

0.22.1

  • August 21, 2013
  • Fix bug where if your ruby process importing the database schema is run from a directory other than the app root, Apartment wouldn't know what schema_migrations to insert into the database (Rails only)

0.22.0

  • June 9, 2013
  • Numerous bug fixes:
    • Mysql reset could connect to wrong database [eric88]
    • Postgresql schema names weren't quoted properly [gdott9]
    • Fixed error message on SchemaNotFound in process
  • HostHash elevator allows mapping host based on hash contents [gdott9]
  • Official Sidekiq support with the apartment-sidekiq gem

0.21.1

  • May 31, 2013
  • Clearing the AR::QueryCache after switching databases.
    • Fixes issue with stale model being loaded for schema adapters

0.21.0

  • April 24, 2013
  • JDBC support!! [PetrolMan]

0.20.0

  • Feb 6, 2013
  • Mysql now has a 'schema like' option to perform like Postgresql (default)
    • This should be significantly more performant than using connections
  • Psych is now supported for Delayed::Job yaml parsing

0.19.2

  • Jan 30, 2013
  • Database schema file can now be set manually or skipped altogether

0.19.1

  • Jan 30, 2013
  • Allow schema.rb import file to be specified in config or skip schema.rb import altogether

0.19.0

  • Dec 29, 2012
  • Apartment is now threadsafe
  • New postgis adapter [zonpantli]
  • Removed ActionDispatch dependency for use with Rack apps (regression)

0.18.0

  • Nov 27, 2012
  • Added append_environment config option [virtualstaticvoid]
  • Cleaned up the readme and generator documentation
  • Added connection_class config option [smashtank]
  • Fixed a bug in pg adapter when missing schema

0.17.1

  • Oct 30, 2012
  • Fixed a bug where switching to an unknown db in mysql2 would crash the app [Frodotus]

0.17.0

  • Sept 26, 2012
  • Apartment has a new home!
  • Support Sidekiq hooks to switch dbs [maedhr]
  • Allow VERSION to be used on apartment:migrate [Bhavin Kamani]

0.16.0

  • June 1, 2012
  • Apartment now supports a default_schema to be set, rather than relying on ActiveRecord's default schema_search_path
  • Additional schemas can always be maintained in the schema_search_path by configuring persistent_schemas [ryanbrunner]
    • This means Hstore is officially supported!!
  • There is now a full domain based elevator to switch dbs based on the whole domain [lcowell]
  • There is now a generic elevator that takes a Proc to switch dbs based on the return value of that proc.

0.15.0

  • March 18, 2012
  • Remove Rails dependency, Apartment can now be used with any Rack based framework using ActiveRecord

0.14.4

  • March 8, 2012
  • Delayed::Job Hooks now return to the previous database, rather than resetting

0.14.3

  • Feb 21, 2012
  • Fix yaml serialization of non DJ models

0.14.2

  • Feb 21, 2012
  • Fix Delayed::Job yaml encoding with Rails > 3.0.x

0.14.1

  • Dec 13, 2011
  • Fix ActionDispatch::Callbacks deprecation warnings

0.14.0

  • Dec 13, 2011
  • Rails 3.1 Support

0.13.1

  • Nov 8, 2011
  • Reset prepared statement cache for rails 3.1.1 before switching dbs when using postgresql schemas
    • Only necessary until the next release which will be more schema aware

0.13.0

  • Oct 25, 2011
  • process will now rescue with reset if the previous schema/db is no longer available
  • create now takes an optional block which allows you to process within the newly created db
  • Fixed Rails version >= 3.0.10 and < 3.1 because there have been significant testing problems with 3.1, next version will hopefully fix this

0.12.0

  • Oct 4, 2011
  • Added a drop method for removing databases/schemas
  • Refactored abstract adapter to further remove duplication in concrete implementations
  • Excluded models now take string references so they are properly reloaded in development
  • Better silencing of schema.rb loading using verbose flag

0.11.1

  • Sep 22, 2011
  • Better use of Railties for initializing apartment
  • The following changes were necessary as I haven't figured out how to properly hook into Rails reloading
    • Added reloader middleware in development to init Apartment on each request
    • Override reload! in console to also init Apartment

0.11.0

  • Sep 20, 2011
  • Excluded models no longer use a different connection when using postgresql schemas. Instead their table_name is prefixed with public.

0.10.3

  • Sep 20, 2011
  • Fix improper raising of exceptions on create and reset

0.10.2

  • Sep 15, 2011
  • Remove all the annoying logging for loading db schema and seeding on create

0.10.1

  • Aug 11, 2011
  • Fixed bug in DJ where new objects (that hadn't been pulled from the db) didn't have the proper database assigned

0.10.0

  • July 29, 2011
  • Added better support for Delayed Job
  • New config option that enables Delayed Job wrappers
  • Note that DJ support uses a work-around in order to get queues stored in the public schema, not sure why it doesn't work out of the box, will look into it, until then, see documentation on queue'ng jobs

0.9.2

  • July 4, 2011
  • Migrations now run associated rails migration fully, fixes schema.rb not being reloaded after migrations

0.9.1

  • June 24, 2011
  • Hooks now take the payload object as an argument to fetch the proper db for DJ hooks

0.9.0

  • June 23, 2011
  • Added module to provide delayed job hooks

0.8.0

  • June 23, 2011
  • Added #current_database which will return the current database (or schema) name

0.7.0

  • June 22, 2011
  • Added apartment:seed rake task for seeding all dbs

0.6.0

  • June 21, 2011
  • Added #process to connect to new db, perform operations, then ensure a reset

0.5.1

  • June 21, 2011
  • Fixed db migrate up/down/rollback
  • added db:redo

0.5.0

  • June 20, 2011
  • Added the concept of an "Elevator", a rack based strategy for db switching
  • Added the Subdomain Elevator middleware to enabled db switching based on subdomain

0.4.0

  • June 14, 2011
  • Added configure method on Apartment instead of using yml file, allows for dynamic setting of db names to migrate for rake task
  • Added seed_after_create config option to import seed data to new db on create

0.3.0

  • June 10, 2011
  • Added full support for database migration
  • Added in method to establish new connection for excluded models on startup rather than on each switch

0.2.0

  • June 6, 2011 *
  • Refactor to use more rails/active_support functionality
  • Refactor config to lazily load apartment.yml if exists
  • Remove OStruct and just use hashes for fetching methods
  • Added schema load on create instead of migrating from scratch

0.1.3

  • March 30, 2011 *
  • Original pass from Ryan