Project

General

Profile

Actions

Defect #15192

closed

ActiveRecord::JDBCError: Syntax error when running rake db:migrate

Added by run wang over 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

rake aborted!
An error has occurred, this and all later migrations canceled:

ActiveRecord::JDBCError: Error: Syntax Error in or near by "RETURNING" :185: INSERT INTO "permissions" ("action", "controller", "description", "is_public", "mail_enabled", "mail_option", "sort") VALUES ('show', 'projects', 'label_overview', 't', 'f', 'f', 100) RETURNING "id"arjdbc/jdbc/RubyJdbcConnection.java:195:in `execute'
org/jruby/RubyKernel.java:2076:in `send'
org/jruby/RubyKernel.java:2076:in `send'
org/jruby/RubyKernel.java:2076:in `send'
org/jruby/RubyKernel.java:2076:in `send'
/opt/redmine-2.3.0/db/migrate/001_setup.rb:237:in `up'
org/jruby/RubyKernel.java:2076:in `send'
org/jruby/RubyKernel.java:2080:in `send'
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:220:in `call'
org/jruby/RubyArray.java:1615:in `each'
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:220:in `call'
org/jruby/RubyArray.java:1615:in `each'
org/jruby/RubyArray.java:1615:in `each'
org/jruby/RubyKernel.java:1058:in `load'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Actions #1

Updated by Mischa The Evil over 11 years ago

  • Subject changed from When I run "RAILS_ENV=production rake db:migrate",it got wrong. to ActiveRecord::JDBCError: Syntax error when running rake db:migrate
  • Status changed from New to Needs feedback

Please see the submission guidelines and provide the needed information.

Actions #2

Updated by Jan Niggemann (redmine.org team member) over 9 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to No feedback
Actions

Also available in: Atom PDF