8 lines
455 B
SQL
8 lines
455 B
SQL
-- Migration: nickname und avatar wieder in rebreak.profiles aufnehmen
|
|
-- Grund: Prisma include-Relationen für Posts/Comments benötigen diese Felder in der DB.
|
|
-- Strategie: profiles = sync-Cache, user_metadata = src of truth für Auth.
|
|
-- Beim Update wird in BEIDE geschrieben (me.patch.ts + avatar/upload.post.ts)
|
|
|
|
ALTER TABLE rebreak.profiles ADD COLUMN IF NOT EXISTS avatar TEXT;
|
|
ALTER TABLE rebreak.profiles ADD COLUMN IF NOT EXISTS nickname TEXT;
|