Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sqlite database not migrated to postgresql when pushed to heroku server (django)

I pushed my app to heroku, but it seems that the database did not migrate (the database has 0 tables and 0 entries). How can I migrate it correctly?

like image 634
babbaggeii Avatar asked Jan 30 '26 04:01

babbaggeii


1 Answers

If you're using the Starter-tier databases, there is a delay in populating those stats. You can see if there are tables immediately if you psql in:

$ heroku pg:psql -a app_name
psql=> \dt
[...tables...] 

Also, please see my answer here on using postgres locally instead of sqlite3 (recommended):

  • https://stackoverflow.com/a/15373024/95741
like image 199
catsby Avatar answered Feb 01 '26 18:02

catsby



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!