7 months ago
I have a project that runs perfectly pulling the information from Github. The moment I made a change to the model and added a new column to the database, the changes are not being reflected in the MySQL database in Railway. I have tried so many ways to make it able to create a new column in the current dataset but nothing has work.
Do you have any idea on how to do it? thank you!
8 Replies
7 months ago
Hi Brody thanks for the reply. Yes, I ran the migrations, the github is updated properly, then I connected to the database via CIL: "railway run python manage.py migrate". Nothing changed the file. I also checked the Procfile and it is alright.
7 months ago
Are you linked to the correct service? the database in the project is Postgres, not MySQL.
7 months ago
I am sorry, yes that my mistake by writing down the wrong name. I am using the Postgres DB. The issue is more in the update loop rather than having the wrong linking. I am sure mainly because I have done many updates before and so far no issues but this is a new one I am facing.
7 months ago
How have you confirmed migrations have successfully ran on the correct database?
7 months ago
Whenever I create an input in the django backend it is reflected in the database. It also deploys normally but the post-deploy is not executed for some reason. Maybe that is why?
7 months ago
I am not sure if the migrations are being succesfully run on the database. How could I check?
7 months ago
This unfortunately is going beyond the kind of support we offer to Hobby, we can only offer platform level support to Hobby users, but this is turning more into general questions that don't directly related to the platform, I can safely say you are not running into any platform related issues.
I'll leave this thread open for other community members to comment.