7

I'm trying to create a schema in heroku DB. I tried using heroku pg:psql --app app_name DATABASE < schema.sql

schema.sql:

CREATE SCHEMA schema_name AUTHORIZATION user_name;

But my program still says that schema_name doesn't exist. Maybe I'm missing something

1 Answer 1

6

I found the problem! I was using Windows console but heroku pg:psql --app app_name DATABASE < schema.sql command didn't work here. I used MINGWN32 console and the following command: cat schema.sql | heroku pg:psql --app app_name and everything worked!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.