Django Project - 1 database 2 schemas - Postgres database

9 views
Skip to first unread message

LeandroL

unread,
Aug 12, 2019, 9:55:36 AM8/12/19
to Django users

Hi,

 

I am working on a public project that uses Django.

 

When I do ‘python manage.py migrate’ I get all my tables created properly on schema public. It also creates an extension hstore (and at least one of the table uses this extension).

 

Then I rename the schema public, to for example public_1 and create new schema called public. When I do ‘python manage.py migrate’ (to create the tables on the new empty schema public) it fails.

It says ‘type hstore does not exist’.

 

Seems like, the extension, is created for the first schema, but the second time (for the second schema) it fails.

 

 

Do you know how can I sort this?



Thanks!


Leandro


django.png

Reply all
Reply to author
Forward
0 new messages