Tell us what’s happening:
I have, as far as I can tell, entirely finished the Celestial Bodies Database project. However, few of the checkmarks will change to green, and those that do seem totally arbitrary. The first of them that won’t change is ‘All tables should have a primary key,’ which my code sample below shows is complete. Others that are easily verifiable – ’ You should use the TEXT data type at least once’, for instance – are also not changing. I’ve tried switching to a private window; switching browsers (typically use Firefox, tried Chrome); soft reset; pressing ‘Run’ and ‘Ctl+Enter’.
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Understood, thank you; I’ll remember that in the future. All the tables have the required rows – 6 for galaxy and star, 12 for planet, and 20 for moon, along with 4 for my extra table supernova (minimum 3).
Unfortunately I can’t get it all on my screen and can only upload one image at a time, per the forum’s restrictions. There are two above this that are also grey—‘Each table should have a primary key’ and ‘Each table should have a ‘name’ column.’ Then one below says ‘Each foreign key column should have the same name as the column it is referencing.’
Can you dump out the sql file and anything else you created and perhaps it is time to think about deleting this entire container in codeally.io then restoring your database to a new container (essentially would mean that once the container for this course is deleted you would start a new one from the fCC website and then use your sql dump file to restore everything to see if that triggers the test to behave)
Thank you for the suggestions. I went ahead and did so, and fool that I am failed to check if the dump file actually had the appropriate information, which it did not; in fact, none of the several dumps I made as backups were any different from the first one, so I suppose all the information was stored in the container somehow. Thankfully I saved all the data separately, so it’s just a matter of some tedious data entry now.
I’m not so familiar with how SQL dumps work, but I would guess that this issue is probably related to the fact that I wasn’t getting my checks marked. Maybe I’ll find out when I redo it.
I know this entire course is in beta, so if there’s any further information I can provide that might help with solutions, please let me know. Thanks again for taking the time to help me out, I really appreciate it.
and none of the check marks have changed, which looking over this output seems to make sense.
I also have a strong suspicion, based on the fact that the console in my previous post reads ‘postgres’ and in this one reads ‘universe,’ that this is actually entirely my fault for not connecting to my database after the first time I closed the VM, and I’ve actually been wasting your time here.
Sorry for the delay in responding; ultimately the way I worked my way out of it was ‘do it over’. I think my problem the entire time was that I wasn’t re-connecting to ‘universe’ using /c when logging back in, and ended up making all my tables directly in the ‘postgres’ database, which was a foolish mistake that I know now not to make in the future. Thanks again for trying to help me with this.