# Forest Schema Not Updating

**URL:** <https://community.forestadmin.com/t/forest-schema-not-updating/3117>\
**Category:** Help me!\
**Created:** [August 16, 2021, 9:41pm UTC](https://community.forestadmin.com/t/forest-schema-not-updating/3117 "2021-08-16T21:41:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/matt/32/141_2.png) [@Matt](https://community.forestadmin.com/u/Matt)\
**Post date:** [August 16, 2021, 9:41pm UTC](https://community.forestadmin.com/t/forest-schema-not-updating/3117/1 "2021-08-16T21:41:39Z")

</div>

Anytime I add a new field to a model, a new smart action, etc. It appears that my schema file is not automatically updating based off these changes. Do you guys know where I could possibly look to start troubleshooting why this might be happening? Thanks!

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [August 17, 2021, 7:28am UTC](https://community.forestadmin.com/t/forest-schema-not-updating/3117/2 "2021-08-17T07:28:01Z")

</div>

Hey @Matt,

I’m assuming you are working with either `forest-express-sequelize` or `forest-express-mongoose`, is that correct?

If yes, I would suggest to start looking at:

- Does you server restart after each model modification? The schema is only re-generated on server startup.
- What is your current `NODE_ENV` value? Schema will only be re-generated if NODE\_ENV="" or NODE\_ENV=“dev”|'development"
- Is there any logs/deprecation warning that are display upon server startup? Some of theses can lead to a schema not being generated.

If all theses steps are ok on your end, then further investigation might be needed.

Hope this helps 🙏

---

<div class="post-metadata">

**Author:** ![Matt](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/matt/32/141_2.png) [@Matt](https://community.forestadmin.com/u/Matt)\
**Post date:** [August 17, 2021, 4:37pm UTC](https://community.forestadmin.com/t/forest-schema-not-updating/3117/3 "2021-08-17T16:37:30Z")

</div>

Hey @anon39848301 It looks like it was the ENV variable. Thank you!
