Permalink
Browse files

Fixed first run of "rake migrate" on PostgreSQL by not expecting a re…

…turn value on the id #1640

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 5a9a93d commit bd832a221b1c1bd09ecf446775c8d636d3783b6a @dhh dhh committed Jul 7, 2005
View
5 activerecord/CHANGELOG
@@ -1,3 +1,8 @@
+*SVN*
+
+* Fixed first run of "rake migrate" on PostgreSQL by not expecting a return value on the id #1640
+
+
*1.11.0* (5th July, 2005)
* Fixed that Yaml error message in fixtures hid the real error #1623 [Nicholas Seckar]
View
2 activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -361,7 +361,7 @@ def add_limit_offset!(sql, options)
def initialize_schema_information
begin
execute "CREATE TABLE schema_info (version #{type_to_sql(:integer)})"
- insert "INSERT INTO schema_info (version) VALUES(0)"
+ execute "INSERT INTO schema_info (version) VALUES(0)"
rescue ActiveRecord::StatementInvalid
# Schema has been intialized
end

0 comments on commit bd832a2

Please sign in to comment.