Im having a problem which is driving me nuts. As I opened my project I received the followin error when I clicked on one of my database tables to view the contents:
Its basically telling me no tables or users exist when in fact they do. Any idea how to resolve this? I tried restarting services and closing wappler and reopening. My stack is as follows:
NodeJS,Postgress, Docker
It’s worth noting I had docker issues which is now resolved but I had to reinstall a new version of docker.
Its also worth noting this error also comes up when I pull a version from Gibhub on another device and the other device does not recognise the tables either.
Any help would be greatly appreciated as I am currently stuck.
Did you run your migrations? The Wappler view doesn’t refresh in real time, the tables might not be present (anymore) due to other issue(s) (such as erasing data/volume of a Docker container)
Thanks I will try that. If that doesn’t work it means I deleted docker container. If I deleted a docker container is there any way of fixing this issue?
Delete the database by clicking the shutdown button near the Deploy button, and then Deploy and run the migrations (Changes) again
If you still have a problem then somehow your migrations got messed up and you have to fix or re-create them. I once helped someone here on the forum with the same issue, hope you can find the topic
Hard to tell because we don’t know what caused your issue in first place, only thing we know is Wappler wasn’t totally in sync with your database and that caused issues when you made new migrations
Thanks will do. This is not the first time this has happened to me and it’s made me quite anxious building on Wappler as it paralysis my app … hope they fix it
Oh, ok, I understood that now. Well, that might’ve happened because you had to re-create some of the migrations as they were erroneous in first place, so I wouldn’t consider this to be a valid replication of the suggested bug. If you confirm both computers are with the project exactly at the same (working) state and you try to to create a migration, do a Git clone, run migrations, and you still see that problem, then that’s ok to be considered a (possible) bug
Edit: Have you modified .gitignore? Maybe excluded “db” from Git? I had that once happen to me
Edit 2: Sorry, you can discard my reply, I missed the part where you said you cloned the project (instead of pulled the updates). The investigation of this issue would take time I don’t have at the moment