# Schema:update - New fields not updated

**URL:** https://community.forestadmin.com/t/schema-update-new-fields-not-updated/5159
**Category:** Help me!
**Created:** [August 27, 2022, 2:10pm UTC](https://community.forestadmin.com/t/schema-update-new-fields-not-updated/5159 "2022-08-27T14:10:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Gp2mv3](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/gp2mv3/32/4970_2.png) [@Gp2mv3](https://community.forestadmin.com/u/Gp2mv3)
#### Post date: [August 27, 2022, 2:10pm UTC](https://community.forestadmin.com/t/schema-update-new-fields-not-updated/5159/1 "2022-08-27T14:10:30Z")

</div>

Hello,  
I’m using Forest for a small project that I never touched since the first deploy.  
I just updated my project and added some fields in the database (Postgres, using Prisma).

The new fields don’t show up in my admin panel. What should I do ?  
I tried forest `schema:update` but the output is as below:

```javascript
√ Connecting to your database(s)
√ Analyzing the database(s)
√ Disconnecting from your database(s)
  skip forest/alert-rules-to-monitor.js - already exists.
  skip forest/alert-rules.js - already exists.
  skip forest/job.js - already exists.
  skip forest/monitor.js - already exists.
  skip forest/run.js - already exists.
  skip forest/session.js - already exists.
  skip forest/user.js - already exists.
  skip models/alert-rules-to-monitor.js - already exists.
  skip models/alert-rules.js - already exists.
  skip models/job.js - already exists.
  skip models/monitor.js - already exists.
  skip models/run.js - already exists.
  skip models/session.js - already exists.
  skip models/user.js - already exists.
  skip routes/alert-rules-to-monitor.js - already exists.
  skip routes/alert-rules.js - already exists.
  skip routes/job.js - already exists.
  skip routes/monitor.js - already exists.
  skip routes/run.js - already exists.
  skip routes/session.js - already exists.
  skip routes/user.js - already exists.
√ Generating your files

```

It seems to skip the entire tables because those already exist. What should I do to update the schemas ?

Thanks,

---

<div class="post-metadata">

### Author: ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)
#### Post date: [August 29, 2022, 8:13am UTC](https://community.forestadmin.com/t/schema-update-new-fields-not-updated/5159/2 "2022-08-29T08:13:57Z")

</div>

Hi @Gp2mv3 and welcome to the community 👋

It would help us to investigate if you could indicate us those information below :

- Project name: …
- Team name: …
- Environment name: …
- Agent type & version: …

And for the fields added, did you add some columns without data or does they already have data in it ?

Best regards,

Shohan

---

<div class="post-metadata">

### Author: ![Gp2mv3](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/gp2mv3/32/4970_2.png) [@Gp2mv3](https://community.forestadmin.com/u/Gp2mv3)
#### Post date: [August 29, 2022, 8:46am UTC](https://community.forestadmin.com/t/schema-update-new-fields-not-updated/5159/3 "2022-08-29T08:46:05Z")

</div>

Hello,  
Thanks for your message.  
Here are the info:

- Project name: Qualitycs
- Team name: Operations
- Environment: all
- Agent type: node ? I followed the tutorial.
- Forest-cli version: forest-cli/2.7.0 linux-x64 node-v16.15.1

Here are the dependencies package.json:

```javascript
  "dependencies": {
    "body-parser": "1.19.0",
    "chalk": "~1.1.3",
    "cookie-parser": "1.4.4",
    "cors": "2.8.5",
    "debug": "~4.0.1",
    "dotenv": "~6.1.0",
    "express": "~4.17.1",
    "express-jwt": "6.1.2",
    "forest-express-sequelize": "^8.0.0",
    "morgan": "1.9.1",
    "require-all": "^3.0.0",
    "sequelize": "~5.15.1",
    "pg": "~8.2.2"
  }

```

Hope it helps !

---

<div class="post-metadata">

### Author: ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)
#### Post date: [August 29, 2022, 1:42pm UTC](https://community.forestadmin.com/t/schema-update-new-fields-not-updated/5159/4 "2022-08-29T13:42:49Z")

</div>

To force-update your schema you can do : `forest schema:update -o tmp` to re-export all your models in a dedicated folder.  
It should update the file with your new fields.

---

<div class="post-metadata">

### Author: ![Gp2mv3](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/gp2mv3/32/4970_2.png) [@Gp2mv3](https://community.forestadmin.com/u/Gp2mv3)
#### Post date: [August 30, 2022, 4:55pm UTC](https://community.forestadmin.com/t/schema-update-new-fields-not-updated/5159/5 "2022-08-30T16:55:19Z")

</div>

Nice, that works !

I just noticed that I had the exact same problem with another project. I forced an update and it solved the issue. I think the command line should skip files less easily.

For people that have the same issue, my solution is as follow:

```javascript
forest schema:update -o tmp
cp -R ./tmp/* ./
rm -R tmp

```
