Collection view (layout) resets every time Strapi is deployed

System Information
  • Strapi Version: 4.10.2
  • Operating System: Ubuntu 20.04.01
  • Database: Postgres 14
  • Node Version: 16.19.1
  • NPM Version: 8.19.3
  • Yarn Version: 1.22.19

Hey guys,

So I had a project on Strapi v3 for a while and after a few hard-working months I managed to migrate it to Strapi v4 and I also managed to get everything running smoothly in production.

However, there is still one issue that I can’t manage to resolve: the collections (and single-types) list & entry views. I configure the fields, give them labels, set the size, etc., and save them. Even for the lists themselves, I set what fields to be displayed, sorting options, etc. and everything works fine, for the moment. However, if I make a code change and redeploy the app, some views reset (or even all of them; it seems “random”).

I simply can’t get the views to remain saved. After each redeploy at least something is reset. It seems that the table “strapi_core_store_settings” is kinda bugged but I can’t seem to understand why.

Can you help me figure it out? Did anyone else had the same/similar problem?

Thank you!