# Some questions on vbulletin import script (groups, likes, attachments)

**URL:** https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990
**Category:** Support
**Created:** [15 Janeiro , 2016 08:17 UTC](https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990 "2016-01-15T08:17:08Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [16 Janeiro , 2016 01:15 UTC](https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990/2 "2016-01-16T01:15:06Z")

</div>

> [@lrossouw](#):
>
> but again, how do I import said like to discourse. Probably after posts have been imported I need to loop through all the likes/thanks in my database and like the corresponding post on discourse? (Can’t wait for the dislike button to disappear…).

You’ll need to create records in the post\_actions table.

Here’s the columns you need to know:

```plaintext
id serial primary key
post_id integer fkey posts
user_id integer fkey users
post_action_type_id integer ; like = 2
deleted_at timestamp null
created_at timestamp
updated_at timestamp
deleted_by_id integer null, fkey users

```

---

_[View the full topic](https://meta.discourse.org/t/some-questions-on-vbulletin-import-script-groups-likes-attachments/37990)._
