My connected database service have no table
fyardlest1
HOBBYOP

10 months ago

I have two services on my project, one .net api and a postgres database. Locally my database have 9 tables after migration but after deployong the projects on Railway my postgres db has no table. I need some help to make it work. Did I miss some variables for the connection?

$10 Bounty

7 Replies

10 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 10 months ago


10 months ago

Please stop opening duplicate threads or you will be banned for spamming.


brody

Please stop opening duplicate threads or you will be banned for spamming.

fyardlest1
HOBBYOP

10 months ago

Sorry for that, I just realize that my antivirus block the site each time I click on the Publish button, that wy the threads are duplicates. Is there a way to delete the duplicates one, please?


10 months ago

I've deleted them.


brody

I've deleted them.

fyardlest1
HOBBYOP

10 months ago

Thank you!


phoenixauro
HOBBY

9 months ago

You should be able to see in your apps deploy logs for database related errors. That would give you an idea of what is wrong.


sim
FREE

9 months ago

If there are no tables then your migrations did not run to create them. How are you running them?


sim
FREE

9 months ago

Railway has documentation on running migrations or seeding data that can help https://docs.railway.com/guides/pre-deploy-command

Quite sure in this case your migrations did not end up running so could you talk more about how you are running this?


Loading...