strapi / LaunchPad

Official Strapi Demo application
108 stars 27 forks source link

Failed to seed sample data #18

Open perotom opened 1 week ago

perotom commented 1 week ago

Fix

Describe your request

npm run seed finished with

error: [ERROR] insert into "public"."articles" ("content", "created_at", "description", "document_id", "locale", "published_at", "slug", "title", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9) returning "id" - value too long for type character varying(255)

and

error: [ERROR] insert into "public"."components_shared_seos" ("canonical_url", "keywords", "meta_description", "meta_robots", "meta_title", "meta_viewport", "structured_data") values ($1, $2, $3, $4, $5, $6, $7) returning "id" - value too long for type character varying(255)

Steps to reproduce the behavior

  1. Follow read me instructions for setup.

Expected behavior

Import should work

Additional context

After manually changing all column length to more than 255, started to work. Tested with Postgresql 16.