Skip to content

scaffold: db seed is a placebo — SELECT 1 plus a success banner, no rows seeded #1262

Description

@rickylabs

Found during the #1250 composed verification (live scaffold at PR #1256's head). The scaffolded database/postgres/scripts/seed.ts is:

await client.$queryRaw`SELECT 1`;
console.log('✅ Database seed completed.');

netscript db seed therefore reports success while seeding nothing — the same silently-inert class as #1250's coercion plugin. Any docs/tutorial step that says 'seed then browse data' produces an empty table with a green checkmark, and GET-by-id docs-page requests hit missing rows (which currently 500 — filed separately).

Acceptance

  • The scaffolded seed script seeds at least one representative row per generated model (or explicitly prints that the schema has nothing to seed — never a bare success banner over a no-op)
  • A test fails if the seed script stops writing rows for a schema that has models
  • Tutorial/docs seed steps verified against the new behavior

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions