umayr / potato

A very tiny utility to steal food.
MIT License
0 stars 1 forks source link

Data too long error #9

Closed mohuk closed 9 years ago

mohuk commented 9 years ago

screen shot 2015-07-19 at 6 52 09 pm

mohuk commented 9 years ago

This is how the SQL query looks like

INSERT INTO `menus` (`uuid`,`restaurantId`,`name`,`description`,`type`,`serves`,`price`,`updatedAt`,`createdAt`) 
VALUES (
'645e7263-7d56-4c6b-84fe-46ffedd45e41','32eac6e1-0fb1-47af-8393-2aa85c7adf8e',
'Milk Shakes',
'',
'Beverages',
'Banana  Vanilla  Coconut  Chikoo  Mango  Pakola  Dates  Pineapple  Strawberry  Chocolate  Oreo  Cocktail  Krazy Kit Kat  Vanilla Cream  Banana Breezer  Brownie Blackout  Peach  Ice Cream Flot Vanilla  All Ice Cream  Special Mango  Cadbury  Bounty  Blue Berry  Mars Shake','Rs 100 Rs 150 Rs 150 Rs 150 Rs 150 Rs 150 Rs 150 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200 Rs 200',
'2015-07-19 13:51:43',
'2015-07-19 13:51:43');
mohuk commented 9 years ago

Serves is now in a separate table and has been converted to Sequelize.TEXT('medium')