incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From record...@apache.org
Subject svn commit: r513914 - in /incubator/heraldry/idp/pip/trunk/db/migrate: 005_rename_title_columns.rb 012_add_attachment_fields.rb
Date Fri, 02 Mar 2007 19:45:10 GMT
Author: recordond
Date: Fri Mar  2 11:45:09 2007
New Revision: 513914

URL: http://svn.apache.org/viewvc?view=rev&rev=513914
Log:
Patch by Ward Vandewege fixing migrations for the downgrade path.
https://issues.apache.org/jira/browse/HERALDRY-3

Thanks for the patch!

Modified:
    incubator/heraldry/idp/pip/trunk/db/migrate/005_rename_title_columns.rb
    incubator/heraldry/idp/pip/trunk/db/migrate/012_add_attachment_fields.rb

Modified: incubator/heraldry/idp/pip/trunk/db/migrate/005_rename_title_columns.rb
URL: http://svn.apache.org/viewvc/incubator/heraldry/idp/pip/trunk/db/migrate/005_rename_title_columns.rb?view=diff&rev=513914&r1=513913&r2=513914
==============================================================================
--- incubator/heraldry/idp/pip/trunk/db/migrate/005_rename_title_columns.rb (original)
+++ incubator/heraldry/idp/pip/trunk/db/migrate/005_rename_title_columns.rb Fri Mar  2 11:45:09
2007
@@ -27,6 +27,6 @@
     add_column :trusts, :persona_id, :integer
     remove_column :trusts, :profile_id
     
-    rename_column :profiles, :name, :title
+    rename_column :profiles, :title, :name
   end
 end

Modified: incubator/heraldry/idp/pip/trunk/db/migrate/012_add_attachment_fields.rb
URL: http://svn.apache.org/viewvc/incubator/heraldry/idp/pip/trunk/db/migrate/012_add_attachment_fields.rb?view=diff&rev=513914&r1=513913&r2=513914
==============================================================================
--- incubator/heraldry/idp/pip/trunk/db/migrate/012_add_attachment_fields.rb (original)
+++ incubator/heraldry/idp/pip/trunk/db/migrate/012_add_attachment_fields.rb Fri Mar  2 11:45:09
2007
@@ -26,7 +26,7 @@
 
   def self.down
     remove_column "users", "filename"
-    remove_column "content_type", "content_type"
+    remove_column "users", "content_type"
     remove_column "users", "size"
     remove_column "users", "width"
     remove_column "users", "height"



Mime
View raw message