# Importing Votes: Is it Possible to Use a PostgreSQL Command or other to Set Vote Counts on Specific Topics?"

**URL:** <https://meta.discourse.org/t/importing-votes-is-it-possible-to-use-a-postgresql-command-or-other-to-set-vote-counts-on-specific-topics/266895>\
**Category:** Migration\
**Tags:** topic-voting\
**Created:** [June 1, 2023, 2:41pm UTC](https://meta.discourse.org/t/importing-votes-is-it-possible-to-use-a-postgresql-command-or-other-to-set-vote-counts-on-specific-topics/266895 "2023-06-01T14:41:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Luicid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luicid/32/306711_2.png) [@Luicid](https://meta.discourse.org/u/Luicid)\
**Post date:** [July 4, 2023, 9:10am UTC](https://meta.discourse.org/t/importing-votes-is-it-possible-to-use-a-postgresql-command-or-other-to-set-vote-counts-on-specific-topics/266895/3 "2023-07-04T09:10:20Z")

</div>

Wow, thank you for this great and helpful post! 🙂  
I decided to opt for a different approach:

In my original website, I was able to retrieve the data on who voted for what, so I stored that information in a database. Later on, I used a Python script with the requests library to cast votes from their migrated accounts for the ideas they had already voted for, and voilà!

Thank you again

---

_[View the full topic](https://meta.discourse.org/t/importing-votes-is-it-possible-to-use-a-postgresql-command-or-other-to-set-vote-counts-on-specific-topics/266895)._
