acceptmycrypto / AMC-Web

4 stars 3 forks source link

deal images from sql file do not insert into db #214

Closed Yanananan closed 5 years ago

Yanananan commented 5 years ago

In schema.sql, deal_images table has 5 columns, none can be null. (see line 95)

In seeds_deals.sql, the insertions from line 42 to 99 only insert into two columns, therefore the insertions fail.

So either make it two columns in schema.sql, or insert the other columns of info in seeds_deals.sql. I'm not sure what deal_image_key and deal_image_object are so i don't wanna just delete them..

Yanananan commented 5 years ago

Since this doesn't happen when adding ideals, I'll just cancel this bug.