diff --git a/examples/with-mysql/README.md b/examples/with-mysql/README.md index b9b095d02c56..a853b6584dea 100644 --- a/examples/with-mysql/README.md +++ b/examples/with-mysql/README.md @@ -75,7 +75,7 @@ Push the database schema to your PlanetScale database using Prisma. Run the seed script to populate your database with `Product` and `Category` data. -`npx run seed` +`npm run seed` ## Run the App diff --git a/examples/with-mysql/components/Product.js b/examples/with-mysql/components/Product.js index bea16c88a91b..16f32b38399b 100644 --- a/examples/with-mysql/components/Product.js +++ b/examples/with-mysql/components/Product.js @@ -5,13 +5,14 @@ export default function Product({ product }) { return (
{name} diff --git a/examples/with-mysql/prisma/data.js b/examples/with-mysql/prisma/data.js index c3476c0966c8..ce11c7a81797 100644 --- a/examples/with-mysql/prisma/data.js +++ b/examples/with-mysql/prisma/data.js @@ -17,31 +17,31 @@ const categories = [ const products = [ { - name: 'Cool hat.', - description: 'A nice hat to wear on your head', + name: 'Cool helmet.', + description: 'A nice helmet to wear on your head', price: new Prisma.Decimal(19.95), - image: '/images/placeholder.jpg', + image: '/images/helmet.jpg', category_id: 1, }, { name: 'Grey T-Shirt', description: 'A nice shirt that you can wear on your body', price: new Prisma.Decimal(22.95), - image: '/images/placeholder.jpg', + image: '/images/shirt.jpg', category_id: 3, }, { name: 'Socks', description: 'Cool socks that you can wear on your feet', price: new Prisma.Decimal(12.95), - image: '/images/placeholder.jpg', + image: '/images/socks.jpg', category_id: 2, }, { name: 'Sweatshirt', description: 'Cool sweatshirt that you can wear on your body', price: new Prisma.Decimal(12.95), - image: '/images/placeholder.jpg', + image: '/images/sweatshirt.jpg', category_id: 3, }, ] diff --git a/examples/with-mysql/public/images/astronaut-suit.jpg b/examples/with-mysql/public/images/astronaut-suit.jpg deleted file mode 100644 index 03daf5662234..000000000000 Binary files a/examples/with-mysql/public/images/astronaut-suit.jpg and /dev/null differ diff --git a/examples/with-mysql/public/images/placeholder.jpg b/examples/with-mysql/public/images/placeholder.jpg deleted file mode 100644 index ca3bd1dab92b..000000000000 Binary files a/examples/with-mysql/public/images/placeholder.jpg and /dev/null differ