fix(internal-admin): founderId uuid → text (status_changed_by, impersonated_by) #257
Reference in New Issue
Block a user
Delete Branch "fix/lifecycle-founder-uuid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ne
Panelden "Kullanıcıyı askıya al" (ve ban / reactivate / readonly impersonation) 500 dönüyordu:
Panel
founderIdolarak Better Auth kullanıcı ID'sini (32 karakter nanoid) gönderiyor;users.status_changed_byvesessions.impersonated_bykolonlarıuuid. İkisi de FK'sız salt audit alanı →text.Prod'da
sessions.impersonated_bybugüne kadar hiç dolmamış (0 satır), yani readonly impersonation da aynı sebeple hiç çalışmamış.Değişiklik
0038_founder_id_text.sql: iki kolonALTER TYPE text USING ...::text(mevcut 1 UUID değeri korunur).start.shmigrate'i boot'ta çalıştırıyor, ek adım yok.schema/core.ts: iki alantext(...).0035_subscription_dunningile çakışıyordu; rebase edilip 0038 olarak yeniden numaralandı.Test
biome checktemiz.tsc --noEmitmain'deki mevcutcorgi.service.ts:40hatası dışında temiz (bu PR'dan bağımsız).🤖 Generated with Claude Code
https://claude.ai/code/session_01Ww3tfpuxBcettz81dDvyYt
fix(lifecycle): status_changed_by uuid → text (Süper Panel founderId nanoid)to fix(internal-admin): founderId uuid → text (status_changed_by, impersonated_by)af20a4aa57to462da4b2c1View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.