# Cannot update with voting plugin

**URL:** <https://meta.discourse.org/t/cannot-update-with-voting-plugin/161209>\
**Category:** Product Support\
**Created:** [August 17, 2020, 11:52pm UTC](https://meta.discourse.org/t/cannot-update-with-voting-plugin/161209 "2020-08-17T23:52:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)\
**Post date:** [August 17, 2020, 11:52pm UTC](https://meta.discourse.org/t/cannot-update-with-voting-plugin/161209/1 "2020-08-17T23:52:17Z")

</div>

Running `./launcher rebuild app` returns the following output:

```
I, [2020-08-17T23:48:27.330418 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
2020-08-17 23:48:33.365 UTC [3383] discourse@discourse ERROR: invalid input syntax for type integer: ""
2020-08-17 23:48:33.365 UTC [3383] discourse@discourse STATEMENT: INSERT INTO discourse_voting_votes(topic_id, user_id, archive, created_at, updated_at)
        SELECT value::integer, user_id, 'false', created_at, updated_at
        FROM user_custom_fields
        WHERE name = 'votes'
        ON CONFLICT(user_id, topic_id) DO NOTHING

rake aborted!

```

I suspect from the [Discourse Voting plugin](https://github.com/discourse/discourse-voting), right?  
I see there are [quite a lot of recent commits](https://github.com/discourse/discourse-voting/tree/master/db/migrate).

---

_[View the full topic](https://meta.discourse.org/t/cannot-update-with-voting-plugin/161209)._
