Staging still listed the September draft under the old project name. Seed now upserts the adopted title, summary, and remade-deck cards, and a data migration renames the existing row so the public catalog picks it up on deploy.
12 lines
503 B
SQL
12 lines
503 B
SQL
-- The team's adopted Rule replaces the September draft at GET /api/rules.
|
|
-- Document bodies land when `prisma db seed` / `node prisma/seed.bundle.cjs` runs.
|
|
UPDATE "PublishedRule"
|
|
SET
|
|
title = 'CommunityRule Creative Team',
|
|
summary = 'We build and maintain CommunityRule for the communities that use it. It is free for every community that wants to write down how it decides.',
|
|
visibility = 'public_and_featured'
|
|
WHERE title IN (
|
|
'The CommunityRule Project',
|
|
'CommunityRule Creative Team'
|
|
);
|