World Cup Database - Build a World Cup Database

Tell us what’s happening:
hey I need help i don’t know that to do everything it’s passing but
Your games table should have a game_id column that is a type of SERIAL and is the primary key, a year column of type INT , and a round column of type VARCHAR
AND
All of your columns should have the NOT NULL constraint
are not passing and create the code for it and everything its “NOT NULL” too so I don’t understand why its not working please help
Describe your issue in detail here.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: World Cup Database - Build a World Cup Database

Link to the challenge:

can you provide us a list of your schema? (using /l and /d commands?)

yes its in GitHub already its the PSQL and BASH fils
and thank you for attending my help

or you need some different info?

If you could capture the current state of the database and tables, that would be great (I think your sql file doesn’t show in one shot the results of those two /l and /d for each table )


this one its suppose to fix the Your games table should have a game_id column that is a type of SERIAL and is the primary key, a year column of type INT , and a round column of type VARCHAR

ok so for this one, do you see a game_id anywhere? (I just see a games_id)

and the All of your columns should have the NOT NULL constraint too

too how I fixe what I suppose to put?

Screen Shot 2022-09-30 at 2.04.24 PM
its not this one?

I am not sure what you are planning. For eg. Do you want to drop the whole table and recreate it from scratch? Or do you just want to altar it (column by column)?

I think alter it could be batter because all commands are done already all thing its pass only this 2 things dint pass as you can see

That sounds like a plan. Do you know how to altar a column in psql? (I just google the command each time myself)

yes by ALTER TABLE and ADD COLUMN

sorry or ALTER TABLE and ALTER COLUMN

Ok, do you want to try and let me know if you need more help?

its show ing same message Your “games” table should have the correct “game_id”, “year”, and “round” columns

sorry to ask. if you did the game_id column how would you make the line code for it ?

Honestly I would just google the command.

What command did you try?

I TRY It 3 of this

ALTER TABLE === ALTER COLUMN ====SET NOT NULL;

ALTER TABLE ==== ADD COLUMN

ALTER TABLE ===ALTER COLUMN ===DROP NOT NULL;

Try googling this: “psql rename column”

And see what you get. Just try to fix one thing at a time.