Squash the pre-production migration history into fresh core, fedwiki, and stripe baselines and reduce the canonical source list to those three streams. Update sqlc configs, generated queries, raw SQL, tests, and docs while keeping provider tables schema-qualified. BREAKING: existing local database volumes must be wiped because goose version history restarts from the new baselines.
19 lines
924 B
SQL
19 lines
924 B
SQL
-- +goose Up
|
|
|
|
-- Seed the fedwiki_sites resource key at its end-state name directly. In the
|
|
-- old chain this row was seeded as 'sites' by entitlements/00002 and later
|
|
-- renamed to 'fedwiki_sites' by fedwiki/00002 (FedWiki 9c conformance,
|
|
-- slug-prefixed resource keys); this baseline reflects the end state rather
|
|
-- than replaying the rename. `provider` is left NULL here: boot-time
|
|
-- ProviderSource registration stamps it 'fedwiki' (see
|
|
-- internal/fedwiki's provider registration, not migration-owned).
|
|
--
|
|
-- The other two genuine seed-row groups from the old chain -- core.roles
|
|
-- (6 system roles) and core.org_types ('personal') -- are seeded by 00003.
|
|
INSERT INTO core.resource_keys (resource_key, display_name, description, unit)
|
|
VALUES ('fedwiki_sites', 'Wiki Sites', 'FedWiki site instances', 'site')
|
|
ON CONFLICT DO NOTHING;
|
|
|
|
-- +goose Down
|
|
DELETE FROM core.resource_keys WHERE resource_key = 'fedwiki_sites';
|