Giter Site home page Giter Site logo

Comments (3)

nfamigletti avatar nfamigletti commented on July 18, 2024

I think I know what's causing your error. Whenever I change CreateDb.sql, I run it through my own psql before I push it to github, so hopefully I can make this work for you. I'm not at my own computer now, but I should be able to look into this within the hour.

On Apr 19, 2014, at 1:34 PM, billyshears314 wrote:

When I run CreateDb.sql with "psql -d commotion -a -f CreateDb.sql" to recreate the tables in my database, I get this error:
...
psql:sql/CreateDb.sql:215: ERROR: column "difficulty_id" of relation "users" does not exist
LINE 1: INSERT INTO users (id, username, password, difficulty_id) VA...


Reply to this email directly or view it on GitHub.

from commotion.

ppegusii avatar ppegusii commented on July 18, 2024

I don't have this error. It may be that there's a table left over from a previous version of the script and it needs to be manually dropped. I usually run "psql -d commotion -a -f sql/CreateDb.sql | grep -i error" to make sure I don't miss any error message that happen early in the script execution.

from commotion.

billyshears314 avatar billyshears314 commented on July 18, 2024

Thanks guys, I manually dropped all the tables and now it works fine when I run it.

from commotion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.