Database Migration Success, but lost data

amexn-meHOBBY

a year ago

I have migrated my postgres DB as requested by railway before, and I was using it. now when i checked, there are many data that was lost but was there 1 week back.

Solved

3 Replies

It sounds like you did not switch over your connection strings after migrating. Please re-migrate and ensure that you switch the connection strings over after doing so.


Status changed to Solved railway[bot] over 1 year ago


amexn-meHOBBY

a year ago

Hi RC,

No, I have tried and got access to the DB. But the DB that is there right now has data till a date that is not relevant to the migration. My node server was connecting with the old variables till last week and data was saved to that instance, I dont know where its now.

To be precise:
containers-us-west-138.railway.app - This was the earlier DB Host link. Is there any chance of recovering lost data some sort?


a year ago

Ray is correct in his assessment, Please re-migrate and ensure that you switch the connection strings over after doing so.