refactor(db): rename identity columns and tRPC input away from kanidm #215
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment!215
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "refactor/identity-columns"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Removes the Kanidm name from storage and the API. Values are usernames and do not change.
Changes
0019_identity_columnsrenames in place withRENAME COLUMN, no data copied:customer.kanidm_reftoidentity_refcomplimentary.kanidm_reftoidentity_refseat_assignment.kanidm_usertoidentity_usercustomer_kanidm_ref_uniquetocustomer_identity_ref_uniquekanidmUseris nowidentityUser(StartCheckoutInput,WithdrawInput,BillingEmailInput,ReplaceCardInput,IdentityUserInput, formerlyKanidmUserInput). Breaking wire change.Deploy
node dist/src/migrate.jsbefore starting the new image.identityUserin the same window. The service is disabled, so there is no live traffic.Rollback
Drizzle has no down migrations. The reverse renames are in the README under Migrations. Tested in a transaction against Postgres 17.
Verification
pnpm typecheck,pnpm lint,pnpm test(800 passed, withTEST_DATABASE_URL).drizzle-kit generatereports no schema changes after the hand-edited SQL.No version bump.
Versions: service 0.20.0 to 0.21.0, contract 0.15.0 to 0.16.0 (breaking input rename). This is the release PR for the batch.
Closes #113
Visa kommandoradsinstruktioner
Checka ut
Checka ut en ny gren från din projektkatalog och testa ändringarna.