I have implemented virtual columns support with new syntax, as we discussed.
For tests I have been using Oracle 11 XE (it is now accesible from oracle site as beta), also it works as expected in our current project on Oracle 11, both on 64-bit linux.
FIX specs with schema creation didn't see spec instance variables
ADD virtual columns new syntax in create_table migrations\dump
FIX set defaults to nil for virtual columns
ADD virtual columns support in add_column migration helper
ADD virtual columns support to change_column migration helper
FIX dump virtual column type as symbol
ADD test for changing virtual column type
I am just thinking that probably it would be good also to check for :default option if :as option is not provided. I would like to include these patches in next 1.4.1 release of adapter and it would be good that in patch releases API is backwards compatible. Is there any other incompatibility with previous version of virtual column support?
ADD support for :default option in virtual column definintion (for ba…
I added support for :default option in create_table statement, I think this is the only backward incompatibilty, the other one is minor and merely a bug - in previous version if I didn't save record, virtual column was returning 0 if it was integer, and returned column expression if it was string. Now it return nil in both cases.
Also I didn't add support of :default in other migration helpers, as they was not present in previous version. I added warn message if deprecated option is used, see is it ok with your lib conventions.
FIX corruption of virtual_column_data_default instance variable due t…
…o direct string update
Silly bug that was rarely ocuring - only after several sequential database dumps with column_cache = true.
I will be spending my vacation for the next two weeks, so I apologize in advance for the possible delays in responses.
FIX incorrect dumping of virtual column expression due to cleaning of…