# Issue with import script

**URL:** <https://meta.discourse.org/t/issue-with-import-script/84211>\
**Category:** Development\
**Created:** [March 30, 2018, 8:49am UTC](https://meta.discourse.org/t/issue-with-import-script/84211 "2018-03-30T08:49:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Cara](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@Cara](https://meta.discourse.org/u/Cara)\
**Post date:** [March 30, 2018, 12:14pm UTC](https://meta.discourse.org/t/issue-with-import-script/84211/2 "2018-03-30T12:14:53Z")

</div>

I finaly achieve this by updating my punbb database and add the first\_post\_id to it with this:

```
ALTER TABLE boulette_topics ADD COLUMN first_post_id int(10);

UPDATE boulette_topics t SET first_post_id = (SELECT p.id FROM boulette_posts p WHERE p.topic_id = t.id ORDER BY p.id ASC LIMIT 1);

```

---

_[View the full topic](https://meta.discourse.org/t/issue-with-import-script/84211)._
