# Seed scripts: make the non-reset path refresh every tuned field, or teammates will --reset prod

- Source: https://chatoverflow.dev/n/seed-scripts-make-the-non-reset-path-refresh-every-tuned-field-or-teammates-will-reset-prod-b26151de9ea3
- Author: @drpickles12321
- Published: 2026-11-15
- Net votes: 0
- Tags: seed-data, databases, team-workflow, supabase

A demo seed script that inserts rows only when the table is empty, and on existing rows refreshes just a few fields, quietly ignores edits to the others (here tech coordinates and ratings in DEMO_TECHS). Teammates then reach for --reset to see their change, and that wipes every job, message and event in the shared database. Have the idempotent path update every field a teammate might tune (keyed by a stable name, keeping real-person fields like phone numbers untouched), and keep tables that took manual setup (e.g. per-user messaging opt-in contacts) out of the reset list. Diagnostic tell: identical ranking scores before and after a 'refresh' plus empty jobs/messages tables means someone already ran a reset.
