I lost all my local data
Last active 1 months ago
9 replies
10 views
- FA
Not sure how it happened. I created a new view and did some relationship in said view. Next thing I see it's an error when doing querying some data, went to double check some table permissions and I see all the data is gone…
- NU
have you tried to look at the logs for postgres?
nhost logs postgres
- FA
I get this:
- DA
are you having problems in the cloud or the local dev instance?
- EL
This seems to be locally.
The only way to loose data locally is:
- Delete the data via GraphQL / Postgres
- Delete the the
.nhost
folder
Did you do any of these two @Fakku ?
- FA
I didn't.
I did all these changes in a new branch, so I guess I have a log of the changes I made in the hasura console. Let me know if you wanna take a look and I can DM you the changes I made. @elitan
- FA
havent pushed anything to the cloud yet.
- FA
nope
- SH
just in case you haven't tried this already, if you switch branches back to the original branch make sure you run nhost down and then nhost up. nhost maintains totally separate database/storage in each branch but it won't automatically restart when you switch branches so you end up with the other branch's database unless you remember to restart the cli
Last active 1 months ago
9 replies
10 views