Replace the old team draft Rule with the adopted CommunityRule Creative Team Rule.

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.
This commit is contained in:
adilallo committed 2026-11-12 15:40:40 -07:00
1 parent 6b4dda0e19
commit 29a8d2b32b
6 files changed
+397

No files matched your search

+7
View File
@@ -1,5 +1,6 @@
import { PrismaClient, type Prisma } from "@prisma/client";
import { seedMethodFacets } from "./seed/methodFacets";
import { seedTeamRule } from "./seed/teamRule";
import { seedTemplateFacets } from "./seed/templateFacets";
/**
@@ -402,6 +403,12 @@ async function main() {
console.log(
`Seeded TemplateFacet rows: ${templateFacetSeed.rowCount}`,
);
const teamRuleSeed = await seedTeamRule(prisma);
// eslint-disable-next-line no-console -- seed CLI feedback
console.log(
`Seeded team Rule: ${teamRuleSeed.action} ${teamRuleSeed.title} (${teamRuleSeed.id})`,
);
}
main()