Changeset 356

Show
Ignore:
Timestamp:
09/13/07 04:41:16 (1 year ago)
Author:
bermiferrer
Message:

When creating a versioning table we need to make sure the versions table has a version column might not be reported be the association owner until it is reloaded.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/acts_as_versioned/lib/ActsAsVersioned.php

    r351 r356  
    194194        $columns = $this->getVersionedColumnSettings(); 
    195195        $migration_columns = array(); 
     196        if(empty($columns[$this->options['version_column']])){ 
     197            $columns[$this->options['version_column']] = array('type'=>'integer'); 
     198        } 
    196199        foreach ($columns as $name => $details){ 
    197200            $migration_columns[] = $name.' '.$details['type'];