Need to refresh list of fields in DB manager automatically after changes applied

I think that applying DB changes is not completely obvious now. Let me explain.

Suppose I have two targets: local and prod. Both of them connected to different external databases.
I wanna make changes in schema for both DBs through Wappler.
The plan is to add new fields locally and then apply them in the prod.

Current steps in local target:

  1. In Database Manager go to an already created table and add a new field. You clearly see it appeared in the list of the fields.

image
2. Press “Apply Database Changes”, enter some description.
3. Suppose you change target and then change it back (doesn’t matter why, you just want to do that)
4. Go to DB Manager and open the table again. You can’t see the new field you created before.

image
This happened because you don’t refresh the schema manually. But you didn’t know that you needed to do it!
5. You click “Refresh schema” in the context menu and now you are ok.

image

After that I go to prod in order to apply changes there.

  1. Change target
  2. In DB Manager go to Changes and apply them.
  3. You still don’t see changes in the tree!
  4. You click “Refresh schema” in the context menu and now you are ok.

Described issue is not bug, but it can cause problems.
Some Wappler users, especially new ones, could not understand this behavior.

Even more confusion added because here is another schema refresh button, but it doesn’t affect the list of fields.

image

So, I suggest the list of tables and fields must be automatically refreshed after changes are applied.