Change8

preview-seed-fixture

📦 autogptView on GitHub →
3 features🔧 3 symbols

Summary

This release introduces a new synthetic database seed fixture for preview environments, improving the development workflow by ensuring schema changes are tested against populated tables. The fixture is automatically regenerated and is designed to be disposable and secure.

Migration Steps

  1. To restore the preview database fixture, first apply restore-preamble.sql to the target database to create the platform schema and install necessary extensions (vector + pg_trgm).
  2. Then, run 'gunzip -c fixture.dump.gz | pg_restore -d <db> --no-owner' without the --exit-on-error flag.

✨ New Features

  • Introduced a rolling, fully synthetic preview-database seed fixture generated from dev@01b630f8fc7d.
  • Preview environments now restore fixture.dump.gz (custom-format, gzipped, platform schema only, including _prisma_migrations) before running a PR's own migrations, ensuring schema changes operate on populated tables.
  • The synthetic database fixture is regenerated on every eligible dev push and weekly.

Affected Symbols