# Reinstalar Categoria de Funcionários

**URL:** <https://meta.discourse.org/t/reinstate-staff-category/52232>\
**Category:** Self-hosting\
**Created:** [Outubro 30, 2016, 2:45pm UTC](https://meta.discourse.org/t/reinstate-staff-category/52232 "2016-10-30T14:45:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lxk](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lxk](https://meta.discourse.org/u/lxk)\
**Post date:** [Janeiro 14, 2017, 12:25am UTC](https://meta.discourse.org/t/reinstate-staff-category/52232/2 "2017-01-14T00:25:47Z")

</div>

righto so I think I’ve fixed it, roughly here’s how

Entered Container

`./launcher enter db-container`

Accessed Discourse DB

`su -c 'psql discourse' postgres`

Had a look at the values of the deleted category

`SELECT * FROM site_settings where name = 'staff_category_id'`

This returned ID: 4

Found the Category ID of newly created staff category

`SELECT id FROM categories WHERE name = 'new staff channel'`

This returned ID: 15, which I re-assigned to the staff\_category\_id

```
UPDATE site_settings
SET value='15'
WHERE id='4';
AND name='staff_category_id'

```

---

_[View the full topic](https://meta.discourse.org/t/reinstate-staff-category/52232)._
