WDI-SEA / project-2-issues

0 stars 0 forks source link

database issue #51

Closed shuzel99 closed 2 years ago

shuzel99 commented 2 years ago

When I press my 'Add to' button in the browser there's an error in my database original: error: column "modelId" does not exist at Parser.parseErrorMessage (C:\Users\shuze\sei_pumpkin_smashers\projects\seiPenApp\node_modules\pg-protocol\dist\parser.js:278:15) at Parser.handlePacket (C:\Users\shuze\sei_pumpkin_smashers\projects\seiPenApp\node_modules\pg-protocol\dist\parser.js:126:29) at Parser.parse (C:\Users\shuze\sei_pumpkin_smashers\projects\seiPenApp\node_modules\pg-protocol\dist\parser.js:39:38) at Socket.<anonymous> (C:\Users\shuze\sei_pumpkin_smashers\projects\seiPenApp\node_modules\pg-protocol\dist\index.js:10:42) Not sure where/how to add modelId

tkolsrud commented 2 years ago

have you checked psql to make sure the table is in your database?

shuzel99 commented 2 years ago

yes, I have all my tables in there

DoireannJane commented 2 years ago

I forgot to ask Shuzel were there changes to your model and did you migrate the changes?

shuzel99 commented 2 years ago

I migrated it when I first saw the error to make sure but it said there weren't any changes

DoireannJane commented 2 years ago

Hm ok, let's take a look at your models, requirements and your table in your db first.