Every time I change columns name or length or anything, I need to drop the entire database in heroku. This is after doing makemigrations
and migrate
. On local, it works fine. I don't need to adjust. On heroku it's becoming to a point where I can't keep resetting. I reset by using heroku pg:reset DATABASE_URL
.
What is another way where I don't need to drop the entire database every single time i make an adjustment?
[[edit]]
DATABASES = {
"default": {
# Add "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
"ENGINE": "django.db.backends.postgresql",
# DB name or path to database file if using sqlite3.
"NAME": "name",
# Not used with sqlite3.
"USER": "uesrname",
# Not used with sqlite3.
"PASSWORD": "password",
# Set to empty string for localhost. Not used with sqlite3.
"HOST": "xxxxxxxxxx.compute-1.amazonaws.com",
# Set to empty string for default. Not used with sqlite3.
"PORT": "5432",
}
}