Admin remap task's error


(nXqd) #1

When I tried to run the command to remap hosting when moving from local to production I have this error:

bundle exec script/discourse remap localhost:3002 vrum.vn
Remapping badge_types name
0 rows affected!
Remapping badge_posts raw
/root/src/vendor/bundle/ruby/2.1.0/gems/rack-mini-profiler-0.9.1/lib/patches/sql_patches.rb:160:in `exec': ERROR:  cannot update view "badge_posts" (PG::Error)
DETAIL:  Views that do not select from a single table or view are not automatically updatable.
HINT:  To enable updating the view, provide an INSTEAD OF UPDATE trigger or an unconditional ON UPDATE DO INSTEAD rule.
	from /root/src/vendor/bundle/ruby/2.1.0/gems/rack-mini-profiler-0.9.1/lib/patches/sql_patches.rb:160:in `async_exec'
	from script/discourse:32:in `block in remap'
	from script/discourse:28:in `each'
	from script/discourse:28:in `remap'
	from /root/src/vendor/bundle/ruby/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
	from /root/src/vendor/bundle/ruby/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
	from /root/src/vendor/bundle/ruby/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
	from /root/src/vendor/bundle/ruby/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
	from script/discourse:151:in `<main>'

(Sam Saffron) #2

Fixed:

https://github.com/discourse/discourse/commit/a5ad2411efbc09cd7c27579205d364a405218b2a


(Sam Saffron) #3